About root mail

Ok. After fresh install of centos I usually make two commands first

yum remove posftix sendmail
yum install ssmtp

So I just understand that root (and other users mail) I never receive! Lets fix it. Open /etc/aliases with you favorite nano and scroll to the bottom of the file

# Person who should get root's mail
root:           your@serviceemail.com

After that lets test

echo "test message" | mail root

Check your@serviceemail.com. Thats all!

Leave a Reply

Your email address will not be published.