The Community Forums

Interact with an entire community of cPanel & WHM users.
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

exceptions to filters?

Discussion in 'General Discussion' started by superjosh, May 18, 2004.

  1. superjosh

    superjosh Registered

    Joined:
    May 18, 2004
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    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. linux-image

    linux-image Well-Known Member

    Joined:
    Jun 8, 2004
    Messages:
    1,192
    Likes Received:
    1
    Trophy Points:
    38
    Location:
    India
    cPanel Access Level:
    Root Administrator
    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. superjosh

    superjosh Registered

    Joined:
    May 18, 2004
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    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. linux-image

    linux-image Well-Known Member

    Joined:
    Jun 8, 2004
    Messages:
    1,192
    Likes Received:
    1
    Trophy Points:
    38
    Location:
    India
    cPanel Access Level:
    Root Administrator
    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. superjosh

    superjosh Registered

    Joined:
    May 18, 2004
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    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
     
Loading...

Share This Page