I updated sSMTP to version 2.61 and now when I try to us it I receive the following error:
ssmtp: Cannot open smtp.gmail.com:587
I can connect via telnet to their address, but sSMTP seems to get tripped up and Im not sure what changed after the update.
Here is the
[email protected] mailhub=smtp.gmail.com:587 RewriteDomain=gmail.com Hostname=localhost UseTLS=YES UseSTARTTLS=Yes AuthUser=XXXXX AuthPass=XXXXX FromLineOverride=yes
Output when connecting via telnet:
[root@soupcan sbin]# telnet smtp.gmail.com 587 Trying 184.108.40.206... Connected to smtp.gmail.com. Escape character is '^]'. 220 mx.google.com ESMTP l7sm7330049igx.2 - gsmtp quit 221 2.0.0 closing connection l7sm7330049igx.2 - gsmtp Connection closed by foreign host.
And the output when I try to use
[root@soupcan sbin]# /usr/sbin/ssmtp -v [email protected] < /home/user/Documents/Scripts/msg.txt [<-] 220 mx.google.com ESMTP f5sm7367852igc.4 - gsmtp [->] EHLO localhost [<-] 250 CHUNKING [->] STARTTLS [<-] 220 2.0.0 Ready to start TLS ssmtp: Cannot open smtp.gmail.com:587
EDIT Turning on debug logging I now see this, Im still digging:
SSL not working: certificate verify failed (20)
This has been resolved by adding the following to my