SSMTP to forward root@localhost mail

Posted by Redconnection on Server Fault See other posts from Server Fault or by Redconnection
Published on 2011-01-03T17:06:26Z Indexed on 2011/01/03 17:55 UTC
Read the original article Hit count: 222

Filed under:
|
|
|

I would like to forward mail that gets sent root@localhost on multiple servers to our company admin account (e-mail is hosted on gmail)

I have installed ssmtp on centos 5.5 via yum and configured it. i've also changed the last line in /etc/aliases to reflect where mail to root should go to.

I've then tried sending mail to root - this gets delivered without a problem (mail -v root) I've also tried sending mail to root@localhost - this is not delivered to the specified gmail account.

© Server Fault or respective owner

Related posts about linux

Related posts about centos