I'd like to append to the default Postfix value of local_recipient_maps
, defined as:
% postconf | grep '^local_recipient_maps'
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
local_recipient_maps = proxy:unix:passwd.byname $alias_maps
Based on the documentation it seemed like I should be able to just reference the default value in the new value, so I did:
# postconf 'local_recipient_maps = $local_recipient_maps hash:/var/lib/mailman3/data/postfix_lmtp'
but when I run postconf
again, it gives me a macro error:
% postconf | grep '^local_recipient_maps'
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: unreasonable macro call nesting: "local_recipient_maps"
postconf: fatal: macro processing error
Obviously this is not a big deal because I can just copy and paste the original default value, but I'd like to know if I'm doing something wrong/if this is (supposed to be) possible because it makes for a nice way to separate different parts of parameters into sections with a comment header explaining what they're for (e.g. this one is going into a # Mailman
section, because obviously only the last map in local_recipient_maps
is related to Mailman).
If it matters, I am on Postfix 3.4.10-0+deb10u1 (according to apt policy postfix
) on Debian 10.
If you defined all the mua_* parameters in main.cf, they must have something corresponding that actually exists.
Getting to your exact case, you most likely have something like:
but you did not define in your *.cf
smtpd_client_restrictions=mua_client_restrictions
You should have something that finally looks like: