Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

filter for incoming gmail

Discussion in 'E-mail Discussion' started by enboig, Oct 21, 2015.

  1. enboig

    enboig Member

    Joined:
    Apr 25, 2008
    Messages:
    18
    Likes Received:
    0
    Trophy Points:
    51
    I have created an account filter to redirect all mails from account+....@example.com to account@example.com

    It works for mails sent from the same domain using thunderbird, but fails for mails sent from gmail.

    I got the source of my gmail mail at it contains a line full of spaces at top. If I remove them the filter works ok, how can I fix it?
     
  2. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,803
    Likes Received:
    1,898
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello :)

    What's the specific error message in /var/log/exim_mainlog for messages that fail?

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. enboig

    enboig Member

    Joined:
    Apr 25, 2008
    Messages:
    18
    Likes Received:
    0
    Trophy Points:
    51
    There is no error. The filter simply fail to detect mails sent from gmail.

    I am using moodle and to allow users reply forums from mail, I must redirect all mail sent to "moodle+345....@domain.com" to moodle@domain.com.

    To achieve this I set a default address for all received mail, and created a filter to redirect all mail sent to "moodle+...@domain.com" to moodle@domain.com.

    It works when I send a mail from an account in the same server using thunderbird, but it fails for mails sent from gmail.

    I took the source from both messages, and gmail was not detected by the filter. The gmail source have a line full of spaces " " in the first line, if I remove this line and test pasting the new mail in cpanel, the filter recognizes it.
     
  4. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,803
    Likes Received:
    1,898
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    It seems like you may need to create an additional filter rule to account for the changes that Google makes to the message. You may need to consult with the Exim users mailing list if you don't receive additional user-feedback to this thread:

    Exim-users Info Page

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. enboig

    enboig Member

    Joined:
    Apr 25, 2008
    Messages:
    18
    Likes Received:
    0
    Trophy Points:
    51
    For future references, I was using default filters for mail, but there was no "default address" defined. Redirecting all mail to account mailbox solved the problem.
     
  6. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,803
    Likes Received:
    1,898
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    I am happy to see you were able to resolve the issue. Thank you for updating us with the outcome.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice