Importing "Blocked Email Addresses"

neil154

Well-Known Member
Oct 17, 2013
65
0
6
cPanel Access Level
Website Owner
I have a list of email address that I would like to have blocked. I know that I can do a copy & paste into BoxTrapper but I do not use BoxTrapper because I do not want my business clients to get a bounce back message that they would need to respond to. So the only solution I know would be to put the addresses in the email filtering but the list is long and I don't want to spend the day to add them one by one, I would like to import them.

Does anyone have suggestions on how I can accomplish my objective without having to manually add each email address to a filter?
 

cPanelMichael

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

You are limited in the options available to you without root access to the system. Is SpamAssassin enabled for your account? If so, you can manually modify the following file:

/home/$username/.spamassassin/user_prefs

You will need to add in a line for each email account you want to block with the following format:

Code:
blacklist_from [email protected]
You can then setup a filter to determine what action to take for messages marked as SPAM.

Thank you.