Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 5 of 5
  1. #1
    Registered User
    Join Date
    May 2004
    Posts
    3

    Default exceptions to filters?

    I'm configuring the email filters on an x-skin install, but I'm not quite clear on the behavior of multiple filters.

    Specifically, I have two filters set up that can both be positive for a given email:
    1. "To" equals "user_test" -> discarded
    2. "To" begins with "user_" -> "user" account

    Right now when I use the filter test, I see that the message gets saved to /dev/null 0660, but also delivered to the user account. It appears that the filters are all basically processed in parallel, and that 'discarding' a message doesn't really discard it until all the filters have been evaluated.

    How can I change this behavior so that the first filter discards the message and never gets to the second one?

    Thanks,

    Josh

  2. #2
    Member linux-image's Avatar
    Join Date
    Jun 2004
    Location
    India
    Posts
    1,185
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    Your conditions:
    ==============================
    1. "To" equals "user_test" -> discarded
    2. "To" begins with "user_" -> "user" account
    ==============================
    I send a mail with To as "user_test"; what do you think it should do ?

    linux-image
    mirage "root"

  3. #3
    Registered User
    Join Date
    May 2004
    Posts
    3

    Default

    I want the message to get discarded, and be done with it. Right now it gets saved to /dev/null 0660, but then also makes it to the "user" account.

    Josh

  4. #4
    Member linux-image's Avatar
    Join Date
    Jun 2004
    Location
    India
    Posts
    1,185
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    Originally posted by linux-image
    Your conditions:
    ==============================
    1. "To" equals "user_test" -> discarded
    2. "To" begins with "user_" -> "user" account
    ==============================
    the above are your conditions .. now if the To comes as user_test; satisfying the first condition.. it puts one to the /dev/null ie.. discarding .. else you can set this as ::blackhole:: too..

    satisfying the second condition, it gets one copy to the mail box.

    when a message comes; all of the filter values are checked and are processed accordingly. else you need some priority mechanism to set this system as you desire. you can even code as

    if To = user_test then discard and exit.. or something like that. but the feasibility of such an occurance need to be checked.

  5. #5
    Registered User
    Join Date
    May 2004
    Posts
    3

    Default

    when a message comes; all of the filter values are checked and are processed accordingly. else you need some priority mechanism to set this system as you desire.
    Exactly. I'm looking for some sort of priority that I can apply to the rules. I'm not finding such a mechanism. Is there something that I'm overlooking?

    Josh

Similar Threads & Tags
Similar threads

  1. Shutting down queueprocd due to repeated exceptions
    By speckados in forum cPanel and WHM Discussions
    Replies: 4
    Last Post: 05-24-2011, 07:16 AM
  2. Exceptions to wildcard subdomains?
    By Ishware in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 07-07-2010, 04:31 PM
  3. FileProtect exceptions?
    By copart in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 12-14-2007, 03:29 PM
  4. Cpanel Mail Filters filters are bypassed
    By flash_me in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 07-05-2004, 04:32 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube