So, this is weird. Two computers, one with CentOS and one with Manjaro. Both have ssmtp, both with the same setup. Manjaro ssmtp will connect and send emails, CentOS will not:
rewriteDomain=gmail.com email@example.com hostname=manjaro-computer AuthUserfirstname.lastname@example.org AuthPass=PASSWORD AuthMethod=LOGIN FromLineOverride=yes mailhub=smtp.gmail.com:587 UseSTARTTLS=yes UseTLS=yes
The only difference is that the CentOS version has
TLS_CA_FILE set. Without it
ssmtp seems to hang then give up, with it enabled. I can connect to gmail but I get:
[<-] 535 5.7.8 https://support.google.com/mail/?p=BadCredentials t64sm2533861itd.0 - gsmtp ssmtp: Authorization failed (535 5.7.8 https://support.google.com/mail/?p=BadCredentials t64sm2533861itd.0 - gsmtp)
Both computers are on the same network, my third server, which is FreeNAS using ssmtp I believe can also send emails no issue.