Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 3 of 3
  1. #1
    Member
    Join Date
    Feb 2006
    Location
    NJ, USA
    Posts
    39

    Question account wide filter "ending with ru?" misses

    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. #2
    cPanel Partner NOC cPanel Partner NOC Badge
    Join Date
    Jun 2004
    Posts
    313
    cPanel/Enkompass Access Level

    DataCenter Provider

    Default

    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.
    NDCHost (ProVPS): Xen VPS / Dedicated / Co-Location
    Contact us for your cPanel Licensing needs! We price match, provide better support, and take care of our customers!

  3. #3
    Member
    Join Date
    Feb 2006
    Location
    NJ, USA
    Posts
    39

    Default

    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.

Similar Threads & Tags
Similar threads

  1. Replies: 0
    Last Post: 01-14-2011, 01:36 PM
  2. "Edit Filter for All Mail On Your Account" question
    By rpiggott in forum E-mail Discussions
    Replies: 1
    Last Post: 11-08-2009, 09:00 PM
  3. never ending "pop failed" messages
    By SeanLee in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 06-27-2006, 02:37 AM
  4. CPanel "default address" not accepting email for "main account"
    By nsdesign in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 10-08-2005, 05:48 AM
Tags for this Thread
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube