fix: postfix-main.cf may depend upon postfix-master.cf (#3880)

Custom parameters must be referenced to be retained when `postconf -n` is run. If those parameters are referenced by `postfix-master.cf` this needs to update `master.cf` before updating `main.cf`.
This commit is contained in:
Brennan Kinney 2024-05-03 11:12:34 +12:00 committed by GitHub
parent 7822a97430
commit e2c2a22dcf
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 51 additions and 17 deletions

View file

@ -2,3 +2,6 @@ max_idle = 600s
# this is a comment
# this is also a comment
readme_directory = /tmp
# This parameter is referenced by an override in `postfix-master.cf`:
custom_parameter = cidr:{{!172.16.0.42 REJECT}}, permit_sasl_authenticated, reject

View file

@ -1,3 +1,7 @@
submission/inet/smtpd_sasl_security_options=noanonymous
# this is a test comment, please don't delete me :'(
# this is also a test comment, :O
# DMS must first process `postfix-master.cf` to `master.cf` when any custom parameters are from `postfix-main.cf`
# before an updated `main.cf` is read via `postconf`, otherwise without an existing reference the parameter is excluded.
submission/inet/smtpd_client_restrictions=$custom_parameter