From: Silvio Rhatto Date: Wed, 14 Apr 2021 21:50:14 +0000 (-0300) Subject: Feat: support for SPF checking X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=c69e94c9e03b4c1aa2928b0108ad7066fe08bbe9;p=puppet-postfix.git Feat: support for SPF checking --- diff --git a/manifests/init.pp b/manifests/init.pp index eb88478..81c3a91 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -50,6 +50,7 @@ class postfix( $use_mlmmj = 'no', $use_submission = 'no', $use_smtps = 'no', + $use_spf = 'no', $mastercf_tail = '', $inet_interfaces = 'all', $myorigin = $::fqdn, diff --git a/templates/master.cf.debian-10.erb b/templates/master.cf.debian-10.erb index a6e819a..5070bd1 100644 --- a/templates/master.cf.debian-10.erb +++ b/templates/master.cf.debian-10.erb @@ -164,6 +164,11 @@ sympabounce unix - n n - - pipe mlmmj unix - n n - - pipe flags=DORhu user=mlmmj argv=/usr/bin/mlmmj-recieve -F -L /var/spool/mlmmj/$nexthop/ <%- end -%> +<% if @use_spf == 'yes' %> +# spf +policyd-spf unix - n n - 0 spawn + user=policyd-spf argv=/usr/bin/policyd-spf +<%- end -%> <%- unless @mastercf_tail.to_s.empty? then -%> <%= @mastercf_tail %>