Skip to main content

Do email filters work on full RFC2822 address?

Comments

8 comments

  • User Avatar
    cPanelMichael
    Hello, Yes, it should be possible to filter the "from" name in that manner. Could you let us know the exact filter rule you created, and an example of an entry in /var/log/exim_mainlog for an email that was not properly filtered? Ensure to replace real domain names and IP addresses with examples when pasting the output. Thank you.
    0
  • User Avatar
    Peter Lindstrom
    Hello, Yes, it should be possible to filter the "from" name in that manner. Could you let us know the exact filter rule you created, and an example of an entry in /var/log/exim_mainlog for an email that was not properly filtered? Ensure to replace real domain names and IP addresses with examples when pasting the output. Thank you.

    I am not sure what you mean by "the exact filter", is their an export feature to export the rule? As i posted above the rule is a regex rule with this pattern: [A-Z][a-z]* [A-Z]\. \<.*\> A screenshot of the cpanel config: [removed - please attach images directly in the response]
    0
  • User Avatar
    Peter Lindstrom
    I changed the name on my gmail account to Peter L. and tested from there and now i see entry in exim log (and email is not filtered): 2018-01-25 16:01:59 1eeoei-0004MW-M5 H=mail-vk0-f53.google.com [209.85.213.53]:38737 Warning: "SpamAssassin as admin detected message as NOT spam (-2.0)" 2018-01-25 16:01:59 1eeoei-0004MW-M5 H=mail-vk0-f53.google.com [209.85.213.53]:38737 Warning: Message has been scanned: no virus or other harmful content was found 2018-01-25 16:01:59 1eeoei-0004MW-M5 <= peter.mygmail@gmail.com H=mail-vk0-f53.google.com [209.85.213.53]:38737 P=esmtps X=TLSv1.2:ECDHE-RSA-AES128-GCM-SHA256:128 CV=no S=4250 id=CAOasbLnbWZS9YXQaN6eAfELVwjephPxVM3Uxm90RNFhhtEiUbg@mail.gmail.com T="test 8" for peter@mycompany.ca 2018-01-25 16:01:59 cwd=/var/spool/exim 3 args: /usr/sbin/exim -Mc 1eeoei-0004MW-M5 2018-01-25 16:01:59 SMTP connection from mail-vk0-f53.google.com [209.85.213.53]:38737 closed by QUIT 2018-01-25 16:01:59 1eeoei-0004MW-M5 => peter R=virtual_user T=virtual_userdelivery 2018-01-25 16:01:59 1eeoei-0004MW-M5 Completed
    0
  • User Avatar
    Peter Lindstrom
    I have now added some simple filters such as "From contains" and included part of the actual email address. This also does not work. So perhaps i am missing something else here?
    0
  • User Avatar
    cPanelMichael
    Hello, Could you open a support ticket using the link in my signature so we can take a closer look? Thank you.
    0
  • User Avatar
    Peter Lindstrom
    hmm.. but for the last test, redirecting to an address with my email address contained in from, i do see the redirect address listed for this email in the exim log as such: 2018-01-25 16:29:37 1eep5S-0004pr-RL H=mail-ua0-f182.google.com [209.85.217.182]:36054 Warning: "SpamAssassin as admin detected message as NOT spam (-2.0)" 2018-01-25 16:29:37 1eep5S-0004pr-RL H=mail-ua0-f182.google.com [209.85.217.182]:36054 Warning: Message has been scanned: no virus or other harmful content was found 2018-01-25 16:29:37 1eep5S-0004pr-RL <= peter.mygmail@gmail.com H=mail-ua0-f182.google.com [209.85.217.182]:36054 P=esmtps X=TLSv1.2:ECDHE-RSA-AES128-GCM-SHA256:128 CV=no S=4247 id=CAOasbLmerW5C=+QHj6Zg-tLE37ti1LRW_L10CmEijystMTr24A@mail.gmail.com T="test 11" for peter@mycompany.ca 2018-01-25 16:29:37 cwd=/var/spool/exim 3 args: /usr/sbin/exim -Mc 1eep5S-0004pr-RL 2018-01-25 16:29:37 SMTP connection from mail-ua0-f182.google.com [209.85.217.182]:36054 closed by QUIT 2018-01-25 16:29:37 1eep5S-0004pr-RL => junk (filter_test@myredirect.ca) R=virtual_user T=virtual_userdelivery 2018-01-25 16:29:37 1eep5S-0004pr-RL Completed but email still shows up at original address and not the redirect one.
    0
  • User Avatar
    Peter Lindstrom
    Hello, Could you open a support ticket using the link in my signature so we can take a closer look? Thank you.

    I have no option in WHM to "Create a support ticket". Perhaps i need to get my hosting company to raise the ticket.
    0
  • User Avatar
    cPanelMichael
    Hello, Yes, if you only have reseller access, please report the issue to your web hosting provider so they can take a closer look. They can then open a support ticket with us if necessary. Thank you.
    0

Please sign in to leave a comment.