Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- sudo apt-get install postfix mailutils
- Postfix -> No configuration option
- sudo nano /etc/postfix/main.cf
- ----
- smtp_sasl_security_options = noanonymous
- relayhost = [smtp.gmail.com]:587
- smtp_use_tls = yes
- smtp_tls_CAfile = /etc/postfix/cacert.pem
- smtp_sasl_auth_enable = yes
- smtp_sasl_password_maps = hash:/etc/postfix/googleapps/password
- ----
- sudo mkdir /etc/postfix/googleapps
- cd /etc/postfix/googleapps
- sudo nano password
- ----
- [smtp.gmail.com]:587 email@googleappdomain.com:password
- ----
- sudo chmod 600 password
- sudo postmap password
- sudo cp /etc/ssl/certs/ca-certificates.crt /etc/postfix/cacert.pem
- sudo /etc/init.d/postfix restart
- echo "Testing" | mail -s "Email test" destinationtest@mail.com
Add Comment
Please, Sign In to add comment