diff options
author | Andrew Lewis <nerf@judo.za.org> | 2016-12-21 12:37:16 +0200 |
---|---|---|
committer | Andrew Lewis <nerf@judo.za.org> | 2016-12-21 15:26:51 +0200 |
commit | cb7c54ccf0faa730b2da1f6a4dcac30b2d9e7d6d (patch) | |
tree | 3d9af63b3ece12f01fb033b0d1fac467f4d15219 /conf/composites.conf | |
parent | f41e30b785e5d35bf11c71ed3346095eacb797b4 (diff) | |
download | rspamd-cb7c54ccf0faa730b2da1f6a4dcac30b2d9e7d6d.tar.gz rspamd-cb7c54ccf0faa730b2da1f6a4dcac30b2d9e7d6d.zip |
[Rework] Composite configuration (#1270)
Diffstat (limited to 'conf/composites.conf')
-rw-r--r-- | conf/composites.conf | 89 |
1 files changed, 46 insertions, 43 deletions
diff --git a/conf/composites.conf b/conf/composites.conf index 7c81fff35..288b08d58 100644 --- a/conf/composites.conf +++ b/conf/composites.conf @@ -14,47 +14,50 @@ # # See https://rspamd.com/doc/tutorials/writing_rules.html for details -composite "FORGED_RECIPIENTS_MAILLIST" { - expression = "FORGED_RECIPIENTS & -MAILLIST"; -} -composite "FORGED_SENDER_MAILLIST" { - expression = "FORGED_SENDER & -MAILLIST"; -} -composite "FORGED_SENDER_FORWARDING" { - expression = "FORGED_SENDER & g:forwarding"; -} -composite "SPF_FAIL_FORWARDING" { - expression = "g:forwarding & (R_SPF_SOFTFAIL | R_SPF_FAIL)"; - policy = "remove_weight"; -} -composite "DMARC_POLICY_ALLOW_WITH_FAILURES" { - expression = "DMARC_POLICY_ALLOW & (R_SPF_SOFTFAIL | R_SPF_FAIL | R_DKIM_REJECT)"; - policy = "remove_weight"; -} -composite "FORGED_RECIPIENTS_FORWARDING" { - expression = "FORGED_RECIPIENTS & g:forwarding"; -} -composite "FORGED_SENDER_VERP_SRS" { - expression = "FORGED_SENDER & (ENVFROM_PRVS | ENVFROM_VERP)"; -} -composite "FORGED_MUA_MAILLIST" { - expression = "g:mua and -MAILLIST"; -} -composite "RBL_SPAMHAUS_XBL_ANY" { - expression = "RBL_SPAMHAUS_XBL & RECEIVED_SPAMHAUS_XBL"; -} -composite "AUTH_NA" { - expression = "R_DKIM_NA & R_SPF_NA & DMARC_NA"; - score = 1.0; - policy = "remove_weight"; -} -composite "DKIM_MIXED" { - 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)"; -} +composites { + + FORGED_RECIPIENTS_MAILLIST { + expression = "FORGED_RECIPIENTS & -MAILLIST"; + } + FORGED_SENDER_MAILLIST { + expression = "FORGED_SENDER & -MAILLIST"; + } + FORGED_SENDER_FORWARDING { + expression = "FORGED_SENDER & g:forwarding"; + } + SPF_FAIL_FORWARDING { + expression = "g:forwarding & (R_SPF_SOFTFAIL | R_SPF_FAIL)"; + policy = "remove_weight"; + } + DMARC_POLICY_ALLOW_WITH_FAILURES { + expression = "DMARC_POLICY_ALLOW & (R_SPF_SOFTFAIL | R_SPF_FAIL | R_DKIM_REJECT)"; + policy = "remove_weight"; + } + FORGED_RECIPIENTS_FORWARDING { + expression = "FORGED_RECIPIENTS & g:forwarding"; + } + FORGED_SENDER_VERP_SRS { + expression = "FORGED_SENDER & (ENVFROM_PRVS | ENVFROM_VERP)"; + } + FORGED_MUA_MAILLIST { + expression = "g:mua and -MAILLIST"; + } + RBL_SPAMHAUS_XBL_ANY { + expression = "RBL_SPAMHAUS_XBL & RECEIVED_SPAMHAUS_XBL"; + } + AUTH_NA { + expression = "R_DKIM_NA & R_SPF_NA & DMARC_NA"; + score = 1.0; + policy = "remove_weight"; + } + DKIM_MIXED { + expression = "-R_DKIM_ALLOW & (R_DKIM_DNSFAIL | R_DKIM_PERMFAIL | R_DKIM_REJECT)" + policy = "remove_weight"; + } + MAIL_RU_MAILER_BASE64 { + expression = "MAIL_RU_MAILER & (FROM_EXCESS_BASE64 | REPLYTO_EXCESS_BASE64 | SUBJ_EXCESS_BASE64 | TO_EXCESS_BASE64)"; + } -.include(try=true; priority=1; duplicate=merge) "$LOCAL_CONFDIR/local.d/composites.conf" -.include(try=true; priority=10) "$LOCAL_CONFDIR/override.d/composites.conf" + .include(try=true; priority=1; duplicate=merge) "$LOCAL_CONFDIR/local.d/composites.conf" + .include(try=true; priority=10) "$LOCAL_CONFDIR/override.d/composites.conf" +} |