diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-09-16 16:25:14 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-09-16 16:25:14 +0100 |
commit | bf413daf8a1a1fb38cbe3bde214f3c7b7e2d5f43 (patch) | |
tree | 28573461470118742906aeb9bcc1b3977d1c1b8b /conf/modules.d/whitelist.conf | |
parent | a84bea6efa40304f470bc9efb1ff9e62e7de01b3 (diff) | |
download | rspamd-bf413daf8a1a1fb38cbe3bde214f3c7b7e2d5f43.tar.gz rspamd-bf413daf8a1a1fb38cbe3bde214f3c7b7e2d5f43.zip |
Add whitelist configuration.
Diffstat (limited to 'conf/modules.d/whitelist.conf')
-rw-r--r-- | conf/modules.d/whitelist.conf | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/conf/modules.d/whitelist.conf b/conf/modules.d/whitelist.conf new file mode 100644 index 000000000..191960e85 --- /dev/null +++ b/conf/modules.d/whitelist.conf @@ -0,0 +1,31 @@ +whitelist { + .include(try=true,priority=1) "${DBDIR}/dynamic/whitelist.conf" + rules { + "WHITELIST_SPF" = { + valid_spf = true; + domains = "${CONFDIR}/spf_whitelist.inc"; + score = -1.0 + description = "Mail comes from the whitelisted domain and has a valid SPF policy"; + } + + "WHITELIST_DKIM" = { + valid_dkim = true; + domains = "${CONFDIR}/dkim_whitelist.inc"; + description = "Mail comes from the whitelisted domain and has a valid DKIM signature"; + } + "WHITELIST_SPF_DKIM" = { + valid_spf = true; + valid_dkim = true; + domains = "${CONFDIR}/spf_dkim_whitelist.inc"; + score = -6.0; + description = "Mail comes from the whitelisted domain and has valid SPF and DKIM policies"; + } + "WHITELIST_DMARC" = { + valid_dkim = true; + valid_dmarc = true; + domains = "${CONFDIR}/dmarc_whitelist.inc"; + score = -7.0; + description = "Mail comes from the whitelisted domain and has valid DMARC and DKIM policies"; + } + } +}
\ No newline at end of file |