diff options
author | heraklit256 <37872459+heraklit256@users.noreply.github.com#> | 2018-09-08 12:02:02 +0200 |
---|---|---|
committer | heraklit256 <37872459+heraklit256@users.noreply.github.com#> | 2018-09-08 12:02:02 +0200 |
commit | 46bb18fa937540fcb19e027dae95d1a54256fab9 (patch) | |
tree | b735f07e0b173e85985f65fa0d6132b2a7c234ad /conf | |
parent | fa4ffc69b738b0495467626621622fe4c433605f (diff) | |
download | rspamd-46bb18fa937540fcb19e027dae95d1a54256fab9.tar.gz rspamd-46bb18fa937540fcb19e027dae95d1a54256fab9.zip |
add rule for spammy PHP generated mails
Diffstat (limited to 'conf')
-rw-r--r-- | conf/composites.conf | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/conf/composites.conf b/conf/composites.conf index 2b4c57072..89f03790e 100644 --- a/conf/composites.conf +++ b/conf/composites.conf @@ -87,15 +87,20 @@ composites { score = 2.0; } RCVD_DKIM_ARC_DNSWL_MED { - expression = "(R_DKIM_ALLOW | ARC_ALLOW ) & RCVD_IN_DNSWL_MED"; + expression = "(R_DKIM_ALLOW | ARC_ALLOW) & RCVD_IN_DNSWL_MED"; description = "Sufficiently DKIM/ARC signed and received from IP with medium trust at DNSWL"; score = -1.5; } RCVD_DKIM_ARC_DNSWL_HI { - expression = "(R_DKIM_ALLOW | ARC_ALLOW ) & RCVD_IN_DNSWL_HI"; + expression = "(R_DKIM_ALLOW | ARC_ALLOW) & RCVD_IN_DNSWL_HI"; description = "Sufficiently DKIM/ARC signed and received from IP with high trust at DNSWL"; score = -3.5; } + AUTOGEN_PHP_SPAMMY { + expression = "(HAS_X_POS | HAS_PHPMAILER_SIG | HAS_X_PHP_SCRIPT) & (SUBJECT_ENDS_QUESTION | SUBJECT_ENDS_EXCLAIM | MANY_INVISIBLE_PARTS)"; + description = "Message was generated by PHP script and contains some spam indicators"; + score = 1.0; + } .include(try=true; priority=1; duplicate=merge) "$LOCAL_CONFDIR/local.d/composites.conf" .include(try=true; priority=10) "$LOCAL_CONFDIR/override.d/composites.conf" |