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.

BoxTrapper: Pattern for catching all sub-domains

Discussion in 'E-mail Discussions' started by e71, Dec 12, 2015.

  1. e71

    e71 Registered

    Joined:
    Mar 4, 2009
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    Hi,

    I'm having trouble coming up with a pattern to catch all mail from a domain and its sub-domains.

    I tried:

    .+\@(.+\.)?example\.com

    But it doesn't appear to work because I see individual subdomain addresses being added to the white list.

    If my pattern is incorrect, would someone be kind enough to provide me one that works?

    Thanks,
    E.
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,678
    Likes Received:
    654
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
  3. e71

    e71 Registered

    Joined:
    Mar 4, 2009
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    Hi,

    Yes, one rule per sub-domain works fine but one rule for all subdomains isn't working... at least not with the expression above.

    Thanks,
    E.
     
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,678
    Likes Received:
    654
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
  5. e71

    e71 Registered

    Joined:
    Mar 4, 2009
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    I am fairly comfortable coming up the expressions but my concern is whether or not boxtrapper supports regex groups. When I asked for a working pattern, it was a subtle way of asking why my seemingly correct pattern isn't functioning. It's either not recognizing the "(.+\.)", the "?" that follows or a bug exists that prevents the expression from working.

    Since boxtrapper appears to be exclusive to cPanel, I figured this is the most official place to ask -- was I wrong in assuming that?
     
  6. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,678
    Likes Received:
    654
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Internal case FB-61350 is open to address an issue where BoxTrapper fails to correctly save regular expressions in "from" and "to" context. Could you open a support ticket using the link in my signature so we can verify if your issue is related to this case? You can post the ticket number here so we can update this thread with the outcome.

    Thank you.
     
Loading...

Share This Page