Skip to content

Commit

Permalink
update postfix config with longterm solution for smtp smuggling
Browse files Browse the repository at this point in the history
  • Loading branch information
kiekerjan committed Feb 2, 2024
1 parent 46f9255 commit 20cc42d
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions setup/mail-postfix.sh
Original file line number Diff line number Diff line change
Expand Up @@ -70,10 +70,9 @@ tools/editconf.py /etc/postfix/main.cf \
bounce_queue_lifetime=1d

# Guard against SMTP smuggling
# This short-term workaround is recommended at https://www.postfix.org/smtp-smuggling.html
# This setting works starting version 3.6.4-1ubuntu1.3 of postfix. See also https://www.postfix.org/smtp-smuggling.html
tools/editconf.py /etc/postfix/main.cf \
smtpd_data_restrictions=reject_unauth_pipelining \
smtpd_discard_ehlo_keywords=chunking
smtpd_forbid_bare_newline=normalize

# Hardening: disable the VERIFY command
tools/editconf.py /etc/postfix/main.cf \
Expand Down

0 comments on commit 20cc42d

Please sign in to comment.