summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuilhem Moulin <guilhem@fripost.org>2018-12-06 19:22:10 +0100
committerGuilhem Moulin <guilhem@fripost.org>2018-12-06 19:22:10 +0100
commita88db53786768309e9f88840231e5812506535bf (patch)
tree6fea96ad6b5e22ecf65c5f123ea351e5d3cdd07d
parentdb38048fe11edb0464cb3ab45221660d9c329f04 (diff)
postfix ≥3.0: don't advertise SMTPUTF8 support.
We're relaying messages to our LMTP daemons (Dovecot, Amavisd) and some downstream SMTP servers, not all of which are under our control. Forwarding messages with UTF-8 envelope addresses or RFC 5322 headers yields undeliverable messages, and the bounces make us a potential backscatter source. So it's better to disable SMTPUTF8 at this point. Cf. also http://www.postfix.org/SMTPUTF8_README.html and https://unix.stackexchange.com/questions/320091/configure-postfix-and-dovecot-lmtp-to-receive-mail-via-smtputf8 . See also upstream's comment at https://marc.info/?l=postfix-users&m=149183235529042&w=2 : “Perhaps SMTPUTF8 autodetection could be more granular: UTF8 in the envelope is definitely problematic for a receiver that does not support SMTPUTF8, while UTF8 in a message header is less so.”
-rw-r--r--roles/common/templates/etc/postfix/main.cf.j21
1 files changed, 1 insertions, 0 deletions
diff --git a/roles/common/templates/etc/postfix/main.cf.j2 b/roles/common/templates/etc/postfix/main.cf.j2
index 92a3340..20ef917 100644
--- a/roles/common/templates/etc/postfix/main.cf.j2
+++ b/roles/common/templates/etc/postfix/main.cf.j2
@@ -9,6 +9,7 @@ biff = no
readme_directory = no
mail_owner = postfix
compatibility_level = 2
+smtputf8_enable = no
myorigin = /etc/mailname
myhostname = {{ ansible_fqdn }}