@@ -17,7 +17,8 @@ mid = { | |||
source = { | |||
url = [ | |||
"https://maps.rspamd.com/rspamd/mid.inc.zst", | |||
"$LOCAL_CONFDIR/local.d/mid.inc" | |||
"$LOCAL_CONFDIR/local.d/mid.inc", | |||
"fallback+file://${CONFDIR}/mid.inc" | |||
]; | |||
} | |||
@@ -16,7 +16,8 @@ | |||
mime_types { | |||
file = [ | |||
"https://maps.rspamd.com/rspamd/mime_types.inc.zst", | |||
"${DBDIR}/mime_types.inc.local" | |||
"${DBDIR}/mime_types.inc.local", | |||
"fallback+file://${CONFDIR}/mime_types.inc" | |||
] | |||
# Match specific extensions to specific content types |
@@ -26,7 +26,8 @@ phishing { | |||
# Make exclusions for known redirectors | |||
redirector_domains = [ | |||
"https://maps.rspamd.com/rspamd/redirectors.inc.zst:REDIRECTOR_FALSE", | |||
"$LOCAL_CONFDIR/local.d/redirectors.inc:LOCAL_REDIRECTOR_FALSE" | |||
"$LOCAL_CONFDIR/local.d/redirectors.inc:LOCAL_REDIRECTOR_FALSE", | |||
"fallback+file://${CONFDIR}/redirectors.inc:REDIRECTOR_FALSE" | |||
]; | |||
.include(try=true,priority=5) "${DBDIR}/dynamic/phishing.conf" |
@@ -16,11 +16,13 @@ | |||
surbl { | |||
whitelist = [ | |||
"https://maps.rspamd.com/rspamd/surbl-whitelist.inc.zst", | |||
"${DBDIR}/surbl-whitelist.inc.local" | |||
"${DBDIR}/surbl-whitelist.inc.local", | |||
"fallback+file://${CONFDIR}/surbl-whitelist.inc" | |||
]; | |||
exceptions = [ | |||
"https://maps.rspamd.com/rspamd/2tld.inc.zst", | |||
"${DBDIR}/2tld.inc.local" | |||
"${DBDIR}/2tld.inc.local", | |||
"fallback+file://${CONFDIR}/2tld.inc" | |||
]; | |||
rules { |
@@ -20,6 +20,7 @@ whitelist { | |||
domains = [ | |||
"https://maps.rspamd.com/rspamd/spf_whitelist.inc.zst", | |||
"${DBDIR}/spf_whitelist.inc.local", | |||
"fallback+file://${CONFDIR}/spf_whitelist.inc" | |||
]; | |||
score = -1.0 | |||
description = "Mail comes from the whitelisted domain and has a valid SPF policy"; | |||
@@ -30,6 +31,7 @@ whitelist { | |||
domains = [ | |||
"https://maps.rspamd.com/rspamd/dkim_whitelist.inc.zst", | |||
"${DBDIR}/dkim_whitelist.inc.local", | |||
"fallback+file://${CONFDIR}/dkim_whitelist.inc" | |||
]; | |||
description = "Mail comes from the whitelisted domain and has a valid DKIM signature"; | |||
score = -1.0 | |||
@@ -40,6 +42,7 @@ whitelist { | |||
domains = [ | |||
"https://maps.rspamd.com/rspamd/spf_dkim_whitelist.inc.zst", | |||
"${DBDIR}/spf_dkim_whitelist.inc.local", | |||
"fallback+file://${CONFDIR}/spf_dkim_whitelist.inc" | |||
]; | |||
score = -3.0; | |||
description = "Mail comes from the whitelisted domain and has valid SPF and DKIM policies"; | |||
@@ -49,6 +52,7 @@ whitelist { | |||
domains = [ | |||
"https://maps.rspamd.com/rspamd/dmarc_whitelist.inc.zst", | |||
"${DBDIR}/dmarc_whitelist.inc.local", | |||
"fallback+file://${CONFDIR}/dmarc_whitelist.inc" | |||
]; | |||
score = -7.0; | |||
description = "Mail comes from the whitelisted domain and has valid DMARC and DKIM policies"; |
@@ -1,5 +1,8 @@ | |||
mime_types { | |||
file = "https://maps.rspamd.com/rspamd/mime_types.inc.zst"; | |||
file = [ | |||
"https://maps.rspamd.com/rspamd/mime_types.inc.zst", | |||
"fallback+file://${TESTDIR}/../../../conf/mime_types.inc" | |||
]; | |||
extension_map { | |||
html = "text/html"; | |||
txt [ |