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 [2014/01/26 14:27] – juckins | gmail_on_linux_with_ssmtp [2015/11/04 18:12] – juckins | ||
---|---|---|---|
Line 28: | Line 28: | ||
TLS_CA_File=/ | TLS_CA_File=/ | ||
+ | Update 4 April 2015: | ||
+ | |||
+ | Gmail stopped sending, couldn' | ||
+ | |||
+ | IO:: | ||
+ | |||
+ | Test was: $ swaks -tls -f [email protected] -t [email protected] -s smtp.mail.yahoo.com: | ||
+ | |||
+ | Seemed to be an IPv6 problem. | ||
+ | |||
+ | Additional info for CentOS6: | ||
+ | |||
+ | [[https:// | ||
+ | |||
+ | |||
+ | ---- | ||
+ | |||
+ | 4 November 2015 | ||
+ | |||
+ | Gmail stopped working. | ||
+ | |||
+ | This did not work: https:// | ||
+ | |||
+ | |||
+ | Directions [[http:// | ||
+ | |||
+ | 1. Make a backup copy of / | ||
+ | |||
+ | 2. Edit / | ||
+ | |||
+ | < | ||
+ | # sets gmail as relay | ||
+ | relayhost = [smtp.gmail.com]: | ||
+ | |||
+ | # use tls | ||
+ | smtp_use_tls=yes | ||
+ | |||
+ | # use sasl when authenticating to foreign SMTP servers | ||
+ | smtp_sasl_auth_enable = yes | ||
+ | |||
+ | # path to password map file | ||
+ | smtp_sasl_password_maps = hash:/ | ||
+ | |||
+ | # list of CAs to trust when verifying server certificate | ||
+ | # | ||
+ | # Below is provided by ca-certificates package (Mozilla CA root certificate bundle) | ||
+ | smtp_tls_CAfile = / | ||
+ | |||
+ | # eliminates default security options which are incompatible with Gmail | ||
+ | smtp_sasl_security_options = | ||
+ | |||
+ | # add debugging | ||
+ | debug_peer_list=smtp.gmail.com | ||
+ | debug_peer_level=3 | ||
+ | </ | ||
+ | |||
+ | 2. Add your own Gmail credentials to / | ||
+ | < | ||
+ | [smtp.gmail.com]: | ||
+ | </ | ||
+ | |||
+ | 3. Run the following as root: \\ | ||
+ | < | ||
+ | # postmap / | ||
+ | </ | ||
+ | |||
+ | 4. Make sure the / | ||
+ | < | ||
+ | # chown postfix sasl_passwd* | ||
+ | </ | ||
+ | |||
+ | 5. Tighten permissions: | ||
+ | < | ||
+ | # chmod 600 sasl_passwd sasl_passwd.db | ||
+ | </ | ||
+ | |||
+ | 6. Restart postfix: \\ | ||
+ | < | ||
+ | # / | ||
+ | </ | ||
+ | or | ||
+ | < | ||
+ | # service postfix restart | ||
+ | </ | ||
+ | |||
+ | 7. Send a test message: \\ | ||
+ | < | ||
+ | echo 'It works' | mailx -s 'Test message' | ||
+ | </ | ||
+ | |||
+ | 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