2017-05-08 21:39:33 +08:00
|
|
|
RCPT_MAILCOW_DOMAIN {
|
2020-10-17 00:39:22 +08:00
|
|
|
type = "rcpt";
|
|
|
|
filter = "email:domain";
|
2017-10-05 05:16:39 +08:00
|
|
|
map = "redis://DOMAIN_MAP";
|
2018-05-26 00:58:37 +08:00
|
|
|
symbols_set = ["RCPT_MAILCOW_DOMAIN"];
|
2017-05-08 21:39:33 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
RCPT_WANTS_SUBJECT_TAG {
|
2020-10-17 00:39:22 +08:00
|
|
|
type = "rcpt";
|
|
|
|
filter = "email:addr";
|
2017-10-05 05:16:39 +08:00
|
|
|
map = "redis://RCPT_WANTS_SUBJECT_TAG";
|
2018-05-26 00:58:37 +08:00
|
|
|
symbols_set = ["RCPT_WANTS_SUBJECT_TAG"];
|
2017-05-08 21:39:33 +08:00
|
|
|
}
|
2017-05-09 05:09:21 +08:00
|
|
|
|
2018-01-16 23:31:37 +08:00
|
|
|
RCPT_WANTS_SUBFOLDER_TAG {
|
|
|
|
type = "rcpt";
|
|
|
|
filter = "email:addr";
|
|
|
|
map = "redis://RCPT_WANTS_SUBFOLDER_TAG";
|
2018-05-26 00:58:37 +08:00
|
|
|
symbols_set = ["RCPT_WANTS_SUBFOLDER_TAG"];
|
2018-01-16 23:31:37 +08:00
|
|
|
}
|
|
|
|
|
2017-05-09 05:09:21 +08:00
|
|
|
WHITELISTED_FWD_HOST {
|
|
|
|
type = "ip";
|
2017-10-05 05:16:39 +08:00
|
|
|
map = "redis://WHITELISTED_FWD_HOST";
|
2018-05-26 00:58:37 +08:00
|
|
|
symbols_set = ["WHITELISTED_FWD_HOST"];
|
2017-05-09 05:09:21 +08:00
|
|
|
}
|
|
|
|
|
2020-03-06 14:14:06 +08:00
|
|
|
BULK_HEADER {
|
|
|
|
type = "content";
|
2020-06-03 14:34:15 +08:00
|
|
|
map = "${LOCAL_CONFDIR}/custom/bulk_header.map";
|
2020-03-06 14:14:06 +08:00
|
|
|
filter = "headers"
|
|
|
|
regexp = true;
|
|
|
|
symbols_set = ["BULK_HEADER"];
|
|
|
|
}
|
|
|
|
|
2018-04-26 19:51:55 +08:00
|
|
|
LOCAL_BL_ASN {
|
|
|
|
require_symbols = "!MAILCOW_WHITE";
|
|
|
|
type = "asn";
|
2020-06-03 14:34:15 +08:00
|
|
|
map = "${LOCAL_CONFDIR}/custom/bad_asn.map";
|
2018-04-26 19:51:55 +08:00
|
|
|
score = 5;
|
|
|
|
description = "Sender's ASN is on the local blacklist";
|
2018-05-26 00:58:37 +08:00
|
|
|
symbols_set = ["LOCAL_BL_ASN"];
|
2018-04-26 19:51:55 +08:00
|
|
|
}
|
2018-11-26 16:06:34 +08:00
|
|
|
|
2019-01-29 19:11:10 +08:00
|
|
|
GLOBAL_SMTP_FROM_WL {
|
2018-11-26 16:06:34 +08:00
|
|
|
type = "from";
|
2020-06-03 14:34:15 +08:00
|
|
|
map = "${LOCAL_CONFDIR}/custom/global_smtp_from_whitelist.map";
|
2018-11-26 16:06:34 +08:00
|
|
|
regexp = true;
|
2020-06-20 04:07:10 +08:00
|
|
|
score = -2050;
|
2018-11-26 16:06:34 +08:00
|
|
|
}
|
|
|
|
|
2019-01-29 19:11:10 +08:00
|
|
|
GLOBAL_SMTP_FROM_BL {
|
2018-11-26 16:06:34 +08:00
|
|
|
type = "from";
|
2020-06-03 14:34:15 +08:00
|
|
|
map = "${LOCAL_CONFDIR}/custom/global_smtp_from_blacklist.map";
|
2019-01-29 19:11:10 +08:00
|
|
|
regexp = true;
|
2020-10-22 01:00:53 +08:00
|
|
|
score = 2050;
|
2019-01-29 19:11:10 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
GLOBAL_MIME_FROM_WL {
|
|
|
|
type = "header";
|
|
|
|
header = "from";
|
2020-09-13 02:11:18 +08:00
|
|
|
filter = "email:addr";
|
2020-06-03 14:34:15 +08:00
|
|
|
map = "${LOCAL_CONFDIR}/custom/global_mime_from_whitelist.map";
|
2019-01-29 19:11:10 +08:00
|
|
|
regexp = true;
|
2020-06-20 04:07:10 +08:00
|
|
|
score = -2050;
|
2019-01-29 19:11:10 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
GLOBAL_MIME_FROM_BL {
|
|
|
|
type = "header";
|
|
|
|
header = "from";
|
2020-09-13 02:11:18 +08:00
|
|
|
filter = "email:addr";
|
2020-06-03 14:34:15 +08:00
|
|
|
map = "${LOCAL_CONFDIR}/custom/global_mime_from_blacklist.map";
|
2018-11-26 16:06:34 +08:00
|
|
|
regexp = true;
|
2020-10-22 01:00:53 +08:00
|
|
|
score = 2050;
|
2018-11-26 16:06:34 +08:00
|
|
|
}
|
2018-11-27 17:20:42 +08:00
|
|
|
|
|
|
|
GLOBAL_RCPT_WL {
|
|
|
|
type = "rcpt";
|
2020-06-03 14:34:15 +08:00
|
|
|
map = "${LOCAL_CONFDIR}/custom/global_rcpt_whitelist.map";
|
2018-11-27 17:20:42 +08:00
|
|
|
regexp = true;
|
|
|
|
prefilter = true;
|
|
|
|
action = "accept";
|
|
|
|
}
|
|
|
|
|
|
|
|
GLOBAL_RCPT_BL {
|
|
|
|
type = "rcpt";
|
2020-06-03 14:34:15 +08:00
|
|
|
map = "${LOCAL_CONFDIR}/custom/global_rcpt_blacklist.map";
|
2018-11-27 17:20:42 +08:00
|
|
|
regexp = true;
|
|
|
|
prefilter = true;
|
|
|
|
action = "reject";
|
|
|
|
}
|
2019-05-19 04:44:06 +08:00
|
|
|
|
|
|
|
SIEVE_HOST {
|
|
|
|
type = "ip";
|
2020-06-03 14:34:15 +08:00
|
|
|
map = "${LOCAL_CONFDIR}/custom/dovecot_trusted.map";
|
2019-05-19 04:44:06 +08:00
|
|
|
symbols_set = ["SIEVE_HOST"];
|
2020-04-27 23:27:47 +08:00
|
|
|
score = -15;
|
2019-05-19 04:44:06 +08:00
|
|
|
}
|
2019-05-20 21:14:42 +08:00
|
|
|
|
2020-01-11 03:39:52 +08:00
|
|
|
RSPAMD_HOST {
|
|
|
|
type = "ip";
|
2020-06-03 14:34:15 +08:00
|
|
|
map = "${LOCAL_CONFDIR}/custom/rspamd_trusted.map";
|
2020-01-11 03:39:52 +08:00
|
|
|
symbols_set = ["RSPAMD_HOST"];
|
|
|
|
}
|
|
|
|
|
2019-05-20 21:14:42 +08:00
|
|
|
MAILCOW_DOMAIN_HEADER_FROM {
|
|
|
|
type = "header";
|
|
|
|
header = "from";
|
|
|
|
filter = "email:domain";
|
|
|
|
map = "redis://DOMAIN_MAP";
|
|
|
|
}
|
2019-08-28 19:03:15 +08:00
|
|
|
|
2019-07-22 19:38:47 +08:00
|
|
|
IP_WHITELIST {
|
|
|
|
type = "ip";
|
2020-06-03 14:34:15 +08:00
|
|
|
map = "${LOCAL_CONFDIR}/custom/ip_wl.map";
|
2020-05-20 18:15:33 +08:00
|
|
|
symbols_set = ["IP_WHITELIST"];
|
2020-06-20 04:07:10 +08:00
|
|
|
score = -2050;
|
2019-07-22 19:38:47 +08:00
|
|
|
}
|
2019-08-28 19:03:15 +08:00
|
|
|
|
|
|
|
FISHY_TLD {
|
|
|
|
type = "from";
|
|
|
|
filter = "email:domain";
|
|
|
|
map = "${LOCAL_CONFDIR}/custom/fishy_tlds.map";
|
|
|
|
regexp = true;
|
2019-08-28 20:37:04 +08:00
|
|
|
score = 0.1;
|
2019-08-28 19:03:15 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
BAD_WORDS {
|
|
|
|
type = "content";
|
|
|
|
filter = "text";
|
|
|
|
map = "${LOCAL_CONFDIR}/custom/bad_words.map";
|
|
|
|
regexp = true;
|
2019-08-28 21:04:53 +08:00
|
|
|
score = 0.1;
|
2019-08-28 19:03:15 +08:00
|
|
|
}
|
2019-09-17 00:18:56 +08:00
|
|
|
|
|
|
|
BAD_WORDS_DE {
|
|
|
|
type = "content";
|
|
|
|
filter = "text";
|
|
|
|
map = "${LOCAL_CONFDIR}/custom/bad_words_de.map";
|
|
|
|
regexp = true;
|
|
|
|
score = 0.1;
|
|
|
|
}
|
2019-12-23 01:57:28 +08: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 23:27:47 +08:00
|
|
|
|
|
|
|
BAZAR_ABUSE_CH {
|
|
|
|
type = "selector";
|
2020-04-30 03:08:33 +08:00
|
|
|
selector = "attachments(hex,md5)";
|
2020-04-27 23:27:47 +08:00
|
|
|
map = "https://bazaar.abuse.ch/export/txt/md5/recent/";
|
|
|
|
score = 10.0;
|
|
|
|
}
|
2020-07-30 21:24:29 +08:00
|
|
|
|
|
|
|
URLHAUS_ABUSE_CH {
|
|
|
|
type = "url";
|
|
|
|
filter = "full";
|
|
|
|
map = "https://urlhaus.abuse.ch/downloads/text_online/";
|
|
|
|
score = 10.0;
|
|
|
|
}
|
2020-09-23 17:21:28 +08:00
|
|
|
|
|
|
|
SMTP_LIMITED_ACCESS {
|
|
|
|
type = "user";
|
|
|
|
map = "redis://SMTP_LIMITED_ACCESS";
|
|
|
|
symbols_set = ["SMTP_LIMITED_ACCESS"];
|
|
|
|
}
|
2020-10-13 17:15:12 +08:00
|
|
|
|
|
|
|
SENDGRID_INVALUEMENT_BAD_SENDER {
|
|
|
|
type = "selector";
|
|
|
|
map = "https://www.invaluement.com/spdata/sendgrid-id-dnsbl.txt";
|
|
|
|
selector = 'from("smtp","orig").regexp("/^<?bounces\+(\d+)\-[^@]+@sendgrid.net>?$/i").last';
|
|
|
|
score = 8.0;
|
|
|
|
}
|