0

Mailx on Solaris

Posted September 7th, 2008. Filed under Sharing elmu

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
If you have enjoyed this entry. Please feel free to bookmark it using your favorite social bookmarking site

Leave a Comment