Skip to content

Commit

Permalink
add smtp smuggling mitigation
Browse files Browse the repository at this point in the history
  • Loading branch information
AndrewSav committed Jan 9, 2024
1 parent 339f9b3 commit 9bb7df6
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions rootfs/etc/postfix/main.cf
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,18 @@ mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128 {{ .RELAY_NETWORKS

alias_maps = hash:/etc/aliases


################################
## SMTP smuggling mitigation ##
################################
smtpd_forbid_bare_newline = yes
smtpd_forbid_bare_newline_exclusions = $mynetworks

# https://www.postfix.org/smtp-smuggling.html#long
# Optionally disconnect remote SMTP clients that send bare newlines,
# but allow local clients with non-standard SMTP implementations
# such as netcat, fax machines, or load balancer health checks.

###############
## SMTP/UTF8 ##
###############
Expand Down

0 comments on commit 9bb7df6

Please sign in to comment.