mailcow/data/conf/rspamd/local.d/composites.conf

47 lines
1.3 KiB
Plaintext
Raw Normal View History

2017-09-19 15:19:22 +08:00
MX_IMPLICIT {
expression = "MX_GOOD & MX_MISSING";
score = -0.01;
}
VIRUS_FOUND {
expression = "CLAM_VIRUS & !MAILCOW_WHITE";
score = 2000;
2017-09-19 15:19:22 +08:00
}
SPF_FAIL_NO_DKIM {
expression = "R_SPF_FAIL & R_DKIM_NA & !MAILCOW_WHITE & !ARC_ALLOW";
score = 10;
}
SOGO_CONTACT_EXCLUDE_FWD_HOST {
expression = "-WHITELISTED_FWD_HOST & ~SOGO_CONTACT";
}
SOGO_CONTACT_SPOOFED {
expression = "(R_SPF_PERMFAIL | R_SPF_SOFTFAIL | R_SPF_FAIL) & ~SOGO_CONTACT";
}
2019-04-15 02:37:38 +08:00
SPOOFED_UNAUTH {
expression = "!MAILCOW_AUTH & !MAILCOW_WHITE & !RSPAMD_HOST & !SIEVE_HOST & MAILCOW_DOMAIN_HEADER_FROM";
2019-04-15 02:37:38 +08:00
score = 5.0;
}
# 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";
}
BAD_WORD_BAD_TLD {
expression = "FISHY_TLD & ( BAD_WORDS | BAD_WORDS_DE )"
score = 10.0;
}
2019-11-24 23:08:58 +08:00
FORGED_W_BAD_POLICY {
expression = "( ~g+:policies | ~R_SPF_NA) & ( ~FROM_NEQ_ENVFROM & ~FORGED_SENDER )"
score = 3.0;
}
RBL_EXCLUDE_FWD_HOST {
expression = "-WHITELISTED_FWD_HOST & ^g:rbl"
}
UPSTREAM_CHECKS_EXCLUDE_FWD_HOST {
expression = "(-SIEVE_HOST | -WHITELISTED_FWD_HOST) & (^UNITEDINTERNET_SPAM | ^SPAM_FLAG | ^KLMS_SPAM | ^AOL_SPAM | ^MICROSOFT_SPAM)"
}
2020-05-07 02:15:18 +08:00
SPOOFED_UNAUTH_POLICY_FAILURE {
expression = "-SPOOFED_UNAUTH & -R_SPF_FAIL";
score = 50.0;
}