aboutsummaryrefslogtreecommitdiff
path: root/cluster/prod/app/email/config
diff options
context:
space:
mode:
authorQuentin Dufour <quentin@deuxfleurs.fr>2022-09-07 08:11:44 +0200
committerQuentin Dufour <quentin@deuxfleurs.fr>2022-09-07 08:13:15 +0200
commit2695fe4ae82025a560b7453751077f02dcf42ea7 (patch)
tree4d08378491f9d4a361f93f5f86d7a081623f6434 /cluster/prod/app/email/config
parent02c65de5fec7242d225d6e052117f108f0a5e035 (diff)
downloadnixcfg-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')
-rw-r--r--cluster/prod/app/email/config/postfix/master.cf13
-rw-r--r--cluster/prod/app/email/config/postfix/transport1
-rw-r--r--cluster/prod/app/email/config/postfix/transport.dbbin12288 -> 12288 bytes
3 files changed, 9 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
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
--- a/cluster/prod/app/email/config/postfix/transport.db
+++ b/cluster/prod/app/email/config/postfix/transport.db
Binary files differ