Popular Posts

Nov 17, 2016

Setup / configure sendmail client in solaris 11

Setup / configure sendmail client in solaris 11


1. Stop sendmail service
  svcadm disable -t network/smtp:sendmail

2. Verify the sendmail service status
svcs -a network/smtp:sendmail

3. Make a copy of the configuration files that you are changing.
cd /etc/mail/cf/cf
cp sendmail.mc `uname -n`.mc        (EX) cp sendmail.mc `uname -n`.mc

4. Edit the new configuration file (for example, vi judi-dev-01.mc), Add the below Line
MASQUERADE_AS(`mail.server-mycompany.co.in') {mail.server-mycompany.co.in - our mail server name}

5. Build the configuration file by using m4.
make `uname -n`.cf

6. Test the new configuration file by using the -C option to specify the new file.
/usr/lib/sendmail -C `uname -n`.cf -v judi.rose@sagariah.com </dev/null
Only outgoing mail can be tested without restarting the sendmail service on the system

7. Install the new configuration file after making a copy of the original
cp /etc/mail/sendmail.cf /etc/mail/sendmail.cf.`date +%d-%b-%Y-%H-%M`
cp `uname -n`.cf /etc/mail/sendmail.cf

8. Restart the sendmail service.
svcadm enable network/smtp:sendmail

9. Send a Test Mail
/usr/bin/mailx -s "Test Mail" -v judi.rose@sagariah.com < /dev/null

10. Send a Mail with a attachment
uuencode result.txt result.txt | mailx -s "Configuration - Audit Rport" judi@gmail.com


11. Test mail server connectivity
telnet mailserver.com 25



~
How to Set Up Mail Client
How to Set Up SendMail Client
configure sendmail client in solaris 11
sendmail in solaris 11
send mail in solaris 11
send mail client in solaris
solaris mail client
mailx configuration
~

2 comments:

  1. hi,
    thanks for your very clear guide. But how can I troubleshoot, if I don't get the test mail?

    ReplyDelete
    Replies
    1. telnet mailserver.com 25 - to check the connectivity.
      /etc/syslog will have the the details of your mail relay

      Delete

Popular Posts