puppet-postfix icon indicating copy to clipboard operation
puppet-postfix copied to clipboard

Not able to disable postgrey

Open cfoehrdes opened this issue 7 years ago • 1 comments

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 -%>

cfoehrdes avatar Aug 29 '17 08:08 cfoehrdes

If just looked at older version and in version 0.3.3 it actually is surrounded by the condition.

cfoehrdes avatar Aug 29 '17 08:08 cfoehrdes