sSMTP Unable to send message using external mail server SMTP

Posted by OrangeGrover on Server Fault See other posts from Server Fault or by OrangeGrover
Published on 2012-07-06T22:57:16Z Indexed on 2012/07/07 3:17 UTC
Read the original article Hit count: 538

Filed under:
|

I'm trying to finish up my Nagios install by having it email me. It was emailing me using /bin/mail so it always got sent to my spam folders. I installed sSMTP to try to send a request to my work's email server to be able to send out a message from an authenticated user.

Here is my /etc/ssmtp/ssmtp.conf file:

mailhub=10.200.120.148:25
UseTLS=NO
AuthUser= [email protected]
AuthPass=PASSWORD

So far I've been using the following command, and it will still arrive to my email inbox as root@localhost which causes it to go to my spam folder (with the exception of one email provider I have).

cat message |ssmtp [email protected]

I've looked at a few examples online, and they all seem to have pretty much the same as me. Does anybody see the any mistakes that I'm making?

Just to clarify, [email protected] is a user on the mail server that my work uses.

© Server Fault or respective owner

Related posts about centos6.2

Related posts about ssmtp