Advertisement
Guest User

Untitled

a guest
Feb 5th, 2017
253
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.70 KB | None | 0 0
  1. # Last Updated Feb 5, 2016
  2. # /etc/ssmtp/ssmtp.conf
  3. #
  4. # sSMTP one liner for testing
  5. # echo -e "To: youremail@somewhere.com\nFrom: yourhost@gmail.com\nSubject: Test Message\n\nBody of message TEST." | ssmtp youremail@somewhere.com
  6. #
  7. # sudo apt install ssmtp && sudo mv /etc/ssmtp/ssmtp.conf /etc/ssmtp/ssmtp.conf-ORG && sudo nano /etc/ssmtp/ssmtp.conf
  8. #
  9. # Ensure google account configured for less secure apps first!
  10. # https://support.google.com/accounts/answer/6010255?hl=en-GB
  11. # To check default mail from root, sendmail -V.
  12. #
  13. # /etc/ssmtp/revaliases, add root:yourhost@gmail.com:smtp.gmail.com:587
  14. #
  15. mailhub=smtp.gmail.com:587
  16. UseSTARTTLS=YES
  17. AuthUser=yourhost@gmail.com
  18. AuthPass=XXXyourpasswordXXX
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement