Config mail sender on centos6

install

yum install mutt sendmail
vim /etc/Muttrc

find and config:

set sendmail="/usr/sbin/senmail -oem -oi"
#save and quit editor:
!wq

restart sendmail

service sendmail restart 
chkconfig sendmail on

Test

echo "Alert message!!!" | mutt -e "my_hdr from:sender<sender@mydomain.com>" -s "[Warning]Title " receiver@xxxx.com

Last updated