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!

Regex not working as expected with Global Mail Filters

Discussion in 'E-mail Discussion' started by DeepXP, Nov 15, 2015.

  1. DeepXP

    DeepXP Well-Known Member

    Joined:
    Feb 20, 2005
    Messages:
    67
    Likes Received:
    0
    Trophy Points:
    156
    Location:
    Internet
    cPanel Access Level:
    Root Administrator
    I am trying to create a filter which would accept any email with a specific pattern. I created a filter using regex, tested it, matched the filter rules successfully. But it bounces back the email when when I send the mail.

    Here is what I am trying to achieve:

    Any mail sent to unsubscribe+(random characters)@example.com should get delivered to test@example.com

    So my filter looks like this:

    To
    Matches regex
    unsubscribe+(.*?)+?@example.com
    Redirect to Email
    test@example.com

    Get "550 No Such User Here" error for unsubscribe+abc123@example.com when the actual email is sent.

    Any idea what could be the reason?

    I am on 11.52.0 (build 22) version of WHM
     
  2. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

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

    What's configured under the "Default Address" option in cPanel for this domain name?

    Thank you.
     
    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