0
Need to send email from Solaris box? It’s very easy…
Just configure SMTP server on
/etc/mail/sendmail.cf
or
/etc/mail/local.cf
depend on your sendmail conf will be use. And then edit DS part into DS[your smtp hotname or IP] like
DS192.168.1.1
*without space*
After that restart sendmail service using command :
svcadm restart sendmail
Now we can use mailx…
echo "This is test email" | mailx -s "Test Email" test@test.com
or
cat file_name | mailx -s "Test Email" test@test.com
