BoxTrapper: Pattern for catching all sub-domains

e71

Registered
Mar 4, 2009
3
0
51
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.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,268
463
Hello :)

Have you tried adding a separate rule for each individual subdomain that's added to your account?

Thank you.
 

e71

Registered
Mar 4, 2009
3
0
51
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.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,268
463
You may want to try a website such as StackOverflow for questions about specific custom regular expressions.

Thank you.
 

e71

Registered
Mar 4, 2009
3
0
51
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?
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,268
463
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.