2017-09-19 15:19:22 +08:00
|
|
|
MX_IMPLICIT {
|
2018-12-10 20:26:18 +08:00
|
|
|
expression = "MX_GOOD & MX_MISSING";
|
2017-12-09 16:08:18 +08:00
|
|
|
score = -0.01;
|
|
|
|
}
|
|
|
|
VIRUS_FOUND {
|
|
|
|
expression = "CLAM_VIRUS & !MAILCOW_WHITE";
|
2020-10-20 17:55:55 +08:00
|
|
|
score = 2000.0;
|
2017-09-19 15:19:22 +08:00
|
|
|
}
|
2020-12-29 05:04:01 +08:00
|
|
|
# Bad policy from free mail providers
|
|
|
|
FREEMAIL_POLICY_FAILURE {
|
|
|
|
expression = " -g+:policies & !DMARC_POLICY_ALLOW & ( FREEMAIL_ENVFROM | FREEMAIL_FROM ) & !WHITELISTED_FWD_HOST";
|
|
|
|
score = 16.0;
|
|
|
|
}
|
2020-10-18 16:11:27 +08:00
|
|
|
# Bad policy from non-whitelisted senders
|
|
|
|
# Remove SOGO_CONTACT symbol for fwd hosts and senders with broken policy
|
|
|
|
SOGO_CONTACT_EXCLUDE {
|
2020-11-11 21:34:24 +08:00
|
|
|
expression = "(-WHITELISTED_FWD_HOST | -g+:policies) & ^SOGO_CONTACT & !DMARC_POLICY_ALLOW";
|
2018-12-10 20:26:18 +08:00
|
|
|
}
|
2020-10-18 16:11:27 +08:00
|
|
|
# Spoofed header from and broken policy (excluding sieve host, rspamd host, whitelisted senders, authenticated senders and forward hosts)
|
2019-04-15 02:37:38 +08:00
|
|
|
SPOOFED_UNAUTH {
|
2020-11-19 16:44:04 +08:00
|
|
|
expression = "!MAILCOW_AUTH & !MAILCOW_WHITE & !RSPAMD_HOST & !SIEVE_HOST & MAILCOW_DOMAIN_HEADER_FROM & !WHITELISTED_FWD_HOST & -g+:policies";
|
2020-10-18 16:11:27 +08:00
|
|
|
score = 50.0;
|
2019-04-15 02:37:38 +08:00
|
|
|
}
|
2019-06-26 00:52:05 +08:00
|
|
|
# Only apply to inbound unauthed and not whitelisted
|
2019-06-16 23:35:24 +08:00
|
|
|
OLEFY_MACRO {
|
|
|
|
expression = "!MAILCOW_AUTH & !MAILCOW_WHITE & OLETOOLS";
|
2019-06-20 16:18:43 +08:00
|
|
|
score = 20.0;
|
2019-06-16 23:35:24 +08:00
|
|
|
policy = "remove_weight";
|
|
|
|
}
|
2020-10-18 16:11:27 +08:00
|
|
|
# Applies to a content filter map
|
2019-08-28 19:03:15 +08:00
|
|
|
BAD_WORD_BAD_TLD {
|
2019-09-15 17:16:30 +08:00
|
|
|
expression = "FISHY_TLD & ( BAD_WORDS | BAD_WORDS_DE )"
|
2019-08-31 01:30:38 +08:00
|
|
|
score = 10.0;
|
2019-08-28 19:03:15 +08:00
|
|
|
}
|
2020-10-18 16:11:27 +08:00
|
|
|
# Forged with bad policies and not fwd host, keep bad policy symbols
|
2019-11-24 23:08:58 +08:00
|
|
|
FORGED_W_BAD_POLICY {
|
2020-11-11 21:34:24 +08:00
|
|
|
expression = "( -g+:policies | -R_SPF_NA) & ( ~FROM_NEQ_ENVFROM | ~FORGED_SENDER ) & !WHITELISTED_FWD_HOST & !DMARC_POLICY_ALLOW"
|
2019-11-24 23:08:58 +08:00
|
|
|
score = 3.0;
|
|
|
|
}
|
2020-10-18 16:11:27 +08:00
|
|
|
# Keep negative (good) scores for rbl, policies and hfilter, disable neural group
|
2020-10-18 15:12:02 +08:00
|
|
|
WL_FWD_HOST {
|
2020-10-18 16:11:27 +08:00
|
|
|
expression = "-WHITELISTED_FWD_HOST & (^g+:rbl | ^g+:policies | ^g+:hfilter | ^g:neural)"
|
2020-05-23 17:16:33 +08:00
|
|
|
}
|
2020-10-18 16:11:27 +08:00
|
|
|
# Exclude X-Spam like flags from scoring from fwd and sieve hosts
|
2020-04-11 02:54:26 +08:00
|
|
|
UPSTREAM_CHECKS_EXCLUDE_FWD_HOST {
|
2020-04-28 02:48:12 +08:00
|
|
|
expression = "(-SIEVE_HOST | -WHITELISTED_FWD_HOST) & (^UNITEDINTERNET_SPAM | ^SPAM_FLAG | ^KLMS_SPAM | ^AOL_SPAM | ^MICROSOFT_SPAM)"
|
2020-04-11 02:54:26 +08:00
|
|
|
}
|
2020-10-20 22:15:02 +08:00
|
|
|
# Remove fuzzy group from bounces
|
|
|
|
BOUNCE_FUZZY {
|
|
|
|
expression = "-BOUNCE & ^g+:fuzzy";
|
|
|
|
}
|