Skip to content

Instantly share code, notes, and snippets.

@repcsi
Last active October 12, 2019 08:38
Show Gist options
  • Save repcsi/90fd5fe5e9ca590c6629d9049a10e418 to your computer and use it in GitHub Desktop.
Save repcsi/90fd5fe5e9ca590c6629d9049a10e418 to your computer and use it in GitHub Desktop.
yum install ssmtp
/etc/ssmtp/ssmtp.conf:
TLS_CA_FILE=/etc/pki/tls/certs/ca-bundle.crt
root=useracc@gmail.com
mailhub=smtp.gmail.com:587
AuthUser=useracc@gmail.com
AuthPass=userpass
UseSTARTTLS=YES
UseTLS=Yes
hostname=hostname
/etc/ssmtp/revaliases:
root:rootusermail@gmail.com:smtp.gmail.com:587
systemctl stop postfix
systemctl disable postfix
alternatives --config mta
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment