2017-05-08 15:39:33 +02:00
|
|
|
RCPT_MAILCOW_DOMAIN {
|
|
|
|
type = "rcpt";
|
2017-10-04 23:16:39 +02:00
|
|
|
filter = "email:domain";
|
|
|
|
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
|
|
|
}
|
|
|
|
|
|
|
|
RCPT_WANTS_SUBJECT_TAG {
|
|
|
|
type = "rcpt";
|
2018-01-16 16:31:37 +01:00
|
|
|
filter = "email:addr";
|
2017-10-04 23:16:39 +02:00
|
|
|
map = "redis://RCPT_WANTS_SUBJECT_TAG";
|
2018-05-25 18:58:37 +02:00
|
|
|
symbols_set = ["RCPT_WANTS_SUBJECT_TAG"];
|
2017-05-08 15:39:33 +02:00
|
|
|
}
|
2017-05-08 23:09:21 +02:00
|
|
|
|
2018-01-16 16:31:37 +01:00
|
|
|
RCPT_WANTS_SUBFOLDER_TAG {
|
|
|
|
type = "rcpt";
|
|
|
|
filter = "email:addr";
|
|
|
|
map = "redis://RCPT_WANTS_SUBFOLDER_TAG";
|
2018-05-25 18:58:37 +02:00
|
|
|
symbols_set = ["RCPT_WANTS_SUBFOLDER_TAG"];
|
2018-01-16 16:31:37 +01: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
|
|
|
}
|
|
|
|
|
2018-04-26 13:51:55 +02:00
|
|
|
LOCAL_BL_ASN {
|
|
|
|
require_symbols = "!MAILCOW_WHITE";
|
|
|
|
type = "asn";
|
|
|
|
map = "$LOCAL_CONFDIR/custom/bad_asn.map";
|
|
|
|
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";
|
2019-01-29 12:11:10 +01:00
|
|
|
map = "$LOCAL_CONFDIR/custom/global_smtp_from_whitelist.map";
|
2018-11-26 09:06:34 +01:00
|
|
|
regexp = true;
|
|
|
|
prefilter = true;
|
|
|
|
action = "accept";
|
|
|
|
}
|
|
|
|
|
2019-01-29 12:11:10 +01:00
|
|
|
GLOBAL_SMTP_FROM_BL {
|
2018-11-26 09:06:34 +01:00
|
|
|
type = "from";
|
2019-01-29 12:11:10 +01:00
|
|
|
map = "$LOCAL_CONFDIR/custom/global_smtp_from_blacklist.map";
|
|
|
|
regexp = true;
|
|
|
|
prefilter = true;
|
|
|
|
action = "reject";
|
|
|
|
}
|
|
|
|
|
|
|
|
GLOBAL_MIME_FROM_WL {
|
|
|
|
type = "header";
|
|
|
|
header = "from";
|
|
|
|
map = "$LOCAL_CONFDIR/custom/global_mime_from_whitelist.map";
|
|
|
|
regexp = true;
|
|
|
|
prefilter = true;
|
|
|
|
action = "accept";
|
|
|
|
}
|
|
|
|
|
|
|
|
GLOBAL_MIME_FROM_BL {
|
|
|
|
type = "header";
|
|
|
|
header = "from";
|
|
|
|
map = "$LOCAL_CONFDIR/custom/global_mime_from_blacklist.map";
|
2018-11-26 09:06:34 +01:00
|
|
|
regexp = true;
|
|
|
|
prefilter = true;
|
|
|
|
action = "reject";
|
|
|
|
}
|
2018-11-27 10:20:42 +01:00
|
|
|
|
|
|
|
GLOBAL_RCPT_WL {
|
|
|
|
type = "rcpt";
|
|
|
|
map = "$LOCAL_CONFDIR/custom/global_rcpt_whitelist.map";
|
|
|
|
regexp = true;
|
|
|
|
prefilter = true;
|
|
|
|
action = "accept";
|
|
|
|
}
|
|
|
|
|
|
|
|
GLOBAL_RCPT_BL {
|
|
|
|
type = "rcpt";
|
|
|
|
map = "$LOCAL_CONFDIR/custom/global_rcpt_blacklist.map";
|
|
|
|
regexp = true;
|
|
|
|
prefilter = true;
|
|
|
|
action = "reject";
|
|
|
|
}
|
2019-05-18 22:44:06 +02:00
|
|
|
|
|
|
|
SIEVE_HOST {
|
|
|
|
type = "ip";
|
|
|
|
map = "$LOCAL_CONFDIR/custom/dovecot_trusted.map";
|
|
|
|
symbols_set = ["SIEVE_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";
|
|
|
|
map = "$LOCAL_CONFDIR/custom/ip_wl.map";
|
2019-07-22 13:50:05 +02:00
|
|
|
prefilter = "true";
|
|
|
|
action = "accept";
|
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
|
|
|
}
|