Skip to content

Commit 170a56d

Browse files
sklein94cesmarvin
authored andcommitted
Merge branch 'release/v3.8.4-1'
2 parents 3a4bd56 + 61a0f8e commit 170a56d

File tree

6 files changed

+70
-4
lines changed

6 files changed

+70
-4
lines changed

CHANGELOG.md

+12
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,18 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
66

77
## [Unreleased]
88

9+
## [v3.8.4-1] - 2023-12-27
10+
### Security
11+
- [#24] Prevent [SMTP smuggling](https://www.postfix.org/smtp-smuggling.html) due to [CVE-2023-51764](https://nvd.nist.gov/vuln/detail/CVE-2023-51764)
12+
### Added
13+
- [#24] Configuration to prevent the aforementioned SMTP smuggling.
14+
**BREAKING CHANGE:** This might break exceedingly rare clients that mis-implement SMTP.
15+
Configuration options to allow those clients specifically
16+
[can be found here](docs/operations/Configure_Dogu_en.md#client-exclusions-for-bare-newlines).
17+
### Changed
18+
- Upgraded postfix from `3.6.4` to `3.8.4`
19+
- Upgraded alpine base image from `3.17.3-2` to `3.18.3-1`
20+
921
## [v3.6.4-6] - 2023-12-04
1022
### Fixed
1123
- [#22] Fixed a bug where multiple masks for a destination ip would result in multi line input for cidr generation.

Dockerfile

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
FROM registry.cloudogu.com/official/base:3.17.3-2
1+
FROM registry.cloudogu.com/official/base:3.18.3-1
22
LABEL NAME="official/postfix" \
3-
VERSION="3.6.4-6" \
3+
VERSION="3.8.4-1" \
44
55

66
# INSTALL POSTFIX

docs/operations/Configure_Dogu_de.md

+17
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,23 @@ Postfix-Dogu bietet die folgenden Einstellungen:
9191
* Liste der SSL/TLS-Protokolle, die der Postfix-SMTP-Client mit zwingender TLS-Verschlüsselung verwenden wird
9292
* Optional
9393

94+
### Missgebildete Zeilenenden
95+
96+
* Pfad des Konfigurationsschlüssels: `smtpd_forbid_bare_newline`
97+
* Deaktiviert die Unterstützung für missgebildete Zeilenenden in SMTP.
98+
Dies behebt [CVE-2023-51764](https://nvd.nist.gov/vuln/detail/CVE-2023-51764), könnte aber (seltene) Clients stören, die SMTP falsch implementieren.
99+
* Optional
100+
* Valide Werte: `yes, no`
101+
* Default-Wert: `yes`
102+
103+
### Client-Ausnahmen für missgebildete Zeilenenden
104+
105+
* Pfad des Konfigurationsschlüssels: `smtpd_forbid_bare_newline_exclusions`
106+
* Liste der Clients, für die bloße Zeilenumbrüche weiterhin zulässig sein sollen.
107+
Siehe https://www.postfix.org/postconf.5.html#smtpd_forbid_bare_newline_exclusions
108+
* Optional
109+
* Default-Wert: `$mynetworks`
110+
94111
### Log Level
95112

96113
* Pfad des Konfigurationsschlüssels: `logging/root`

docs/operations/Configure_Dogu_en.md

+17
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,23 @@ the following settings:
8888
* List of SSL/TLS protocols that the Postfix SMTP client will use with mandatory TLS encryption
8989
* Optional
9090

91+
### Bare newlines
92+
93+
* Configuration key path: `smtpd_forbid_bare_newline`
94+
* Disables support for malformed line endings in SMTP.
95+
This fixes CVE-2023-51764 but could break (rare) clients that mis-implement SMTP.
96+
* Optional
97+
* Valid values: `yes, no`
98+
* Default value: `yes`
99+
100+
### Client exclusions for bare newlines
101+
102+
* Configuration key path: `smtpd_forbid_bare_newline_exclusions`
103+
* List of clients for which bare newlines should still be allowed.
104+
See https://www.postfix.org/postconf.5.html#smtpd_forbid_bare_newline_exclusions
105+
* Optional
106+
* Default value: `$mynetworks`
107+
91108
### Log Level
92109

93110
* Configuration key path: `logging/root`

dogu.json

+20-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"Name": "official/postfix",
3-
"Version": "3.6.4-6",
3+
"Version": "3.8.4-1",
44
"DisplayName": "Postfix",
55
"Description": "Postfix - Mail Transfer Agent",
66
"Logo": "https://cloudogu.com/images/dogus/postfix.png",
@@ -69,6 +69,25 @@
6969
"Description": "List of SSL/TLS protocols that the Postfix SMTP client will use with mandatory TLS encryption",
7070
"Optional": true
7171
},
72+
{
73+
"Name": "smtpd_forbid_bare_newline",
74+
"Description": "Disables support for malformed line endings in SMTP. This fixes CVE-2023-51764 but could break (rare) clients that mis-implement SMTP.",
75+
"Optional": true,
76+
"Default": "yes",
77+
"Validation": {
78+
"Type": "ONE_OF",
79+
"Values": [
80+
"yes",
81+
"no"
82+
]
83+
}
84+
},
85+
{
86+
"Name": "smtpd_forbid_bare_newline_exclusions",
87+
"Description": "List of clients for which bare newlines should still be allowed. See https://www.postfix.org/postconf.5.html#smtpd_forbid_bare_newline_exclusions",
88+
"Optional": true,
89+
"Default": "$mynetworks"
90+
},
7291
{
7392
"Name": "logging/root",
7493
"Description": "Set the root log level to one of ERROR, WARN, INFO, DEBUG.",

resources/startup.sh

+2-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,8 @@ POSTFIX_SASL_PASSWORD=$(doguctl config --default "NOT_SET" sasl_password)
3838
NET=""
3939
OPTIONS=('smtp_tls_security_level' 'smtp_tls_loglevel'
4040
'smtp_tls_exclude_ciphers' 'smtp_tls_mandatory_ciphers'
41-
'smtp_tls_mandatory_protocols')
41+
'smtp_tls_mandatory_protocols'
42+
'smtpd_forbid_bare_newline' 'smtpd_forbid_bare_newline_exclusions')
4243

4344
# GATHERING NETWORKS FROM INTERFACES FOR MYNETWORKS
4445

0 commit comments

Comments
 (0)