Postfix main.cf Template Bug in current 9.1 branch

ivenae

Well-Known Member
Feb 11, 2022
183
90
48
42
There are "\n" missing in the main.cf.in template, leading to missing new line chars in the main.cf:

Code:
smtpd_recipient_restrictions =
        permit_mynetworks
        reject_unauth_destination
        reject_non_fqdn_recipient
        check_recipient_access  regexp:/etc/postfix/rcptaccess check_sender_access  regexp:/etc/postfix/senderaccess check_client_access  cidr:/etc/postfix/clientaccess check_policy_service inet:127.0.0.1:10022 reject_unknown_recipient_domain reject_unverified_recipient
 
There are "\n" missing in the main.cf.in template, leading to missing new line chars in the main.cf:
the config does work though? - I agree that this can be improved and would become more readable - but want to make sure that I don't miss something here?
 
You are right.
Code:
postconf -n
sais: Everything is parsed correctly, just hard to read.
Sorry, my fault!
 
sais: Everything is parsed correctly, just hard to read.
Sorry, my fault!
No need to apologize! - I do see that it's a bit harder to read - I think I never noticed/wasn't bothered by it, as it looks fine in the template itself.

I'll see if I can adapt the template to add linkebreaks there (without adding tons of whitespace if any of the options is not used.

Thanks again for the report!