- update default configuration to enable the long-term fix for

bsc#1218304, CVE-2023-51764, SMTP smuggling attack:
  * smtpd_forbid_bare_newline = yes
  * smtpd_forbid_bare_newline_exclusions = $mynetworks

OBS-URL: https://build.opensuse.org/package/show/server:mail/postfix?expand=0&rev=464
This commit is contained in:
Dirk Mueller 2023-12-28 07:59:42 +00:00 committed by Git OBS Bridge
parent c16d431d15
commit 07cc4efcf2
2 changed files with 19 additions and 3 deletions

View File

@ -1,5 +1,7 @@
--- conf/main.cf.orig 2022-11-14 15:57:24.689108581 +0100 Index: conf/main.cf
+++ conf/main.cf 2022-11-14 16:02:33.255317483 +0100 ===================================================================
--- conf/main.cf.orig
+++ conf/main.cf
@@ -285,7 +285,7 @@ unknown_local_recipient_reject_code = 55 @@ -285,7 +285,7 @@ unknown_local_recipient_reject_code = 55
# #
#mynetworks = 168.100.3.0/28, 127.0.0.0/8 #mynetworks = 168.100.3.0/28, 127.0.0.0/8
@ -48,7 +50,7 @@
# PARALLEL DELIVERY TO THE SAME DESTINATION # PARALLEL DELIVERY TO THE SAME DESTINATION
# #
@@ -682,4 +683,149 @@ sample_directory = @@ -682,4 +683,155 @@ sample_directory =
# readme_directory: The location of the Postfix README files. # readme_directory: The location of the Postfix README files.
# #
readme_directory = readme_directory =
@ -105,6 +107,12 @@
+ +
+smtpd_recipient_restrictions = +smtpd_recipient_restrictions =
+ +
+# mitigation for CVE-2023-51764 - SMTP smuggling attack
+# but allow local clients with non-standard SMTP implementations
+# such as netcat, fax machines, or load balancer health checks.
+#
+smtpd_forbid_bare_newline = yes
+smtpd_forbid_bare_newline_exclusions = $mynetworks
+ +
+############################################################ +############################################################
+# SASL stuff +# SASL stuff

View File

@ -1,3 +1,11 @@
-------------------------------------------------------------------
Thu Dec 28 07:57:23 UTC 2023 - Dirk Müller <dmueller@suse.com>
- update default configuration to enable the long-term fix for
bsc#1218304, CVE-2023-51764, SMTP smuggling attack:
* smtpd_forbid_bare_newline = yes
* smtpd_forbid_bare_newline_exclusions = $mynetworks
------------------------------------------------------------------- -------------------------------------------------------------------
Fri Dec 22 17:57:57 UTC 2023 - Arjen de Korte <suse+build@de-korte.org> Fri Dec 22 17:57:57 UTC 2023 - Arjen de Korte <suse+build@de-korte.org>