aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2021-04-14 18:50:14 -0300
committerSilvio Rhatto <rhatto@riseup.net>2021-04-14 18:50:14 -0300
commitc69e94c9e03b4c1aa2928b0108ad7066fe08bbe9 (patch)
tree66f8d67e458c0b5ca8af11350b1c63eac479a396
parent8aa0a704f76c2e4e2bb022896166e07d2b06535e (diff)
downloadpuppet-postfix-c69e94c9e03b4c1aa2928b0108ad7066fe08bbe9.tar.gz
puppet-postfix-c69e94c9e03b4c1aa2928b0108ad7066fe08bbe9.tar.bz2
Feat: support for SPF checking
-rw-r--r--manifests/init.pp1
-rw-r--r--templates/master.cf.debian-10.erb5
2 files changed, 6 insertions, 0 deletions
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 %>