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
#
root=controlsulley@gmail.com
mailhub=smtp.gmail.com:587
AuthUser=controlsulley@gmail.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' mick@sulley.info
test mail
sendmail: Cannot open smtp.gmail.com:587
mick@Mint17Desk:~$
and maillog shows
Oct 2 16:20:01 localhost CRON[4626]: (smmsp) CMD (test -x /etc/init.d/sendmail && /usr/share/sendmail/sendmail cron-msp)
Oct 2 16:20:01 localhost sSMTP[4644]: Creating SSL connection to host
Oct 2 16:20:01 localhost sSMTP[4644]: SSL connection using (null)
Oct 2 16:20:01 localhost sSMTP[4644]: Cannot open smtp.gmail.com:587
Oct 2 16:20:01 localhost CRON[4625]: (smmsp) MAIL (mailed 1 byte of output; but got status 0x0001, #012)
I guess my setup is wrong somewhere but I cannot see where.
Thanks
Mick