diff --git a/manifests/server.pp b/manifests/server.pp index 9be7e4f..e5ea654 100644 --- a/manifests/server.pp +++ b/manifests/server.pp @@ -104,7 +104,9 @@ $smtps_smtpd_client_restrictions = 'permit_sasl_authenticated', $master_services = [], # Other files + $header_checks_type = 'regexp', $header_checks = [], + $body_checks_type = 'regexp', $body_checks = [], # Postscreen - available in Postfix 2.8 and later $postscreen = false, diff --git a/templates/main.cf.erb b/templates/main.cf.erb index 2e0beb0..2bfedc9 100644 --- a/templates/main.cf.erb +++ b/templates/main.cf.erb @@ -604,7 +604,7 @@ mailbox_command = <%= @mailbox_command %> # # For details, see "man header_checks". # -header_checks = regexp:<%= @config_directory %>/header_checks +header_checks = <%= @header_checks_type %>:<%= @config_directory %>/header_checks # FAST ETRN SERVICE # @@ -929,7 +929,7 @@ smtpd_end_of_data_restrictions = <% end -%> <% end -%> -body_checks = regexp:<%= @config_directory %>/body_checks +body_checks = <%= @body_checks_type %>:<%= @config_directory %>/body_checks <% if @canonical_maps -%> canonical_maps = <%= @canonical_maps %>