2017-05-08 15:39:33 +02:00
|
|
|
RCPT_MAILCOW_DOMAIN {
|
2020-10-16 18:39:22 +02:00
|
|
|
type = "rcpt";
|
|
|
|
filter = "email:domain";
|
2017-10-04 23:16:39 +02:00
|
|
|
map = "redis://DOMAIN_MAP";
|
2018-05-25 18:58:37 +02:00
|
|
|
symbols_set = ["RCPT_MAILCOW_DOMAIN"];
|
2017-05-08 15:39:33 +02:00
|
|
|
}
|
|
|
|
|
2017-05-08 23:09:21 +02:00
|
|
|
WHITELISTED_FWD_HOST {
|
|
|
|
type = "ip";
|
2017-10-04 23:16:39 +02:00
|
|
|
map = "redis://WHITELISTED_FWD_HOST";
|
2018-05-25 18:58:37 +02:00
|
|
|
symbols_set = ["WHITELISTED_FWD_HOST"];
|
2017-05-08 23:09:21 +02:00
|
|
|
}
|
|
|
|
|
2020-03-06 07:14:06 +01:00
|
|
|
BULK_HEADER {
|
|
|
|
type = "content";
|
2020-06-03 08:34:15 +02:00
|
|
|
map = "${LOCAL_CONFDIR}/custom/bulk_header.map";
|
2020-03-06 07:14:06 +01:00
|
|
|
filter = "headers"
|
|
|
|
regexp = true;
|
|
|
|
symbols_set = ["BULK_HEADER"];
|
|
|
|
}
|
|
|
|
|
2021-07-09 07:42:37 +02:00
|
|
|
CHAT_VERSION_HEADER {
|
|
|
|
type = "header";
|
|
|
|
header = "Chat-Version";
|
|
|
|
map = "${LOCAL_CONFDIR}/custom/chat_versions.map";
|
|
|
|
regexp = true;
|
|
|
|
symbols_set = ["CHAT_VERSION_HEADER"];
|
|
|
|
}
|
|
|
|
|
2021-05-23 23:12:07 +02:00
|
|
|
BAD_HEADER {
|
|
|
|
type = "content";
|
|
|
|
map = "${LOCAL_CONFDIR}/custom/bad_header.map";
|
|
|
|
filter = "headers"
|
|
|
|
regexp = true;
|
|
|
|
symbols_set = ["BAD_HEADER"];
|
|
|
|
}
|
|
|
|
|
2018-04-26 13:51:55 +02:00
|
|
|
LOCAL_BL_ASN {
|
|
|
|
require_symbols = "!MAILCOW_WHITE";
|
|
|
|
type = "asn";
|
2020-06-03 08:34:15 +02:00
|
|
|
map = "${LOCAL_CONFDIR}/custom/bad_asn.map";
|
2018-04-26 13:51:55 +02:00
|
|
|
score = 5;
|
|
|
|
description = "Sender's ASN is on the local blacklist";
|
2018-05-25 18:58:37 +02:00
|
|
|
symbols_set = ["LOCAL_BL_ASN"];
|
2018-04-26 13:51:55 +02:00
|
|
|
}
|
2018-11-26 09:06:34 +01:00
|
|
|
|
2019-01-29 12:11:10 +01:00
|
|
|
GLOBAL_SMTP_FROM_WL {
|
2018-11-26 09:06:34 +01:00
|
|
|
type = "from";
|
2020-06-03 08:34:15 +02:00
|
|
|
map = "${LOCAL_CONFDIR}/custom/global_smtp_from_whitelist.map";
|
2018-11-26 09:06:34 +01:00
|
|
|
regexp = true;
|
2020-06-19 22:07:10 +02:00
|
|
|
score = -2050;
|
2018-11-26 09:06:34 +01:00
|
|
|
}
|
|
|
|
|
2019-01-29 12:11:10 +01:00
|
|
|
GLOBAL_SMTP_FROM_BL {
|
2018-11-26 09:06:34 +01:00
|
|
|
type = "from";
|
2020-06-03 08:34:15 +02:00
|
|
|
map = "${LOCAL_CONFDIR}/custom/global_smtp_from_blacklist.map";
|
2019-01-29 12:11:10 +01:00
|
|
|
regexp = true;
|
2020-10-21 19:00:53 +02:00
|
|
|
score = 2050;
|
2019-01-29 12:11:10 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
GLOBAL_MIME_FROM_WL {
|
|
|
|
type = "header";
|
|
|
|
header = "from";
|
2020-09-12 20:11:18 +02:00
|
|
|
filter = "email:addr";
|
2020-06-03 08:34:15 +02:00
|
|
|
map = "${LOCAL_CONFDIR}/custom/global_mime_from_whitelist.map";
|
2019-01-29 12:11:10 +01:00
|
|
|
regexp = true;
|
2020-06-19 22:07:10 +02:00
|
|
|
score = -2050;
|
2019-01-29 12:11:10 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
GLOBAL_MIME_FROM_BL {
|
|
|
|
type = "header";
|
|
|
|
header = "from";
|
2020-09-12 20:11:18 +02:00
|
|
|
filter = "email:addr";
|
2020-06-03 08:34:15 +02:00
|
|
|
map = "${LOCAL_CONFDIR}/custom/global_mime_from_blacklist.map";
|
2018-11-26 09:06:34 +01:00
|
|
|
regexp = true;
|
2020-10-21 19:00:53 +02:00
|
|
|
score = 2050;
|
2018-11-26 09:06:34 +01:00
|
|
|
}
|
2018-11-27 10:20:42 +01:00
|
|
|
|
|
|
|
GLOBAL_RCPT_WL {
|
|
|
|
type = "rcpt";
|
2020-06-03 08:34:15 +02:00
|
|
|
map = "${LOCAL_CONFDIR}/custom/global_rcpt_whitelist.map";
|
2018-11-27 10:20:42 +01:00
|
|
|
regexp = true;
|
|
|
|
prefilter = true;
|
|
|
|
action = "accept";
|
|
|
|
}
|
|
|
|
|
|
|
|
GLOBAL_RCPT_BL {
|
|
|
|
type = "rcpt";
|
2020-06-03 08:34:15 +02:00
|
|
|
map = "${LOCAL_CONFDIR}/custom/global_rcpt_blacklist.map";
|
2018-11-27 10:20:42 +01:00
|
|
|
regexp = true;
|
|
|
|
prefilter = true;
|
|
|
|
action = "reject";
|
|
|
|
}
|
2019-05-18 22:44:06 +02:00
|
|
|
|
|
|
|
SIEVE_HOST {
|
|
|
|
type = "ip";
|
2020-06-03 08:34:15 +02:00
|
|
|
map = "${LOCAL_CONFDIR}/custom/dovecot_trusted.map";
|
2019-05-18 22:44:06 +02:00
|
|
|
symbols_set = ["SIEVE_HOST"];
|
|
|
|
}
|
2019-05-20 15:14:42 +02:00
|
|
|
|
2020-01-10 20:39:52 +01:00
|
|
|
RSPAMD_HOST {
|
|
|
|
type = "ip";
|
2020-06-03 08:34:15 +02:00
|
|
|
map = "${LOCAL_CONFDIR}/custom/rspamd_trusted.map";
|
2020-01-10 20:39:52 +01:00
|
|
|
symbols_set = ["RSPAMD_HOST"];
|
|
|
|
}
|
|
|
|
|
2019-05-20 15:14:42 +02:00
|
|
|
MAILCOW_DOMAIN_HEADER_FROM {
|
|
|
|
type = "header";
|
|
|
|
header = "from";
|
|
|
|
filter = "email:domain";
|
|
|
|
map = "redis://DOMAIN_MAP";
|
|
|
|
}
|
2019-08-28 13:03:15 +02:00
|
|
|
|
2019-07-22 13:38:47 +02:00
|
|
|
IP_WHITELIST {
|
|
|
|
type = "ip";
|
2020-06-03 08:34:15 +02:00
|
|
|
map = "${LOCAL_CONFDIR}/custom/ip_wl.map";
|
2020-05-20 12:15:33 +02:00
|
|
|
symbols_set = ["IP_WHITELIST"];
|
2020-06-19 22:07:10 +02:00
|
|
|
score = -2050;
|
2019-07-22 13:38:47 +02:00
|
|
|
}
|
2019-08-28 13:03:15 +02:00
|
|
|
|
|
|
|
FISHY_TLD {
|
|
|
|
type = "from";
|
|
|
|
filter = "email:domain";
|
|
|
|
map = "${LOCAL_CONFDIR}/custom/fishy_tlds.map";
|
|
|
|
regexp = true;
|
2019-08-28 14:37:04 +02:00
|
|
|
score = 0.1;
|
2019-08-28 13:03:15 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
BAD_WORDS {
|
|
|
|
type = "content";
|
|
|
|
filter = "text";
|
|
|
|
map = "${LOCAL_CONFDIR}/custom/bad_words.map";
|
|
|
|
regexp = true;
|
2019-08-28 15:04:53 +02:00
|
|
|
score = 0.1;
|
2019-08-28 13:03:15 +02:00
|
|
|
}
|
2019-09-16 18:18:56 +02:00
|
|
|
|
|
|
|
BAD_WORDS_DE {
|
|
|
|
type = "content";
|
|
|
|
filter = "text";
|
|
|
|
map = "${LOCAL_CONFDIR}/custom/bad_words_de.map";
|
|
|
|
regexp = true;
|
|
|
|
score = 0.1;
|
|
|
|
}
|
2019-12-22 18:57:28 +01:00
|
|
|
|
|
|
|
BAD_LANG {
|
|
|
|
type = 'selector';
|
|
|
|
selector = 'languages';
|
|
|
|
map = "${LOCAL_CONFDIR}/custom/bad_languages.map";
|
|
|
|
symbols_set = ["LANG_FILTER"];
|
|
|
|
regexp = true;
|
|
|
|
score = 5.0;
|
|
|
|
}
|
2020-04-27 17:27:47 +02:00
|
|
|
|
2021-05-24 11:12:53 +02:00
|
|
|
BAZAAR_ABUSE_CH {
|
2020-04-27 17:27:47 +02:00
|
|
|
type = "selector";
|
2020-04-29 21:08:33 +02:00
|
|
|
selector = "attachments(hex,md5)";
|
2020-04-27 17:27:47 +02:00
|
|
|
map = "https://bazaar.abuse.ch/export/txt/md5/recent/";
|
|
|
|
score = 10.0;
|
|
|
|
}
|
2020-07-30 15:24:29 +02:00
|
|
|
|
|
|
|
URLHAUS_ABUSE_CH {
|
|
|
|
type = "url";
|
|
|
|
filter = "full";
|
|
|
|
map = "https://urlhaus.abuse.ch/downloads/text_online/";
|
|
|
|
score = 10.0;
|
|
|
|
}
|
2020-09-23 11:21:28 +02:00
|
|
|
|
|
|
|
SMTP_LIMITED_ACCESS {
|
|
|
|
type = "user";
|
|
|
|
map = "redis://SMTP_LIMITED_ACCESS";
|
|
|
|
symbols_set = ["SMTP_LIMITED_ACCESS"];
|
|
|
|
}
|
2021-05-24 11:12:53 +02:00
|
|
|
|