Community Forums
Connect with us on LinkedIn
Community Notice
+ Reply to Thread
Results 1 to 8 of 8
  1. #1
    Member
    Join Date
    Feb 2004
    Location
    Montreal
    Posts
    63

    Angry Email filtering in cpanel not working

    Hello,

    I have created a Rule in "Email Filtering" in cPanel as following:
    (I have changed the real email addresses to xxx@xx.com and yyy@yy.com for security purposes).

    RuleXXYY
    RULES:
    FROM is EQUAL to xxx@xx.com

    ACTION:

    Redirect to email yyy@yy.com

    When I run the test Filter I get the followin:



    The Filter has matched the following condition(s):

    $header_from: is xxx@xx.com


    Return-path copied from sender
    Sender = username@swh1.sellwebhost.com
    Recipient = username@swh1.sellwebhost.com
    Testing Exim filter file "/home/usename/etc/yy.com/info/filter"

    Deliver message to: yyy@yy.com
    Filtering set up at least one significant delivery or other action.
    No other deliveries will occur.
    However, when I check my yyy@yy.com account, I don't get anything !!

    I have assp on my server.. Do you have any idea why I am not receiving the email !
    I also tried forwarding to a hotmail account and still won't get anything.. as if as the server is not sending the mail...

    Thanks

  2. #2
    Member
    Join Date
    May 2008
    Posts
    1,114

    Default

    Check the email error logs. If you have an SSH access to the server then you can check the error logs from the below mentioned location:

    /var/log/exim_mainlog

  3. #3
    cPanel Development cpanelkenneth's Avatar
    Join Date
    Apr 2006
    Posts
    3,768
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    Quote Originally Posted by ramystyle View Post
    Hello,

    I have created a Rule in "Email Filtering" in cPanel as following:
    (I have changed the real email addresses to xxx@xx.com and yyy@yy.com for security purposes).

    RuleXXYY
    RULES:
    FROM is EQUAL to xxx@xx.com

    ACTION:

    Redirect to email yyy@yy.com

    When I run the test Filter I get the followin:



    However, when I check my yyy@yy.com account, I don't get anything !!

    I have assp on my server.. Do you have any idea why I am not receiving the email !
    I also tried forwarding to a hotmail account and still won't get anything.. as if as the server is not sending the mail...

    Thanks
    So when you send a test email that matches the filter, the mail is not forwarded to your yyy@yy.com account?
    Kenneth
    Product Development
    cPanel, Inc.

  4. #4
    Technical Product Specialist cPanelDavidG's Avatar
    Join Date
    Nov 2006
    Location
    Houston, TX
    Posts
    10,720
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    The "equals" filter is a very exact filter. I recommend using something with a little more leniency, for example: "contains."

  5. #5
    Member
    Join Date
    Feb 2004
    Location
    Montreal
    Posts
    63

    Default

    @cpanelkenneth: That is correct.

    @cPanelDavidG: I tried using "contains" but still not working.

    I checked my logs and could not find anything...

  6. #6
    Technical Product Specialist cPanelDavidG's Avatar
    Join Date
    Nov 2006
    Location
    Houston, TX
    Posts
    10,720
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    Is this "if From contains XXX forward to YYY" a hypothetical scenario or exactly what you are actually trying to accomplish?

    If you want a copy of all mail coming in for xxx to go to yyy, just create an email forwarder for xxx to get forwarded to yyy. Since xxx is an email account, it will still receive the mail despite a copy being forwarded to yyy.

  7. #7
    Member
    Join Date
    Feb 2004
    Location
    Montreal
    Posts
    63

    Default

    @cPanelDavidG: It was hypothetical scenario.. My rule requires to find a specific word in the Subject and if it does, I want it to fwd the mail to a specific email address.. Si a simple mail forward would not work for me (Although the option is functional in cpanel) !

    Thanks for your responses and help.. I still haven't solved my problem..

  8. #8
    cPanel Development cpanelkenneth's Avatar
    Join Date
    Apr 2006
    Posts
    3,768
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    Quote Originally Posted by ramystyle View Post
    @cPanelDavidG: It was hypothetical scenario.. My rule requires to find a specific word in the Subject and if it does, I want it to fwd the mail to a specific email address.. Si a simple mail forward would not work for me (Although the option is functional in cpanel) !

    Thanks for your responses and help.. I still haven't solved my problem..
    Some basic trouble shooting steps I recommend, if you haven't already done so:

    1. scour all mail-related logs

    2. strace the exim process, and all children it spawns, during test interaction

    3. Shutdown any additional mail related services, one by one, testing the filter after shutting one down.

    4. Use the debugging facilities exim provides to narrow down the issue
    Kenneth
    Product Development
    cPanel, Inc.

Similar Threads & Tags
Similar threads

  1. Replies: 10
    Last Post: 06-20-2011, 03:04 PM
  2. Email filtering using to: header and begins with not working
    By tominthevan in forum E-mail Discussions
    Replies: 2
    Last Post: 11-11-2008, 11:26 PM
  3. Spam Filtering no longer working after upgrade to cpanel 11
    By jlkolpin in forum E-mail Discussions
    Replies: 4
    Last Post: 08-20-2007, 11:59 AM
  4. Email filtering not working
    By handreach in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 04-02-2005, 10:04 PM
Tags for this Thread
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube