Advertisement
Guest User

Untitled

a guest
Oct 9th, 2017
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.20 KB | None | 0 0
  1. # Config file for sSMTP sendmail
  2. #
  3. # The person who gets all mail for userids < 1000
  4. # Make this empty to disable rewriting.
  5. root=xxxxxx.raspberry.pi@gmail.com
  6.  
  7. # The place where the mail goes. The actual machine name is required no
  8. # MX records are consulted. Commonly mailhosts are named mail.domain.com
  9. mailhub=smtp.gmail.com:587
  10.  
  11. AuthUser=xxxxxx.raspberry.pi@gmail.com
  12. AuthPass=xxxxxxxxxxxxxx
  13. UseTLS=YES
  14. UseSTARTTLS=YES
  15.  
  16. # Where will the mail seem to come from?
  17. rewriteDomain=gmail.com
  18.  
  19. # The full hostname
  20. hostname=xxxxxx.raspberry.pi@gmail.com
  21.  
  22. # Are users allowed to set their own From: address?
  23. # YES - Allow the user to specify their own From: address
  24. # NO - Use the system generated From: address
  25. FromLineOverride=YES
  26.  
  27. # sSMTP aliases
  28. #
  29. # Format: local_account:outgoing_address:mailhub
  30. #
  31. # Example: root:your_login@your.domain:mailhub.your.domain[:port]
  32. # where [:port] is an optional port number that defaults to 25.
  33. root:xxxxxx.raspberry.pi@gmail.com:smtp.gmail.com:587
  34.  
  35. sudo apt-get update
  36. sudo apt-get install ssmtp
  37.  
  38. root=rpi3abc@gmail
  39. mailhub-smtp.gmail.com:465
  40. FromLineOverride=YES
  41. AuthUser=rpi3abc@gmail.com
  42. AuthPass=testing123
  43. UseTLS=YES
  44.  
  45. echo "Testing...1...2...3" | ssmtp myusername@gmail.com
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement