projects
/
ansible.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
ce98257
)
prevent SMTP smuggling
author
Ralf Jung
<post@ralfj.de>
Tue, 26 Dec 2023 09:08:29 +0000
(10:08 +0100)
committer
Ralf Jung
<post@ralfj.de>
Tue, 26 Dec 2023 09:08:29 +0000
(10:08 +0100)
roles/email/templates/main.cf
patch
|
blob
|
history
diff --git
a/roles/email/templates/main.cf
b/roles/email/templates/main.cf
index 45c77d39d937f50e69ffd8f7a2ce1934df07a4d3..2d254f0c5219502fcb9ee091e9b2c4a364b21229 100644
(file)
--- a/
roles/email/templates/main.cf
+++ b/
roles/email/templates/main.cf
@@
-65,6
+65,11
@@
smtpd_recipient_restrictions = permit_mynetworks, permit_tls_clientcerts,
reject_non_fqdn_recipient,
reject_non_fqdn_sender,
reject_non_fqdn_recipient,
reject_non_fqdn_sender,
+# SMTP smuggling protection
+# <https://www.postfix.org/smtp-smuggling.html>
+smtpd_data_restrictions = reject_unauth_pipelining
+smtpd_discard_ehlo_keywords = chunking
+
{% if postfix.relay_host is defined %}
# Relay everything
default_transport = smtp:{{ postfix.relay_host }}
{% if postfix.relay_host is defined %}
# Relay everything
default_transport = smtp:{{ postfix.relay_host }}