The default master.cf file in a fresh installation of Ubuntu 18 seems to contain some undefined parameters:
Under both the submission
block and the smtps
block:
-o smtpd_client_restrictions=$mua_client_restrictions
-o smtpd_helo_restrictions=$mua_helo_restrictions
-o smtpd_sender_restrictions=$mua_sender_restrictions
What's going on here? Is this a bug? Or is the package maintainer expecting us to define these ourselves?
This came up for me yesterday when I got these warnings while installing a new package:
postconf: warning: /etc/postfix/master.cf: undefined parameter: mua_sender_restrictions
postconf: warning: /etc/postfix/master.cf: undefined parameter: mua_client_restrictions
postconf: warning: /etc/postfix/master.cf: undefined parameter: mua_helo_restrictions
postconf: warning: /etc/postfix/master.cf: undefined parameter: mua_sender_restrictions
postconf: warning: /etc/postfix/master.cf: undefined parameter: mua_client_restrictions
postconf: warning: /etc/postfix/master.cf: undefined parameter: mua_helo_restrictions
You can get rid of the error messages by adding the following in the main.cf file for postfix:
Save main.cf and the postfix reload, then postfix check. You should see nothing being printed. That's what I did to remove the errors from my build. It seems to be a defaults left over from the build. I believe that you can comment those 3 lines out in the master.cf and then you can use
smtpd_client_restrictions, smtpd_sender_restrictions
,smtpd_recipient_restrictions
, andsmtpd_helo_restrictions
in the main.cf for postfix.