diff --git a/templates/main.cf-el5.erb b/templates/main.cf-el5.erb index 95adb67..840c898 100644 --- a/templates/main.cf-el5.erb +++ b/templates/main.cf-el5.erb @@ -886,11 +886,13 @@ smtpd_recipient_restrictions = <% @smtpd_recipient_restrictions.each do |line| -%> <%= line %>, <% end -%> +<% if @postgrey -%> <% if @postgrey_policy_service -%> check_policy_service <%= @postgrey_policy_service %>, <% else -%> check_policy_service unix:postgrey/socket, <% end -%> +<% end -%> <% end -%> <% if !@smtpd_data_restrictions.empty? -%> diff --git a/templates/main.cf.erb b/templates/main.cf.erb index 2e0beb0..76abcc7 100644 --- a/templates/main.cf.erb +++ b/templates/main.cf.erb @@ -908,11 +908,13 @@ smtpd_recipient_restrictions = <% @smtpd_recipient_restrictions.each do |line| -%> <%= line %>, <% end -%> +<% if @postgrey -%> <% if @postgrey_policy_service -%> check_policy_service <%= @postgrey_policy_service %>, <% else -%> check_policy_service unix:postgrey/socket, <% end -%> +<% end -%> <% end -%> <% if !@smtpd_data_restrictions.empty? -%>