Configuring ssmtp

Hi,
I have trouble in configuring ssmtp for sending mail to gmail. I have configured the following way, plz suggest/correct me if i have done something wrong

root=nagiostool@gmail.com
mailhub=smtp.gmail.com:587
#RewriteDomain=
# The full hostname
 Hostname=nagiosxi
# Set this to never rewrite the "From:" line (unless not given) and to
# use that address in the "from line" of the envelope.
#FromLineOverride=YES
# Use SSL/TLS to send secure messages to server.
#UseTLS=YES
# Use SSL/TLS certificate to authenticate against smtp host.
#UseTLSCert=YES
# Use this RSA certificate.
#TLSCert=/etc/pki/tls/private/ssmtp.pem
# Get enhanced (*really* enhanced) debugging information in the logs
# If you want to have debugging of the config file parsing, move this option
# to the top of the config file and uncomment
#Debug=YES
AuthUser=nagiostool
AuthPass=password
UseSTARTTLS=YES

Thank you in advance :slight_smile:

Hi,

following a configuration I successfully implemented:
/etc/ssmtp/ssmtp.conf

root=<YOURACCOUNT>@gmail.com
mailhub=smtp.gmail.com:465
rewriteDomain=gmail.com
AuthUser=<YOURACCOUNT>
AuthPass=<YOURPASSWORD>
FromLineOverride=YES
UseTLS=YES

see ya
fra