Networking

NAVIGATION
CATEGORIES
REFERRENCE
LINKS
  • Stopping Rules

    15 answers - 139 bytes - related search similar search Add To My Delicious Add To My Stumble Upon Add To My Google Mark Add To My Facebook Add To My Digg Add To My Reddit

    Back in 2.64 There was the option to have SA stop going though rules
    then it hit a max score.
    Is there any option for this in 3.X.X ?
  • No.1 | | 340 bytes | |

    At 09:03 AM 10/21/2005, you wrote:
    >Back in 2.64 There was the option to have SA stop going though rules
    >then it hit a max score.
    >Is there any option for this in 3.X.X ?


    Nope.

    All depends on the order of the rules. What if it had yet to come
    across a whitelist rule?
  • No.2 | | 363 bytes | |

    From: "Chris L. Franklin" <cfranklin (AT) nomadcf (DOT) com>

    Back in 2.64 There was the option to have SA stop going though rules
    then it hit a max score.
    Is there any option for this in 3.X.X ?

    No. Such a rule actually costs processing time AND would create false
    positives or false negatives entirely too easily.
    {^_^}
  • No.3 | | 585 bytes | |

    jdow wrote:

    From: "Chris L. Franklin" <cfranklin (AT) nomadcf (DOT) com>
    >
    >Back in 2.64 There was the option to have SA stop going though rules
    >then it hit a max score.
    >Is there any option for this in 3.X.X ?
    >
    >

    No. Such a rule actually costs processing time AND would create false
    positives or false negatives entirely too easily.
    {^_^}

    If you grouped the rulesets into +/- sets and processed all the - rules
    first it wouldn't create false ly scored messages. would it ?
  • No.4 | | 559 bytes | |

    At 11:45 AM 10/21/2005, you wrote:
    >If you grouped the rulesets into +/- sets and processed all the -
    >rules first it wouldn't create false ly scored messages. would it ?


    No, but you still would have to process all the rules regardless - I
    mean a incorrectly whitelisted message could have enough spam content
    to push it to a positive score, right?

    And if you're system is that bogged down that you REALLY need to stop
    scoring at say 6.0 - it's time to upgrade systems. :)
  • No.5 | | 1012 bytes | |

    jdow wrote:

    From: "Chris L. Franklin" <cfranklin (AT) nomadcf (DOT) com>
    >
    >Back in 2.64 There was the option to have SA stop going though rules
    >then it hit a max score.
    >Is there any option for this in 3.X.X ?
    >
    >

    No. Such a rule actually costs processing time AND would create false
    positives or false negatives entirely too easily.
    {^_^}

    It's not costly, Heck even it was able to stopped 1/4 of all messages
    from going though 3/4 of all your rules. You'd Still be saving in cpu
    time !!!
    And your "create false positives or false negatives entirely too easily"
    , please it changes nothing. You just as likey now to mis mark a message
    as you would if you stopped scanning email from being scanned if it
    reached a Spam score of X.

    I mean spam rules 101. Using ham'in rules is nothing but waste of time.
    If you need to write ham rules you really need to rethink your spam rules.
  • No.6 | | 1130 bytes | |

    Evan Platt wrote:

    At 11:45 AM 10/21/2005, you wrote:
    >
    >If you grouped the rulesets into +/- sets and processed all the -
    >rules first it wouldn't create false ly scored messages. would it ?
    >
    >

    No, but you still would have to process all the rules regardless - I
    mean a incorrectly whitelisted message could have enough spam content
    to push it to a positive score, right?

    And if you're system is that bogged down that you REALLY need to stop
    scoring at say 6.0 - it's time to upgrade systems. :)

    It's got nothing to do with a bogged down system, we just want it marked
    done with socring it after X isn't doing any of use any good. Trash is
    Trash.
    I mean it's having it continue to increase a score passed a point is
    useless. When u start getting messages that have scores are +100. Thats
    90 points more then my system or users care about (due to the system
    deleting the messages).

    Ps, The system only would need to "process all the rules regardless"
    during the loading of the child.
  • No.7 | | 837 bytes | |

    Evan Platt wrote:

    At 11:45 AM 10/21/2005, you wrote:
    >
    >If you grouped the rulesets into +/- sets and processed all the -
    >rules first it wouldn't create false ly scored messages. would it ?
    >
    >

    No, but you still would have to process all the rules regardless - I
    mean a incorrectly whitelisted message could have enough spam content
    to push it to a positive score, right?

    No. If you score, say, -100 from whitelisting, you would continue
    running spam tests until you ran out of tests, not stop because you went
    some threshold below 0.

    And if you're system is that bogged down that you REALLY need to stop
    scoring at say 6.0 - it's time to upgrade systems. :)

    It probably depends on how much mail you process.
  • No.8 | | 590 bytes | |

    Chris L. Franklin wrote:
    Back in 2.64 There was the option to have SA stop going though rules
    then it hit a max score.
    Is there any option for this in 3.X.X ?

    No there wasn't such an option in 2.64, that option existed back in SA 2.31, and
    was removed from SA 2.40 and higer because it caused problems.

    See bugzilla:

    There's work to possibly add some short-circuting to sa 3.2.0 or higher. But
    even that might not end up as score based. (ie: it might do a short-circuit for
    rules like whitelist_from_rcvd)

    See bugzilla:
  • No.9 | | 3109 bytes | |

    Ps, The system only would need to "process all the rules regardless"
    during the loading of the child.

    Well, yes and no. This subject comes up a lot. For the record, I favor an
    early exit, as you do. But also for the record, it really is more complex
    than you make it out to be, and there are several gotchas involved in the
    process.

    The most interesting points are: exactly where do you process Bayes rules?,
    and: this breaks AWL completely, since it is a score averager, and you are
    suddenly working with partial scores that have no reliabilty whatever from
    an awl point of view. The end result id that if you enable shortcutting you
    ALS have to disable awl, or it will probably start doing Really Bad
    Things(tm).

    Aside from those two major points, there are a number of minor flow
    sequencing problems that have to be solved, or at least definitely answered.

    It is obvious that you have to process all negative-scoring rules first,
    since that is the only way that you can be sure that you have taken
    whitelists and the like into account, and your high positive score really IS
    high enough to mark this as spam.

    However, what if some of those negative-scoring rules are metas? Now you
    have to process the meta dependencies before the negative-scoring meta, even
    if the dependencies have a positive score. And what if one of the
    dependencies is the AWL score? AWL is supposed to run last to give accurate
    results, but now it has to run before some arbitrary number of other rules.
    But you shouldn't run AWL at all with shortcutting, and here you not only
    have to run it, you have to run it early. Do you drop that meta rule, even
    though it can contribute a negative score?

    Also, net rules are fired off first before any other rules are processed,
    and then harvested after most all the rules have been processed. Do you
    still want to do that? do you want to hold firing the net rules until
    you see if it is going to be tagged as spam by other rules? (Assuming you
    don't have a negative meta that is dependent on a net rule!) But if you do
    this, and you assume the mail is NT spam, it is going to process ALL
    positifve scoring rules (which is essentially all rules) before it starts
    the net tests. Now you have completely lost net overlap, and will end up
    sitting on your thumb longer before you can dispose of this message.

    And what about user rules, or even user changes to rule scores? This can
    change the evaluation order from what you would normally do.

    There is also a 'priority' field on the rules that determines the order to
    run the tests. This undemines the required order to be able to safely bail
    early on short circuiting.

    Unfortunately, it ain't trivial to get all, or even most all, of this
    working in a way that the mathematically inclined would be willing to
    consider the results provably correct. And if the results aren't correct,
    why bother making them in the first place?

    Loren
  • No.10 | | 4292 bytes | |

    Loren Wilton wrote:

    >>Ps, The system only would need to "process all the rules regardless"
    >>during the loading of the child.

    >
    >>

    >
    >Well, yes and no. This subject comes up a lot. For the record, I favor an
    >early exit, as you do. But also for the record, it really is more complex
    >than you make it out to be, and there are several gotchas involved in the
    >process.
    >
    >The most interesting points are: exactly where do you process Bayes rules?,
    >and: this breaks AWL completely, since it is a score averager, and you are
    >suddenly working with partial scores that have no reliabilty whatever from
    >an awl point of view. The end result id that if you enable shortcutting you
    >ALS have to disable awl, or it will probably start doing Really Bad
    >Things(tm).
    >
    >Aside from those two major points, there are a number of minor flow
    >sequencing problems that have to be solved, or at least definitely answered.
    >
    >It is obvious that you have to process all negative-scoring rules first,
    >since that is the only way that you can be sure that you have taken
    >whitelists and the like into account, and your high positive score really IS
    >high enough to mark this as spam.
    >
    >However, what if some of those negative-scoring rules are metas? Now you
    >have to process the meta dependencies before the negative-scoring meta, even
    >if the dependencies have a positive score. And what if one of the
    >dependencies is the AWL score? AWL is supposed to run last to give accurate
    >results, but now it has to run before some arbitrary number of other rules.
    >But you shouldn't run AWL at all with shortcutting, and here you not only
    >have to run it, you have to run it early. Do you drop that meta rule, even
    >though it can contribute a negative score?
    >
    >Also, net rules are fired off first before any other rules are processed,
    >and then harvested after most all the rules have been processed. Do you
    >still want to do that? do you want to hold firing the net rules until
    >you see if it is going to be tagged as spam by other rules? (Assuming you
    >don't have a negative meta that is dependent on a net rule!) But if you do
    >this, and you assume the mail is NT spam, it is going to process ALL
    >positifve scoring rules (which is essentially all rules) before it starts
    >the net tests. Now you have completely lost net overlap, and will end up
    >sitting on your thumb longer before you can dispose of this message.
    >
    >And what about user rules, or even user changes to rule scores? This can
    >change the evaluation order from what you would normally do.
    >
    >There is also a 'priority' field on the rules that determines the order to
    >run the tests. This undemines the required order to be able to safely bail
    >early on short circuiting.
    >
    >Unfortunately, it ain't trivial to get all, or even most all, of this
    >working in a way that the mathematically inclined would be willing to
    >consider the results provably correct. And if the results aren't correct,
    >why bother making them in the first place?
    >

    Loren

    For starters AWL, white lists and black lists in my option ar ethe worst
    things ever. I disable them from the start. If your going to whitelist
    some one, why would you want them to even go though SA. (I don't) and if
    there blaklisted I don't want them even want the server accepting a
    email for me / the user if they are black listed.

    And again negative-scoring is useless if u need to write a negative
    score you problitly should rethink your positive scoring rules.

    All this taking into a account Removing AWL, and negative-scoring. There
    are no real problems.

    And as a side note about net rules, if your really into using these then
    you'll probabliy just want to tune the server not to accept email from
    non-RDNS or invaild dns lookups.
    -- Chris L. Franklin --
  • No.11 | | 1915 bytes | |

    Sat, 22, 2005 at 11:05:07AM -0400, Chris L. Franklin wrote:
    For starters AWL, white lists and black lists in my option ar ethe worst
    things ever. I disable them from the start. If your going to whitelist
    some one, why would you want them to even go though SA. (I don't)

    Because a source that regularly sends you legit email, e.g. a
    mailing list, might send email that is borderline spammy and the
    only thing that tips it back into legitimate territory is the
    autowhitelist and bayes based on what YUR users consider ham.

    if there blaklisted I don't want them even want the server
    accepting a email for me / the user if they are black listed.

    There are lots of blacklists and DNSBLs that work best as
    contributors, not as absolute yes/no arbiters of what should be
    accepted.

    And again negative-scoring is useless if u need to write a negative
    score you problitly should rethink your positive scoring rules.

    I don't understand why you are using SpamAssassin if you really
    believe the above.

    All this taking into a account Removing AWL, and negative-scoring. There
    are no real problems.

    And as a side note about net rules, if your really into using these then
    you'll probabliy just want to tune the server not to accept email from
    non-RDNS or invaild dns lookups.

    Masses of legitimate email comes from hosts with no reverse DNS,
    incorrect HEL and other borderline or actual RFC violations.

    I don't think you have thought this through and I believe that you
    would do well to accept some of the wisdom of those that have. If
    not, well, try it, and report back as to how well that works out for
    you, so that everyone else can see how wrong they are.

    PGP SIGNATURE
    Version: GnuPG v1.4.1 (GNU/Linux)

    7ZxxA3hcXAY1tydPq4FHs2A=
    =5X6f
    PGP SIGNATURE
  • No.12 | | 3014 bytes | |

    Andy Smith wrote:

    Sat, 22, 2005 at 11:05:07AM -0400, Chris L. Franklin wrote:

    >
    >>For starters AWL, white lists and black lists in my option ar ethe worst
    >>things ever. I disable them from the start. If your going to whitelist
    >>some one, why would you want them to even go though SA. (I don't)

    >
    >>

    >
    >Because a source that regularly sends you legit email, e.g. a
    >mailing list, might send email that is borderline spammy and the
    >only thing that tips it back into legitimate territory is the
    >autowhitelist and bayes based on what YUR users consider ham.
    >


    >
    >>if there blaklisted I don't want them even want the server
    >>accepting a email for me / the user if they are black listed.

    >
    >>

    >
    >There are lots of blacklists and DNSBLs that work best as
    >contributors, not as absolute yes/no arbiters of what should be
    >accepted.
    >


    >
    >>And again negative-scoring is useless if u need to write a negative
    >>score you problitly should rethink your positive scoring rules.

    >
    >>

    >
    >I don't understand why you are using SpamAssassin if you really
    >believe the above.
    >


    >
    >>All this taking into a account Removing AWL, and negative-scoring. There
    >>are no real problems.
    >>
    >>And as a side note about net rules, if your really into using these then
    >>you'll probabliy just want to tune the server not to accept email from
    >>non-RDNS or invaild dns lookups.

    >
    >>

    >
    >Masses of legitimate email comes from hosts with no reverse DNS,
    >incorrect HEL and other borderline or actual RFC violations.
    >
    >I don't think you have thought this through and I believe that you
    >would do well to accept some of the wisdom of those that have. If
    >not, well, try it, and report back as to how well that works out for
    >you, so that everyone else can see how wrong they are.
    >


    Thanks but we do run my servers as I posted above (minus the Non DNS
    compliant part).
    Blacked listed user and Domains my server to not accept messages from.
    Whitelisted users and domain D NT get passed though SA
    WE D NT use negitive scoring.
    We Stop 99.2% of all spam and get less the %0.82 miss marked emails.
    We Subject mark at 5 points, and We report a "550" error" on all emails
    with a score of 8 or more during the smtp transaction. (Yes we Do SA
    scanning during the smtp transaction. Aka we stop spam at the door.)
  • No.13 | | 1384 bytes | |

    Chris L. Franklin said:
    Thanks but we do run my servers as I posted above (minus the Non DNS
    compliant part). Blacked listed user and Domains my server to not accept
    messages from. Whitelisted users and domain D NT get passed though SA
    WE D NT use negitive scoring.
    We Stop 99.2% of all spam and get less the %0.82 miss marked emails.
    We Subject mark at 5 points, and We report a "550" error" on all emails
    with a score of 8 or more during the smtp transaction. (Yes we Do SA
    scanning during the smtp transaction. Aka we stop spam at the door.)

    If you are rejecting mail during the SMTP session than you have no way of
    verifying you are at %0.82 false positive rate. How do you know I'm not
    sending you a legit message that's being rejected at the SMTP level unless
    I bother to contact you via other means? (something few senders bother
    with) 0.82% seems very high to me also, nearly 1 in 100 message is marked
    wrong? Maybe your users are more tolerant of false positives and just
    want all spam blocked but this is not the case for most organizations.
    Many organizations demand an extremely low to non-existant FP percentage
    while being more tolerant of the occassional false negative. To each his
    own I guess, but I agree with the first respondant that your missing out
    by turning off negative scoring

    Jay
  • No.14 | | 4908 bytes | |

    Chris L. Franklin wrote:
    Andy Smith wrote:

    >Sat, 22, 2005 at 11:05:07AM -0400, Chris L. Franklin wrote:
    >
    >>

    For starters AWL, white lists and black lists in my option ar ethe
    worst things ever. I disable them from the start. If your going to
    whitelist some one, why would you want them to even go though SA. (I
    don't)

    >>
    >>

    >Because a source that regularly sends you legit email, e.g. a
    >mailing list, might send email that is borderline spammy and the
    >only thing that tips it back into legitimate territory is the
    >autowhitelist and bayes based on what YUR users consider ham.
    >>

    >
    >>

    if there blaklisted I don't want them even want the server
    accepting a email for me / the user if they are black listed.

    >>
    >>

    >There are lots of blacklists and DNSBLs that work best as
    >contributors, not as absolute yes/no arbiters of what should be
    >accepted.
    >>

    >
    >>

    And again negative-scoring is useless if u need to write a negative
    score you problitly should rethink your positive scoring rules.

    >>
    >>

    >I don't understand why you are using SpamAssassin if you really
    >believe the above.
    >>

    >
    >>

    All this taking into a account Removing AWL, and negative-scoring.
    There are no real problems.

    And as a side note about net rules, if your really into using these
    then you'll probabliy just want to tune the server not to accept
    email from non-RDNS or invaild dns lookups.

    >>
    >>

    >Masses of legitimate email comes from hosts with no reverse DNS,
    >incorrect HEL and other borderline or actual RFC violations.
    >>

    >I don't think you have thought this through and I believe that you
    >would do well to accept some of the wisdom of those that have. If
    >not, well, try it, and report back as to how well that works out for
    >you, so that everyone else can see how wrong they are.
    >>

    >
    >>

    Thanks but we do run my servers as I posted above (minus the Non DNS
    compliant part).
    Blacked listed user and Domains my server to not accept messages from.
    Whitelisted users and domain D NT get passed though SA
    WE D NT use negitive scoring.
    We Stop 99.2% of all spam and get less the %0.82 miss marked emails.
    We Subject mark at 5 points, and We report a "550" error" on all emails
    with a score of 8 or more during the smtp transaction. (Yes we Do SA
    scanning during the smtp transaction. Aka we stop spam at the door.)

    Why bother running SA in the first place? Run gray listing with all of
    your *normal* methods and remove SA all together? You will save Tons of
    cpu (no need to run a rule based system.) Since you don't bother to run
    any of the ham scoring rules, why bother running SA at all?

    I see you are trying to implement something that on the surface seems
    good However, gray listing may get just what you want. And you could
    even do challenge response

    SA's strong points are not only identifying ham, but also spam. I
    wounder how you white list? Do you do it by server? then you open
    yourself up to mountains of spam from the 'freebie's' (hotmail, yahoo,
    et al.)

    I am also curious about you claim that you only get .82% false positive,
    do you keep spams? You'd be out of a job pretty quickly if nearly 1% of
    your customer's mail was 550'd in the field I work in.

    SA does a good job for what it was designed for, not only a Spam
    classifier, but a Ham classifier. We also do spam check at the SMTP
    level along with RBL and SPF checks. We get nearly .0001% false positive
    error rate, along with 6 9's capture rate of spam. I set SA up properly,
    and tune it as new threats arise (bayes is one area where this is good.)
    Where I work, our mail all sounds the same, so bayes also helps in the
    regard, that if some RBL's hit, there are enough neg. scoring rules to
    get that mail through, on time, where it needs to be (we are talking
    $1K/hr here if that mail is NT delivered because our spam filter
    decided a good mail was bad because of a miss-configured remote server)
  • No.15 | | 1030 bytes | |

    Samstag, 22. 2005 18:01 Andy Smith wrote:
    Masses of legitimate email comes from hosts with no reverse DNS,
    incorrect HEL and other borderline or actual RFC violations.

    It pretty much depends on the mail server and it's users. server
    used to receive most e-mail from Austria, some from Europe, few from
    the world. By then, I used static IP filters, e.g. I filtered all IPs
    with 200.0.0.0/8, which are brasilian.

    Nowadays, we have many more domains, receiving HAM e-mail from all
    around the world (customers of our customers), so the static filters
    needed to be dropped, leaving "only" SA and RBL lists.

    That's why I can understand that for Chris his type of filters may work.

    As for RFC violations: , people have problems sending us
    e-mail, e.g. a company in Portugal has dynamic IP, often one that is in
    RBL lists. We have strict rules here, so we force them to get a static
    IP, explaining them the advantages. Until now, that worked pretty good.

    mfg zmi

Re: Stopping Rules


max 4000 letters.
Your nickname that display:
In order to stop the spam: 4 + 3 =
QUESTION ON "Networking"

EMSDN.COM