Running Linux Mint 17. I have setup smartmontools to monitor my hard drive, that seems to work OK but there is a feature to generate an email when it detects an error and I cannot get the email to work. I have found several hit for it but still cannot fix it. ssmtp.conf looks like this
# # Config file for sSMTP sendmail # firstname.lastname@example.org mailhub=smtp.gmail.com:587 AuthUseremail@example.com AuthPass=********* UseTLS=YES #UseStartTTLS=YES # Where will the mail seem to come from? rewriteDomain=gmail.com # The full hostname hostname=gmail.com
But when I run it I get
mick@Mint17Desk:~$ sendmail -s 'Hello world' firstname.lastname@example.org test mail sendmail: Cannot open smtp.gmail.com:587 mick@Mint17Desk:~$
and maillog shows
Oct 2 16:20:01 localhost CRON: (smmsp) CMD (test -x /etc/init.d/sendmail && /usr/share/sendmail/sendmail cron-msp) Oct 2 16:20:01 localhost sSMTP: Creating SSL connection to host Oct 2 16:20:01 localhost sSMTP: SSL connection using (null) Oct 2 16:20:01 localhost sSMTP: Cannot open smtp.gmail.com:587 Oct 2 16:20:01 localhost CRON: (smmsp) MAIL (mailed 1 byte of output; but got status 0x0001, #012)
I guess my setup is wrong somewhere but I cannot see where.