aboutsummaryrefslogtreecommitdiffstats
path: root/roles/mailserver/templates/etc_rspamd_local.d_dmarc.conf.j2
diff options
context:
space:
mode:
Diffstat (limited to 'roles/mailserver/templates/etc_rspamd_local.d_dmarc.conf.j2')
-rw-r--r--roles/mailserver/templates/etc_rspamd_local.d_dmarc.conf.j247
1 files changed, 47 insertions, 0 deletions
diff --git a/roles/mailserver/templates/etc_rspamd_local.d_dmarc.conf.j2 b/roles/mailserver/templates/etc_rspamd_local.d_dmarc.conf.j2
new file mode 100644
index 0000000..a850af9
--- /dev/null
+++ b/roles/mailserver/templates/etc_rspamd_local.d_dmarc.conf.j2
@@ -0,0 +1,47 @@
+# Enables storing reporting information to redis
+reporting = true;
+
+# Actions to enforce based on DMARC disposition
+actions = {
+ quarantine = "add_header";
+ reject = "reject";
+}
+
+# From Rspamd 1.6 experimental support for generation of DMARC reports is provided.
+# send_reports MUST be true
+send_reports = true;
+
+# report_settings MUST be present
+report_settings {
+ # The following elements MUST be present
+ # organisation name to use for reports
+ org_name = "{{ organization }}";
+
+ # organisation domain
+ domain = "{{ domain }}";
+
+ # sender address to use for reports
+ email = "postmaster@{{ domain }}";
+
+ # The following elements MAY be present
+ # SMTP host to send reports to ("127.0.0.1" if unset)
+ # smtp = "127.0.0.1";
+
+ # TCP port to use for SMTP (25 if unset)
+ # smtp_port = 25;
+
+ # HELO to use for SMTP ("rspamd" if unset)
+ # helo = "rspamd";
+
+ # Number of retries on temporary errors (2 if unset)
+ # retries = 2;
+
+ # Send DMARC reports here instead of domain owners
+ # override_address = "postmaster@example.net";
+
+ # Send DMARC reports here in addition to domain owners
+ additional_address = "postmaster@{{ domain }}";
+
+ # Number of records to request with HSCAN
+ # hscan_count = 200
+}