Quanah Gibson-Mount:
> With the newer postfix releases (such as 2.9.x), some keys only exist when
> a feature is enabled. For example: policy_time_limit
Correct.
> 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=
Specifying an empty value does not make the parameter go away.
Many parameters can heva an empty value. Some even have it as
the default.
To remove all instances of a parameter:
Before:
/etc/postfix/main.cf:
policy_time_limit = foo
policy_time_limit = bar
Command:
# postconf -# policy_time_limit
After:
/etc/postfix/main.cf:
#policy_time_limit = foo
#policy_time_limit = bar
Wietse