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.

Email filtering in cpanel not working

Discussion in 'E-mail Discussions' started by ramystyle, Sep 21, 2009.

  1. ramystyle

    ramystyle Well-Known Member

    Joined:
    Feb 9, 2004
    Messages:
    64
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Montreal
    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
     
  2. thewebhosting

    thewebhosting Well-Known Member

    Joined:
    May 9, 2008
    Messages:
    1,201
    Likes Received:
    1
    Trophy Points:
    38
    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. cPanelKenneth

    cPanelKenneth cPanel Development
    Staff Member

    Joined:
    Apr 7, 2006
    Messages:
    4,461
    Likes Received:
    22
    Trophy Points:
    38
    cPanel Access Level:
    Root Administrator
    So when you send a test email that matches the filter, the mail is not forwarded to your yyy@yy.com account?
     
  4. cPanelDavidG

    cPanelDavidG Technical Product Specialist

    Joined:
    Nov 29, 2006
    Messages:
    11,279
    Likes Received:
    8
    Trophy Points:
    38
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    The "equals" filter is a very exact filter. I recommend using something with a little more leniency, for example: "contains."
     
  5. ramystyle

    ramystyle Well-Known Member

    Joined:
    Feb 9, 2004
    Messages:
    64
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Montreal
    @cpanelkenneth: That is correct.

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

    I checked my logs and could not find anything... :(
     
  6. cPanelDavidG

    cPanelDavidG Technical Product Specialist

    Joined:
    Nov 29, 2006
    Messages:
    11,279
    Likes Received:
    8
    Trophy Points:
    38
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    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. ramystyle

    ramystyle Well-Known Member

    Joined:
    Feb 9, 2004
    Messages:
    64
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Montreal
    @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. cPanelKenneth

    cPanelKenneth cPanel Development
    Staff Member

    Joined:
    Apr 7, 2006
    Messages:
    4,461
    Likes Received:
    22
    Trophy Points:
    38
    cPanel Access Level:
    Root Administrator
    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
     
Loading...

Share This Page