Configuring Whitelist Globally

Amiga500

Well-Known Member
May 24, 2023
159
14
18
USA
cPanel Access Level
Root Administrator
We manage multiple domains with mailboxes. Is there a way to globally add email addresses to the domain level whitelist for all domains? We may need to send outage notifications for example to multiple people across multiple domains that we manage. We don't want BoxTrapper to cause delays etc.... I glanced at the global settings but didn't see anything. Right now the only way I see being able to do this is to go into each domain seperately and add the email addresses manually. Thank you.
 

cPRex

Jurassic Moderator
Staff member
Oct 19, 2014
17,470
2,843
363
cPanel Access Level
Root Administrator
Hey there! There aren't any automated tools that would do this work for you. For BoxTrapper, we create the file /home/username/etc/domain.com/email/.boxtrapper/white-list.txt which is just a list of the whitelisted email addresses. So, if you have BoxTrapper enabled, you could manually add your email address to that file on the command line for all accounts using a script of some sort, but that's as close to "automation" as I have for this tool.
 
  • Like
Reactions: Amiga500

Amiga500

Well-Known Member
May 24, 2023
159
14
18
USA
cPanel Access Level
Root Administrator
Hey there! There aren't any automated tools that would do this work for you. For BoxTrapper, we create the file /home/username/etc/domain.com/email/.boxtrapper/white-list.txt which is just a list of the whitelisted email addresses. So, if you have BoxTrapper enabled, you could manually add your email address to that file on the command line for all accounts using a script of some sort, but that's as close to "automation" as I have for this tool.
So we manage a number of domains under WHM for our VPS. When we create a domain we use a specific script that has predefined settings. I'm not familiar with how that was set up as it was done by someone else. Anyway, could that script be used to auto fill the domain level whitelists with some addresses at the time a domain is created? Or, is there a global white/black list that overrides all the Domain & User Level lists for all the domains that we manage?
 

Amiga500

Well-Known Member
May 24, 2023
159
14
18
USA
cPanel Access Level
Root Administrator
No, since the BoxTrapper settings are unique to each email account, there isn't a domain-level option.

SpamAssassin does have a whitelist - https://support.cpanel.net/hc/en-us/articles/360052410994-How-to-whitelist-a-domain-for-SpamAssassin
Each domain has a domain level spam filter (spamassasin) which overrides user level enabled BoxTrapper. I tested this by adding an address to the domain level whitelist (spamassasin), sent an email to a mailbox that has BoxTrapper enabled and it was delivered without being challenged for verification. This is what I expected to happen. But what we want is a global spam filter white/black list that if we add an address to the allow list, it overrides all domain level (spamassasin) and user level (boxtrapper) filters for all domains that we manage. This is how the Barracuda Spam & Virus filter works. Obviously these are two totally different technologies. There are a couple of benefits from having a global filter. If there is a spam attack that hasn't been caught by Spamassasin yet, we can be proactive and add an address to a global black list protecting all our customers and their domains/mailboxes. Or, if we need to send out a global outage notification to all our customers then it would be nice to be able to add our notification email address to a global whitelist so that all our customers with boxtrapper enabled would recdeive our outage notification without being challenged with the verification process. Doesn't sound like there's a global filter. No problem. I just wanted to make sure and also see what our options were. Thank you for your help.
 
  • Like
Reactions: cPRex