notifies :run, "notify_group[discourse_container_new_web_only]"
end
+template "/srv/community.openstreetmap.org/files/policyd-spf.conf" do
+ source "policyd-spf.conf.erb"
+ owner "community"
+ group "community"
+ mode "644"
+ notifies :run, "notify_group[discourse_container_new_mail_receiver]"
+end
+
template "/srv/community.openstreetmap.org/docker/containers/mail-receiver.yml" do
source "mail-receiver.yml.erb"
owner "root"
- volume:
host: /etc/ssl/private/community.openstreetmap.org.key
guest: /shared/ssl/ssl.key
+ - volume:
+ host: /srv/community.openstreetmap.org/files/policyd-spf.conf
+ guest: /etc/postfix-policyd-spf-python/policyd-spf.conf
--- /dev/null
+# Source: https://github.com/discourse/mail-receiver/blob/main/policyd-spf.conf
+# For a fully commented sample config file see policyd-spf.conf.commented
+
+debugLevel = 1
+TestOnly = 1
+
+# Change these options to False if you want to pass SPF failures through to DMARC milter
+HELO_reject = Fail
+Mail_From_reject = Fail
+
+
+PermError_reject = False
+TempError_Defer = False
+
+skip_addresses = 127.0.0.0/8,::ffff:127.0.0.0/104,::1,10.0.0.0/8
+