1. Install postfix
# yum install postfix
2. Stop and Disable sendmail (if running)
# service sendmail stop
# chkconfig sendmail off
3. Enable and start postfix
# chkconfig postfix on
# service postfix start
4. Update postfix config with correct relay host
# postconf -e relayhost=yoursmtphost.com
5. Make postfix the default MTA
# alternatives –config mta
There are 2 programs which provide 'mta'.
Selection Command
-----------------------------------------------
*+ 1 /usr/sbin/sendmail.sendmail
2 /usr/sbin/sendmail.postfix
Enter to keep the current selection[+], or type selection number: 2
5. Test mail relay
# echo TEST | mail -s TEST youremail@yoursmtphost.com