I have the following ssmtp.conf file:
[email protected]
mailhub=smtp.gmail.com:587
hostname=ed424cef9b52
UseTLS=Yes
UseStartTTLS=Yes
AuthMethod=LOGIN
AuthUser=test
AuthPass=test
FromLineOverride=yes
TLS_CA_File=/etc/ssl/certs/ca-certificates.crt
I can connect to 587 gmail port:
telnet smtp.gmail.com 587
Trying 64.233.186.109...
Connected to gmail-smtp-msa.l.google.com.
But when I try to send mail:
/usr/sbin/ssmtp -v [email protected] < qq
ssmtp: Cannot open smtp.gmail.com:587
echo test | mailx -s "testing ssmtp setup" [email protected]
send-mail: Cannot open smtp.gmail.com:587
Can't send mail: sendmail process failed with error code 1
UseStartTTLS=Yes
is probably wrong, aT
too many.mailhub=smtp.gmail.com:465