Advertisement
Guest User

Untitled

a guest
Jul 31st, 2017
495
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.36 KB | None | 0 0
  1. echo "Test text" | mail -s "Test Mail" me2@gmail.com
  2.  
  3. send-mail: Cannot open mail.google.com:587
  4.  
  5. send-mail: Server didn't like our AUTH LOGIN (530 5.7.0 Must issue a STARTTLS command first. ml2sm3592928igb.10 - gsmtp)
  6.  
  7. #
  8. # Config file for sSMTP sendmail
  9. #
  10. # The person who gets all mail for userids < 1000
  11. # Make this empty to disable rewriting.
  12. # root=postmaster
  13.  
  14. # The place where the mail goes. The actual machine name is required no
  15. # MX records are consulted. Commonly mailhosts are named mail.domain.com
  16. # mailhub=mail
  17.  
  18. # Where will the mail seem to come from?
  19. #rewriteDomain=
  20.  
  21. # The full hostname
  22. hostname=raspberrypi
  23.  
  24. # Are users allowed to set their own From: address?
  25. # YES - Allow the user to specify their own From: address
  26. # NO - Use the system generated From: address
  27. FromLineOverride=YES
  28.  
  29.  
  30. root=me@gmail.com
  31. mailhub=smtp.gmail.com:587
  32. AuthUser=me@gmail.com
  33. AuthPass=mypass
  34. UseSTARTTLS=YES
  35.  
  36. # sSMTP aliases
  37. #
  38. # Format: local_account:outgoing_address:mailhub
  39. #
  40. # Example: root:your_login@your.domain:mailhub.your.domain[:port]
  41. # where [:port] is an optional port number that defaults to 25.
  42.  
  43. root:me@gmail.com:mail.google.com:587
  44.  
  45. sudo apt-get update
  46. sudo apt-get install ssmtp
  47.  
  48. root=rpi3abc@gmail
  49. mailhub=smtp.gmail.com:465
  50. FromLineOverride=YES
  51. AuthUser=rpi3abc@gmail.com
  52. AuthPass=testing123
  53. UseTLS=YES
  54.  
  55. apt-get update
  56. sudo apt-get install mpack
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement