I am trying to configure ssmtp on our Ubuntu 12.04 server. However I had no luck so far. My ssmtp.conf looks like this:
root=me@server.com
mailhub=mail.server.com:25
rewriteDomain=
hostname=hostname.server.com
AuthUser=me
AuthPass=mypassword
UseTLS=YES
FromLineOverride=YES
When I try to send mails I get ssmtp: Cannot open mailhub:25
. When I use sudo the error message reads a little different ssmtp: Cannot open mail.server.com:25
The server should normally accept SMTP on port 25 and I can contact it with telnet mail.server.com 25
. Any ideas would be greatly appreciated.
ssmtp guy@server.com < mail.txt
andssmtp guy@server.com
mailx guy@server.com < mail.txt
. Also, anything interesting in/var/log/mail.log
?/etc/ssmtp/ssmtp.conf not found
,Unable to locate mailhub
, with sudo:SSL connection using (null)