aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 %>