# See https://rspamd.com/doc/tutorials/writing_rules.html for details
mime_types {
- file = "${CONFDIR}/mime_types.inc";
+ file = [
+ "${CONFDIR}/mime_types.inc",
+ "${DBDIR}/mime_types.inc.local"
+ ]
# Match specific extensions to specific content types
extension_map = {
# See https://rspamd.com/doc/tutorials/writing_rules.html for details
surbl {
- whitelist = "file://$CONFDIR/surbl-whitelist.inc";
- exceptions = "file://$CONFDIR/2tld.inc";
+ whitelist = [
+ "${CONFDIR}/surbl-whitelist.inc",
+ "${DBDIR}/surbl-whitelist.inc.local"
+ ];
+ exceptions = [
+ "${CONFDIR}/2tld.inc",
+ "${DBDIR}/2tld.inc.local"
+ ];
rules {
"SURBL_MULTI" {
rules {
"WHITELIST_SPF" = {
valid_spf = true;
- domains = "${CONFDIR}/spf_whitelist.inc";
+ domains = [
+ "${CONFDIR}/spf_whitelist.inc",
+ "${DBDIR}/spf_whitelist.inc.local",
+ ];
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";
+ domains = [
+ "${CONFDIR}/dkim_whitelist.inc",
+ "${DBDIR}/dkim_whitelist.inc.local",
+ ];
description = "Mail comes from the whitelisted domain and has a valid DKIM signature";
score = -1.0
}
"WHITELIST_SPF_DKIM" = {
valid_spf = true;
valid_dkim = true;
- domains = "${CONFDIR}/spf_dkim_whitelist.inc";
+ domains = [
+ "${CONFDIR}/spf_dkim_whitelist.inc",
+ "${DBDIR}/spf_dkim_whitelist.inc.local",
+ ];
score = -3.0;
description = "Mail comes from the whitelisted domain and has valid SPF and DKIM policies";
}
"WHITELIST_DMARC" = {
valid_dmarc = true;
- domains = "${CONFDIR}/dmarc_whitelist.inc";
+ domains = [
+ "${CONFDIR}/dmarc_whitelist.inc",
+ "${DBDIR}/dmarc_whitelist.inc.local",
+ ];
score = -7.0;
description = "Mail comes from the whitelisted domain and has valid DMARC and DKIM policies";
}
retransmits = 5;
}
tempdir = "/tmp";
-url_tld = "${PLUGINSDIR}/effective_tld_names.dat";
+url_tld = ["${PLUGINSDIR}/effective_tld_names.dat",
+ "${DBDIR}/effective_tld_names.dat.local"];
classify_headers = [
"User-Agent",
"X-Mailer",