The following conditional block in main.cnf.erb always defaults to check_policy_service unix:postgrey/socket, even when the postgrey option is set to false.
<% if !@smtpd_recipient_restrictions.empty? or @postgrey -%>
smtpd_recipient_restrictions =
<% @smtpd_recipient_restrictions.each do |line| -%>
<%= line %>,
<% end -%>
<% if @postgrey_policy_service -%>
check_policy_service <%= @postgrey_policy_service %>,
<% else -%>
check_policy_service unix:postgrey/socket,
<% end -%>
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
The following conditional block in main.cnf.erb always defaults to
check_policy_service unix:postgrey/socket,
even when the postgrey option is set to false.End result: