fix: setup email restrict configs should only prepend once#4379
fix: setup email restrict configs should only prepend once#4379georglauterbach merged 3 commits intomasterfrom
setup email restrict configs should only prepend once#4379Conversation
ContextA quick overview of our current script support related to Summary:
#3127 was for DMS v12: docker-mailserver/CHANGELOG.md Lines 505 to 507 in d2d74a2 docker-mailserver/target/postfix/main.cf Line 59 in d2d74a2 docker-mailserver/target/postfix/main.cf Lines 70 to 74 in d2d74a2 Ports 587 and 465 use a custom parameter for While docker-mailserver/target/scripts/startup/setup.d/security/spoofing.sh Lines 24 to 26 in d2d74a2 Another feature appends to docker-mailserver/target/scripts/startup/setup.d/postfix.sh Lines 64 to 69 in d2d74a2 |
…all `smtpd` ports
|
Technically this shouldn't be a noteworthy change/fix as I don't think the current duplication is breaking anything, but if a changelog entry is needed: ### Fixes
- **Postfix:**
- `setup email restrict` generated configs now only prepend to `dms_smtpd_sender_restrictions` ([#4379](https://github.com/docker-mailserver/docker-mailserver/pull/4379) |
Description
I've noticed that
/etc/postfix/main.cfhas these checks prepended twice, as the Postfix parameter we update also has thesedcall match our owndms_prefix variant (introduced in #3127).No known bugs, nor should this fix change anything other than removing the duplicates prepended to
smtpd_sender_restrictions, onlydms_smtpd_sender_restrictionswill be configured with these restrictions.EDIT: There was a slight mishap with recipient restrictions in this PR. It was resolved in a follow-up PR for the same 15.0.1 release: #4399
Quick reference for maintainers
To configure how the sender addresses of mail is restricted, DMS has a few similar settings due to:
smtpd_sender_restrictions = $dms_smtpd_sender_restrictions(main.cf)-o smtpd_sender_restrictions=$mua_sender_restrictions(master.cf)That translates to the following:
smtpd_sender_restrictionsis now only from port 25 (inbound)$mua_sender_restrictionsis only for ports 587 + 465$dms_smtpd_sender_restrictionsis used by all 3smtpdports (25, 587, 465).To keep the same behaviour DMS already has for
setup email restricton all ports, we now only prepend todms_smtpd_sender_restrictions.Type of change
Checklist
CHANGELOG.md