rspamd/conf/composites.conf

61 lines
2.1 KiB
Plaintext
Raw Normal View History

2013-11-21 17:20:45 +01:00
# Composites setup
2016-03-10 20:16:01 +01:00
# Please don't modify this file as your changes might be overwritten with
# the next update.
#
# You can modify '$LOCAL_CONFDIR/rspamd.conf.local.override' to redefine
# parameters defined on the top level
#
# You can modify '$LOCAL_CONFDIR/rspamd.conf.local' to add
# parameters defined on the top level
#
# For specific modules or configuration you can also modify
# '$LOCAL_CONFDIR/local.d/file.conf' - to add your options or rewrite defaults
# '$LOCAL_CONFDIR/override.d/file.conf' - to override the defaults
#
# See https://rspamd.com/doc/tutorials/writing_rules.html for details
2013-11-21 17:20:45 +01:00
2016-06-28 12:46:02 +02:00
composite "FORGED_RECIPIENTS_MAILLIST" {
2013-11-21 17:20:45 +01:00
expression = "FORGED_RECIPIENTS & -MAILLIST";
}
2016-06-28 12:46:02 +02:00
composite "FORGED_SENDER_MAILLIST" {
2014-09-05 14:49:19 +02:00
expression = "FORGED_SENDER & -MAILLIST";
}
2016-06-28 12:46:02 +02:00
composite "FORGED_SENDER_FORWARDING" {
2016-04-22 13:20:21 +02:00
expression = "FORGED_SENDER & g:forwarding";
}
2016-08-22 09:47:32 +02:00
composite "SPF_FAIL_FORWARDING" {
expression = "g:forwarding & (R_SPF_SOFTFAIL | R_SPF_FAIL)";
policy = "remove_weight";
2016-08-21 13:45:31 +02:00
}
composite "DMARC_POLICY_ALLOW_WITH_FAILURES" {
expression = "DMARC_POLICY_ALLOW & (R_SPF_SOFTFAIL | R_SPF_FAIL | R_DKIM_REJECT)";
2016-09-08 16:41:27 +02:00
policy = "remove_weight";
}
composite "FORGED_RECIPIENTS_FORWARDING" {
expression = "FORGED_RECIPIENTS & g:forwarding";
}
2016-06-28 12:46:02 +02:00
composite "FORGED_SENDER_VERP_SRS" {
2016-04-22 13:20:21 +02:00
expression = "FORGED_SENDER & (ENVFROM_PRVS | ENVFROM_VERP)";
}
2016-06-28 12:46:02 +02:00
composite "FORGED_MUA_MAILLIST" {
expression = "g:mua and -MAILLIST";
2013-11-21 17:20:45 +01:00
}
2016-06-28 12:46:02 +02:00
composite "RBL_SPAMHAUS_XBL_ANY" {
2016-09-08 16:41:27 +02:00
expression = "RBL_SPAMHAUS_XBL & RECEIVED_SPAMHAUS_XBL";
}
composite "AUTH_NA" {
expression = "R_DKIM_NA & R_SPF_NA & DMARC_NA";
score = 1.0;
2016-09-08 16:41:27 +02:00
policy = "remove_weight";
}
2016-11-03 15:01:32 +01:00
composite "DKIM_MIXED" {
2016-09-19 16:56:16 +02:00
expression = "-R_DKIM_ALLOW & (R_DKIM_DNSFAIL | R_DKIM_PERMFAIL | R_DKIM_REJECT)"
policy = "remove_weight";
}
composite "MAIL_RU_MAILER_BASE64" {
expression = "MAIL_RU_MAILER & (FROM_EXCESS_BASE64 | REPLYTO_EXCESS_BASE64 | SUBJ_EXCESS_BASE64 | TO_EXCESS_BASE64)";
}
2016-07-01 09:53:57 +02:00
.include(try=true; priority=1; duplicate=merge) "$LOCAL_CONFDIR/local.d/composites.conf"
2016-04-22 13:20:21 +02:00
.include(try=true; priority=10) "$LOCAL_CONFDIR/override.d/composites.conf"