With the newer postfix releases (such as 2.9.x), some keys only exist when
a feature is enabled. For example: policy_time_limit
If I set policy_time_limit and then later disable using a policy, I can't
find a way to get it deleted from main.cf with postconf. If I set it to an
empty value, it still exists, and postconf will throw an error about it
being an unused key:
/opt/zimbra/postfix/sbin/postconf: warning:
/opt/zimbra/postfix-2.9.0.2z/conf/main.cf: unused parameter:
policy_time_limit=
I stumbled across the -# option to postconf, but this is undesirable,
because it can lead to multiple lines in a main.cf file, like:
smtp_sasl_auth_enable = no
#policy_time_limit =
mailbox_size_limit = 0
disable_dns_lookups = no
smtpd_end_of_data_restrictions = check_policy_service inet:127.0.0.1:10031
policy_time_limit = 3600
if you choose to later re-enable it using a policy.
Is there some command or option I'm missing that would allow me to
permanently remove a key/value pair using postconf from main.cf?
Thanks,
Quanah
--
Quanah Gibson-Mount
Sr. Member of Technical Staff
Zimbra, Inc
A Division of VMware, Inc.
--------------------
Zimbra :: the leader in open source messaging and collaboration