gmail_on_linux_with_ssmtp
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
gmail_on_linux_with_ssmtp [2015/11/04 17:55] – juckins | gmail_on_linux_with_ssmtp [2025/03/20 19:56] (current) – juckins | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | Sending email on linux using SSMTP. | + | ==== Sending email via Gmail using SSMTP ==== |
[[http:// | [[http:// | ||
Line 7: | Line 7: | ||
[[http:// | [[http:// | ||
- | Edit ~/.muttrc for each user as appropriate: | + | Edit ~/.muttrc for each user as appropriate |
< | < | ||
Line 47: | Line 47: | ||
4 November 2015 | 4 November 2015 | ||
- | Gmail stopped working. | + | Gmail stopped working. |
This did not work: https:// | This did not work: https:// | ||
- | Try these links:\\ | + | Try a PHP or Perl solution, but does it require SSMTP or MSMTP? |
- | + | ||
- | https:// | + | |
- | http:// | + | |
- | http:// | + | |
- | + | ||
- | + | ||
- | These directions [[http:// | + | |
- | + | ||
- | - Make a backup copy of / | + | |
- | - Edit / | + | |
- | - * # sets gmail as relay | + | |
- | - * Unordered List Item | + | |
- | + | ||
- | 1. 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 | + | |
- | smtp_tls_CAfile = / | + | |
- | + | ||
- | # eliminates default security options which are imcompatible with gmail | + | |
- | smtp_sasl_security_options = | + | |
- | + | ||
- | If you need further debugging you can add these: | + | |
- | + | ||
- | debug_peer_list=smtp.gmail.com | + | |
- | debug_peer_level=3 | + | |
- | + | ||
- | 2. Add Gmail creds to / | + | |
- | + | ||
- | [smtp.gmail.com]: | + | |
- | + | ||
- | 3. Run sudo postmap / | + | |
- | + | ||
- | Make sure the / | + | |
- | + | ||
- | sudo chown postfix sasl_passwd* | + | |
- | + | ||
- | 4. Run / | + | |
+ | Final answer was to configure [[gmail_as_a_relay_on_linux|Gmail as a Relay]] |
gmail_on_linux_with_ssmtp.1446677725.txt.gz · Last modified: 2015/11/04 17:55 by juckins