]> source.dussan.org Git - rspamd.git/commitdiff
Merge pull request #2543 from heraklit256/extended-dnswl-scores
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Mon, 8 Oct 2018 15:22:43 +0000 (16:22 +0100)
committerGitHub <noreply@github.com>
Mon, 8 Oct 2018 15:22:43 +0000 (16:22 +0100)
leaving original symbols if DNSWL composite rules are triggered

1  2 
conf/composites.conf

index 7197adc8ffb6baa67d438566a336b60d01f494ac,0328a53125ad47d33067489f909e4589a76da854..0de2ee2a01e5f40ca1e917a79a5403d9a98fa5ea
@@@ -88,32 -85,20 +88,35 @@@ composites 
          expression = "RECEIVED_PBL & -RCVD_VIA_SMTP_AUTH";
          description = "Relayed through ZEN PBL IP without sufficient authentication (possible indicating an open relay)";
          score = 2.0;
+         policy = "leave";
      }
      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;
+         score = -0.5;
+         policy = "leave";
      }
      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;
+         score = -1.0;
+         policy = "leave";
      }
 +    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;
 +    }
 +    PHISH_EMOTION {
 +        expression = "(PHISHING | DBL_PHISH | PHISHED_OPENPHISH | PHISHED_PHISHTANK) & (SUBJECT_ENDS_QUESTION | SUBJECT_ENDS_EXCLAIM)";
 +        description = "Phish message with subject trying to address users emotion";
 +        score = 2.0;
 +    }
 +    HAS_ANON_DOMAIN {
 +        expression = "HAS_GUC_PROXY_URI | URIBL_RED | DBL_ABUSE_REDIR";
 +        description = "Contains one or more domains trying to disguise owner/destination";
 +        score = 0.5;
 +    }
  
      .include(try=true; priority=1; duplicate=merge) "$LOCAL_CONFDIR/local.d/composites.conf"
      .include(try=true; priority=10) "$LOCAL_CONFDIR/override.d/composites.conf"