[CentOS] ssmtp config for gmail

Wed Oct 7 14:39:00 UTC 2015
Jerry Geis <geisj at pagestation.com>

I have tried to setup ssmtp to relay through gmail.

root=my gmail address
AuthUser=my gmail address
AuthPass=my password
FromLineOverride=YES
mailhub=smtp.gmail.com:587
UseSTARTTLS=YES
TLS_CA_FILE=/etc/pki/tls/certs/ca-bundle.crt

I get this error:

Authorization failed (534 5.7.14
https://support.google.com/mail/answer/78754 145sm16287775qhb.20 - gsmtp)

I am not using two step verification at this time. I can sign into my
account just fine.

Am I missing a step?

Thanks

Jerry