Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Last Updated Feb 5, 2016
- # /etc/ssmtp/ssmtp.conf
- #
- # sSMTP one liner for testing
- # echo -e "To: youremail@somewhere.com\nFrom: yourhost@gmail.com\nSubject: Test Message\n\nBody of message TEST." | ssmtp youremail@somewhere.com
- #
- # sudo apt install ssmtp && sudo mv /etc/ssmtp/ssmtp.conf /etc/ssmtp/ssmtp.conf-ORG && sudo nano /etc/ssmtp/ssmtp.conf
- #
- # Ensure google account configured for less secure apps first!
- # https://support.google.com/accounts/answer/6010255?hl=en-GB
- # To check default mail from root, sendmail -V.
- #
- # /etc/ssmtp/revaliases, add root:yourhost@gmail.com:smtp.gmail.com:587
- #
- mailhub=smtp.gmail.com:587
- UseSTARTTLS=YES
- AuthUser=yourhost@gmail.com
- AuthPass=XXXyourpasswordXXX
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement