gmail_on_linux_with_ssmtp
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
gmail_on_linux_with_ssmtp [2015/11/04 17:55] – juckins | gmail_on_linux_with_ssmtp [2015/11/04 18:12] – juckins | ||
---|---|---|---|
Line 51: | Line 51: | ||
This did not work: https:// | This did not work: https:// | ||
- | Try these links:\\ | ||
- | https:// | + | Directions [[http://mhawthorne.net/posts/postfix-configuring-gmail-as-relay.html|based on this page by Matthew Hawthorne]] worked: |
- | http://serverfault.com/questions/194376/how-to-send-email-with-my-centos-server \\ | + | |
- | http:// | + | |
+ | 1. Make a backup copy of / | ||
- | These directions [[http:// | + | 2. Edit / |
- | + | ||
- | - Make a backup copy of / | + | |
- | - Edit / | + | |
- | - * # sets gmail as relay | + | |
- | - * Unordered List Item | + | |
- | + | ||
- | 1. Edit / | + | |
+ | < | ||
# sets gmail as relay | # sets gmail as relay | ||
relayhost = [smtp.gmail.com]: | relayhost = [smtp.gmail.com]: | ||
Line 80: | Line 72: | ||
# list of CAs to trust when verifying server certificate | # list of CAs to trust when verifying server certificate | ||
- | smtp_tls_CAfile = / | + | #smtp_tls_CAfile = / |
+ | # Below is provided by ca-certificates package (Mozilla CA root certificate bundle) | ||
+ | smtp_tls_CAfile = / | ||
- | # eliminates default security options which are imcompatible | + | # eliminates default security options which are incompatible |
smtp_sasl_security_options = | smtp_sasl_security_options = | ||
- | If you need further debugging you can add these: | + | # add debugging |
debug_peer_list=smtp.gmail.com | debug_peer_list=smtp.gmail.com | ||
debug_peer_level=3 | debug_peer_level=3 | ||
+ | </ | ||
- | 2. Add Gmail creds to / | + | 2. Add your own Gmail credentials |
+ | < | ||
+ | [smtp.gmail.com]: | ||
+ | </ | ||
- | [smtp.gmail.com]:587 username:password | + | 3. Run the following as root: \\ |
+ | < | ||
+ | # postmap / | ||
+ | </ | ||
+ | |||
+ | 4. Make sure the / | ||
+ | < | ||
+ | # chown postfix sasl_passwd* | ||
+ | </ | ||
- | 3. Run sudo postmap / | + | 5. Tighten permissions: |
+ | < | ||
+ | # chmod 600 sasl_passwd | ||
+ | </ | ||
- | Make sure the /etc/sasl_passwd* files are owned by the postfix | + | 6. Restart postfix: \\ |
+ | < | ||
+ | # /etc/init.d/postfix | ||
+ | </ | ||
+ | or | ||
+ | < | ||
+ | # service postfix restart | ||
+ | </ | ||
- | sudo chown postfix sasl_passwd* | + | 7. Send a test message: \\ |
+ | < | ||
+ | echo 'It works' | mailx -s 'Test message' | ||
+ | </ | ||
- | 4. Run /etc/init.d/postfix reload | + | 8. Check mutt configuration for proper " |
+ | Other links:\\ | ||
+ | [[http:// | ||
+ | [[http:// | ||
+ | [[https:// | ||
+ | [[https:// |
gmail_on_linux_with_ssmtp.txt · Last modified: 2016/10/22 08:29 by juckins