Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 2 of 2
  1. #1
    Member
    Join Date
    Jan 2011
    Posts
    8

    Default Is the order of application of forwarding rules and fitering rules documented?

    As per the subject, is there anywhere in the cPanel documentation that specifies the order in which the various filtering and forwarding rules are applied? There are a few hints in places, for example in the forwarding section it says "Warning: Forwarding a domain's email will override the default address for that domain" but this is only one little bit of a whole sequence of things that cPanel configuration might do to an incoming E-Mail.

    It would be *incredibly* useful to know the order of application of:-
    E-Mail account forwarders
    E-Mail domain forwarders
    Account Level Filtering
    User Level Filtering
    When an E-Mail will get sent to the Default Address

    In particular whether forwarding is applied before or after filtering is of great importance when setting these up.

  2. #2
    Member
    Join Date
    Jan 2011
    Posts
    8

    Default Re: Is the order of application of forwarding rules and fitering rules documented?

    I have found the answer I needed to this question by reading the documentation for the underlying Exim filtering.

    Basically *all* the filter rules are applied and any that match will do the relevant action. So having one rule that says "no further processing" and another that delivers the mail *will* deliver the mail even if both match. It's only if no rule that delivers the mail matches that the "no further processing" rule takes effect, it just means that the E-Mail isn't passed on for further processing after the filter rules have *all* been applied.

    It's somewhat counter-intuitive in the sense that one expects the rules to be applied in order somehow and that once an E-Mail has been dumped (for example) nothing further will happen, but that's not the way it works. A rule that does "Discard Message" is ineffective if any other rule matches the same message.

    This really is the answer to all my other questions too really, once one realises the way the underlying filters work then it does make sense, even though it makes them a bit more difficult to use than if they were applied sequentially.

Similar Threads & Tags
Similar threads

  1. Can someone help with mod_sec rules and an application I am trying to run?
    By betoranaldi in forum cPanel and WHM Discussions
    Replies: 7
    Last Post: 05-15-2009, 01:06 PM
  2. Exim ACL rules best order ??
    By bsasninja in forum E-mail Discussions
    Replies: 2
    Last Post: 08-29-2007, 10:06 AM
  3. Old ACL/RBL rules X New ACL/RBL rules with CPANEL 11
    By duranduran in forum E-mail Discussions
    Replies: 2
    Last Post: 06-19-2007, 08:01 AM
  4. rules mod_security..what about?
    By Creazioni in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 10-03-2006, 07:34 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube