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.

account wide filter "ending with ru?" misses

Discussion in 'E-mail Discussions' started by DGermancp, Sep 10, 2010.

  1. DGermancp

    DGermancp Active Member

    Joined:
    Feb 25, 2006
    Messages:
    43
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    NJ, USA
    cPanel Access Level:
    Reseller Owner
    I am surprised this doesn't work and that I am the only one that has a filter like this.
    Example of failing account wide filter failure

    From: "McCann Fitzgerald" <attymccann@hsw.ru>

    NOT edited by hand, I used cPanel which generated:
    ++++++++++++++++++++
    #from hk,jp,ru,ch,pl,th,tw to TLDccBad (revised 9/9/10 add quest and ttw
    if
    $header_from: ends "hk?"
    or $header_from: ends "jp?"
    or $header_from: ends "ru?"
    or $header_from: ends "ch?"
    or $header_from: ends "pl?"
    or $header_from: ends "th?"
    or $header_from: ends "in?"
    or $header_from: ends "ru"
    or $header_from: ends "tw"
    then
    save "/home/realger1/mail/filtered/TLDccBad/" 660
    endif
    ++++++++++++++++++++
    Test result:
    ++++++++++++++++++++
    Return-path copied from sender
    Sender = realger1@esc170.midphase.com
    Recipient = realger1@esc170.midphase.com
    Testing Exim filter file "/etc/vfilters/real-world-systems.com"

    Filtering did not set up a significant delivery.

    Normal delivery will occur.
    ++++++++++++++++++++

    Any thoughts would be appreciated. Thank you.
     
  2. garrettp

    garrettp Well-Known Member
    PartnerNOC

    Joined:
    Jun 18, 2004
    Messages:
    312
    Likes Received:
    0
    Trophy Points:
    16
    cPanel Access Level:
    DataCenter Provider
    Replicated your situation and it works fine for me:

    #RU
    if
    $header_from: ends "ru"
    then
    save "/dev/null" 660
    endif

    ################################
    The Filter has matched the following condition(s):
    $header_from: ends ru

    Return-path copied from sender
    Sender = xxx@example.com
    Recipient = xxx@example.com
    Testing Exim filter file "/etc/vfilters/example.com"

    Save message to: /dev/null 0660
    Filtering set up at least one significant delivery or other action.
    No other deliveries will occur.
    #################################

    Make sure you've set proper permissions on '/home/realger1/mail/filtered/TLDccBad/' for the mail process to deliver to, or try just a "Discard" action to rule out any issues with the delivery subsystem on that directory.
     
  3. DGermancp

    DGermancp Active Member

    Joined:
    Feb 25, 2006
    Messages:
    43
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    NJ, USA
    cPanel Access Level:
    Reseller Owner
    Thank you for your reply
    I created a new filter with cPanel
    #just ru
    From ends with
    ru
    Discard Message

    I used

    From: "McCann Fitzgerald" <attymccann@hsw.ru>

    and it fails to match
    Return-path copied from sender
    Sender = realger1@esc170.midphase.com
    Recipient = realger1@esc170.midphase.com
    Testing Exim filter file "/etc/vfilters/real-world-systems.com"

    Filtering did not set up a significant delivery.
    Normal delivery will occur.


    unless.... filtering is STOPPING before it gets to that rule!!

    It's hard since I cannot see the /etc/vfilters/real-world-systems.com file!



    What did you use for filter test.
     
Loading...

Share This Page