Advertisement
Guest User

Untitled

a guest
Aug 22nd, 2014
180
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.84 KB | None | 0 0
  1. sudo aptitude install ssmtp
  2.  
  3. sudo vim /etc/ssmtp/ssmtp.conf
  4.  
  5. root=username@gmail.com
  6. mailhub=smtp.gmail.com:587
  7. hostname=username@gmail.com
  8. UseSTARTTLS=YES
  9. AuthUser=username
  10. AuthPass=password
  11. FromLineOverride=yes
  12.  
  13. mailutils libsasl2-2 ca-certificates libsasl2-modules
  14.  
  15. sudo vim /etc/postfix/main.cf
  16.  
  17. relayhost = [smtp.gmail.com]:587
  18. smtp_sasl_auth_enable = yes
  19. smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd
  20. smtp_sasl_security_options = noanonymous
  21. smtp_tls_CAfile = /etc/postfix/cacert.pem
  22. smtp_use_tls = yes
  23.  
  24. vim /etc/postfix/sasl_passwd
  25.  
  26. [smtp.gmail.com]:587 USERNAME@gmail.com:PASSWORD
  27.  
  28. vim /etc/mail/access
  29.  
  30. To:a1@server.vikas.com REJECT # Reject a1 user from recieving mails
  31. From:a1@server.vikas.com REJECT # Reject a1 user from sending mails
  32.  
  33. root: example@gmail.com
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement