]> gitweb.fluxo.info Git - puppet-postfix.git/commitdiff
Feat: support for SPF checking
authorSilvio Rhatto <rhatto@riseup.net>
Wed, 14 Apr 2021 21:50:14 +0000 (18:50 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Wed, 14 Apr 2021 21:50:14 +0000 (18:50 -0300)
manifests/init.pp
templates/master.cf.debian-10.erb

index eb8847893d7fd9a48f012bed04392138f890185d..81c3a916834cd8b8ea091533e2060a306a7a9811 100644 (file)
@@ -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,
index a6e819a1b420dac09eccdfbd19373a028fa1c522..5070bd1b35c7b2ecb156c760788a764135e2a1ce 100644 (file)
@@ -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 %>