smtp smarthost with sendmail (scalix server)

April 25, 2008

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