diff options
author | Quentin Dufour <quentin@deuxfleurs.fr> | 2022-09-07 08:11:44 +0200 |
---|---|---|
committer | Quentin Dufour <quentin@deuxfleurs.fr> | 2022-09-07 08:13:15 +0200 |
commit | 2695fe4ae82025a560b7453751077f02dcf42ea7 (patch) | |
tree | 4d08378491f9d4a361f93f5f86d7a081623f6434 /cluster/prod/app/email/config/postfix/master.cf | |
parent | 02c65de5fec7242d225d6e052117f108f0a5e035 (diff) | |
download | nixcfg-2695fe4ae82025a560b7453751077f02dcf42ea7.tar.gz nixcfg-2695fe4ae82025a560b7453751077f02dcf42ea7.zip |
Force IPv4 when sending to gmail
Because Free does not provide rDNS on IPv6
so GMail complains that it does not find a PTR record
for our IPv6 address
Diffstat (limited to 'cluster/prod/app/email/config/postfix/master.cf')
-rw-r--r-- | cluster/prod/app/email/config/postfix/master.cf | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/cluster/prod/app/email/config/postfix/master.cf b/cluster/prod/app/email/config/postfix/master.cf index 53bc601..d06243e 100644 --- a/cluster/prod/app/email/config/postfix/master.cf +++ b/cluster/prod/app/email/config/postfix/master.cf @@ -19,11 +19,6 @@ smtps inet n - n - - smtpd -o smtpd_sasl_auth_enable=yes -o smtpd_client_restrictions=permit_sasl_authenticated,reject -o milter_macro_daemon_name=ORIGINATING -slow unix - - n - 5 smtp - -o syslog_name=postfix-slow - -o smtp_destination_concurrency_limit=3 - -o slow_destination_rate_delay=1 - #628 inet n - - - - qmqpd pickup fifo n - n 60 1 pickup @@ -42,6 +37,14 @@ proxywrite unix - - n - 1 proxymap # When relaying mail as backup MX, disable fallback_relay to avoid MX loops smtp unix - - n - - smtp # -o smtp_helo_timeout=5 -o smtp_connect_timeout=5 + +smtp-ipv4 unix - - n - - smtp + -o syslog_name=postfix-ipv4 + -o inet_protocols=ipv4 +slow unix - - n - 5 smtp + -o syslog_name=postfix-slow + -o smtp_destination_concurrency_limit=3 + -o slow_destination_rate_delay=1 relay unix - - n - - smtp -o smtp_fallback_relay= showq unix n - n - - showq |