puppet-postfix
puppet-postfix copied to clipboard
Not able to disable postgrey
It seems to me that there is a bug in the current release as it suddenly always configures postgrey in the smtpd_recipient_restrictions
. After having a look at the template for the main.cf
there is only a condition which type of postgrey has to be configured and not a surounding condition if it should be configured at all:
<% if @postgrey_policy_service -%>
check_policy_service <%= @postgrey_policy_service %>,
<% else -%>
check_policy_service unix:postgrey/socket,
<% end -%>
should probably be:
<% if @postgrey -%>
<% if @postgrey_policy_service -%>
check_policy_service <%= @postgrey_policy_service %>,
<% else -%>
check_policy_service unix:postgrey/socket,
<% end -%>
<% end -%>
If just looked at older version and in version 0.3.3 it actually is surrounded by the condition.