cd /etc/mail
edit sendmail.mc
uncomment line containing SMART_HOST (remove “dnl #” from beginning of the line) and put the relaying smtp server between the ` and ‘.
exit saving changes
mv sendmail.cf sendmail.cf.bak
m4 sendmail.mc > sendmail.cf
make
/etc/init.d/sendmail restart
omsendin
you can watch the smtp log to see if it is working properly:
tail -f /var/log/maillog
Posted by Pat McKay 


