Easy Remote option for Adding to Spam Filter Blacklist

SimpleTechGuy

Well-Known Member
Mar 22, 2021
62
21
8
United States
cPanel Access Level
Root Administrator
Hi, wondering if there are any alternative ways to adding an email address to the "Spam Filters / Blacklist" in Cpanel. Currently the only option I see is to log into Cpanel and go to Email / Spam Filters / Show Additional Configurations / Blacklist". Ideally a person could maybe add to blacklist by sending an email or some script that could be run via ssh. Any ideas are much appreciated! Thanks.
 

cPRex

Jurassic Moderator
Staff member
Oct 19, 2014
15,261
2,431
363
cPanel Access Level
Root Administrator
Hey there! If you'd like to manually add email addresses these are located in /home/username/.spamassassin/user_prefs in the following format:

Code:
blacklist_from [email protected]
blacklist_from [email protected]
Just create a new line in that format and you'll be all set!