From 2695fe4ae82025a560b7453751077f02dcf42ea7 Mon Sep 17 00:00:00 2001 From: Quentin Dufour Date: Wed, 7 Sep 2022 08:11:44 +0200 Subject: 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 --- cluster/prod/app/email/config/postfix/master.cf | 13 ++++++++----- cluster/prod/app/email/config/postfix/transport | 1 + cluster/prod/app/email/config/postfix/transport.db | Bin 12288 -> 12288 bytes 3 files changed, 9 insertions(+), 5 deletions(-) (limited to 'cluster/prod') 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 diff --git a/cluster/prod/app/email/config/postfix/transport b/cluster/prod/app/email/config/postfix/transport index 68f62c5..abc1b9a 100644 --- a/cluster/prod/app/email/config/postfix/transport +++ b/cluster/prod/app/email/config/postfix/transport @@ -3,3 +3,4 @@ #orange.com slow: #orange.fr slow: #smtp.orange.fr slow: +gmail.com smtp-ipv4: diff --git a/cluster/prod/app/email/config/postfix/transport.db b/cluster/prod/app/email/config/postfix/transport.db index 487f394..d0870e9 100644 Binary files a/cluster/prod/app/email/config/postfix/transport.db and b/cluster/prod/app/email/config/postfix/transport.db differ -- cgit v1.2.3