mail:postfix
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionLast revisionBoth sides next revision | ||
mail:postfix [2018-12-09 22:40] – old revision restored (2018-12-09 20:44) gabriel | mail:postfix [2020-05-30 17:11] – [Gmail app password] fixing formatting gabriel | ||
---|---|---|---|
Line 5: | Line 5: | ||
===== Configuring Postfix with Gmail as an SMTP relay ===== | ===== Configuring Postfix with Gmail as an SMTP relay ===== | ||
+ | I currently run my external mail on a Google Apps account. | ||
+ | |||
+ | To do this you really only need to make a few configuration changes to the default Postfix main.cf file that ships with the Debian package. | ||
+ | |||
+ | < | ||
+ | # See / | ||
+ | |||
+ | smtpd_banner = $myhostname ESMTP $mail_name (Debian/ | ||
+ | biff = no | ||
+ | delay_warning_time = 4h | ||
+ | readme_directory = no | ||
+ | myhostname = localhost | ||
+ | alias_maps = hash:/ | ||
+ | alias_database = hash:/ | ||
+ | myorigin = $myhostname | ||
+ | mydestination = localhost, localhost.localdomain, | ||
+ | relayhost = [smtp.gmail.com]: | ||
+ | mynetworks = 127.0.0.0/8 | ||
+ | mailbox_size_limit = 0 | ||
+ | recipient_delimiter = + | ||
+ | inet_interfaces = loopback-only | ||
+ | smtp_sasl_auth_enable = yes | ||
+ | smtp_sasl_password_maps = hash:/ | ||
+ | smtp_sasl_security_options = noanonymous | ||
+ | smtp_tls_CAfile = / | ||
+ | smtp_use_tls = yes | ||
+ | smtp_tls_loglevel=1 | ||
+ | smtp_tls_security_level=encrypt | ||
+ | compatibility_level=2 | ||
+ | </ | ||
+ | |||
+ | ==== Google CA certs ==== | ||
+ | |||
+ | You can retrieve the current Google CA certs from this page: https:// | ||
+ | |||
+ | Store these certs as ''/ | ||
+ | |||
+ | ==== Gmail app password ==== | ||
+ | |||
+ | You will also need to generate an app password to use with the account in Gmail. | ||
+ | |||
+ | https:// | ||
+ | |||
+ | You can then configure this username and password in ''/ | ||
+ | |||
+ | < | ||
+ | [smtp.gmail.com]: | ||
+ | </ | ||
+ | |||
+ | Where // |
mail/postfix.txt · Last modified: 2020-05-31 00:57 by gabriel