InMotion Hosting Support Center

Using Blacklist/Whitelist in Spam Filters

You have the ability to Blacklist(block) and Whitelist (allow) email addresses in Spam Filters. The application that provides this functionality is still Spam Assassin, but it is no longer labeled as such in the cPanel. This guide we will show you how to Whitelist/Blacklist an email address through Spam Filters interface in cPanel.

Did you know? Not all hosting companies provide free access to cPanel. InMotion does and it's just one of the many features of our various web hosting plans.

Whitelist an Email Address:

  1. Login to cPanel.
  2. Select Spam Filters in the Email section Scroll down to the Email section and click on Spam Filters.
  3. Confirm that SpamAssassin is enabled On the Spam Filters page, make sure that the slider next to "Process New Emails and Mark them as Spam:" is enabled. When it is enabled, the first sentence you see under that slider is, SpamAssassin is enabled. The Additional Configurations (For Advanced Users) option will only appear when Spam Assassin -now known as Spam Filters- is active.
  4. Click on Additional Configurations link Scroll down to the link labeled Show Additional Configurations. Click on this link.
  5. Click on Edit Spam Whitelist settings The menu of options for Spam Filters will extend. Scroll down and click the link labeled Edit Spam Whitelist Settings. This will open the current whitelist.
  6. Make changes to the Whitelist Click on Add A New "whitelist_from" item in order to add a new domain or email address to the Whitelist items. If you want to remove an entry, click on the "x" to the right of the existing entry.
  7. Once you've finished with your changes to the Whitelist items, click on the blue Update Whitelist (whitelist_from) button.

Blacklist an Email Address:

  1. Login to cPanel.
  2. Select Spam Filters in the Email section Scroll down to the Email section and click on Spam Filters.
  3. Confirm that SpamAssassin is enabled On the Spam Filters page, make sure that the slider next to "Process New Emails and Mark them as Spam:" is enabled. When it is enabled, the first sentence you see under that slider is, SpamAssassin is enabled. The Additional Configurations (For Advanced Users) option will only appear when Spam Assassin -now known as Spam Filters- is active.
  4. Click on Additional Configurations link Scroll down to the link labeled Show Additional Configurations. Click on this link.
  5. Click on Edit Spam Blacklist settings The menu of options for Spam Filters will extend. Scroll down and click the link labeled Edit Spam Whitelist Settings. This will open the current blacklist.
  6. Add or edit Blacklist items Add a new blacklist item by clicking on Add A New "blacklist_from" item". Remove an existing blacklist item by clicking on the "x" to the far right of the entry.
  7. When you have completed making changes to the Blacklist items, click on the blue button labeled Update Blacklist (blacklist_from) in order save your changes.

Congratulations, now you know how to Blacklist and Whitelist email addresses using Spam Filters!

Was this article helpful?

Related Questions

Here are a few questions related to this article that our customers have asked:
Why Are We Limited to Five Entries on Spam Assassin White List
Would you like to ask a question about this page? If so, click the button below!
Ask a Question

Support Center Login

Our Login page has moved. Please click the button below to be redirected to the login page.

n/a Points
2019-01-15 4:42 am

Is there a way to see all the list?

Staff
10,929 Points
2019-01-15 11:18 am
All blacklisted items can be seen on the same screen as where they're added. That seems to the be only place they can be seen in listed form.
n/a Points
2019-01-03 8:11 am

I would need to know how to include in the blacklist all emails coming from one specific domain. For example all emails coming from @example.com. I do noit know if include "@example.com" or "example.com"  in the blacklist field. Thanks

Staff
42,678 Points
2019-01-03 11:28 am
Thanks for your question about blacklisting a domain in the Spam Filter (SpamAssassin). Your format would be like this: "*@domain-name.com" . You would replace "domain-name.com" with the domain that you don't want email from. I hope that helps to answer your question! If you require further assistance please let us know!
n/a Points
2018-11-28 5:16 am

SpamAssassin is no longer available. please update this article.

Staff
42,678 Points
2018-11-28 6:13 pm
Sorry for the confusion - this article has been updated with current graphics and steps to blacklist or whitelist a domain/email address. SpamAsssassin still exists, it's just not labeled directly in cPanel anymore.
n/a Points
2018-11-22 6:03 pm

I've not activated Spam Assassin. However, I am logging into Horde webmail through cpanel and whitelisting/blacklisting senders. Is there a file that I can access through file manager that stores these addresses?

Staff
970 Points
2018-11-23 10:38 am
The SpamAssassin guides may prove helpful. Otherwise, I recommend checking with cPanel forumsfor other options.
n/a Points
2018-07-05 12:03 pm

Can I blacklist email domains or can i only blacklist email addresses because my web registration form is getting bombarded with SPAM bots all using different addresses but with the same domain.

Staff
42,678 Points
2018-07-05 5:19 pm
Hello,

Sorry for the spam issues. Yes, you can use the "*" wildcard in the Blacklist filter for Spam Assassin. In cPanel, go to the Email section, then click on Spam Filters. Next, click on Show Additional Configurations, then click on Edit Spam Blacklist Settings. Click on Add a New "blacklist_from" item and then type in *.domain name to specify emails from a specific domain. Click on Update Blacklist (blacklist_from) in order to save your change. If you continue to have problems with spam, make sure to contact your live technical support team for additional assistance. Make sure to give your setting at least a day (or 2) to take effect.

n/a Points
2018-03-21 6:18 pm

If I blacklist an e-mail adddress in Horde, does it blacklist it on the server so that it is also blacklisted from other clients like Outlook?

Staff
31,499 Points
2018-03-22 10:02 am
Yes, since Horde is an IMAP client, any rules created there will affect other clients (such as Outlook).

Thank you,
John-Paul
n/a Points
2018-01-08 9:06 am

Hi, how can I block a domain?  Seems Apache spamassassin won't block anything that is @variable.space, where "variable" always varies on each email.  I want to block @*.space.  Is this possible?

Staff
1,173 Points
2018-01-08 1:33 pm
Hello, if you are trying to block all emails from a specic domain such as "example.com" you would add a rule under the blacklist for *@example.com. If you are trying to block an entire Top Level Domain such as ".com" you would add a blacklist rule for *.com
n/a Points
2017-10-18 4:10 pm

I have added a specific email address to the SpamAssasin whitelist but the email still get blocked with the following message "JunkMail rejected - clustermx2.nwk01.hosting.com [204.12.102.37]:49461 is in an RBL: Blocked - see http://www.spamcop.net/bl.shtml?204.12.102.37"

What else can i do to allow emails form this sender (or even domain) to get through? It's getting really frustrating. One particaular account has a fair bit of issues with emails getting blocked, even when the addresses are added to the whitelist. 

Any help would be hugely apprecaited. Thanks in advance.

Staff
42,678 Points
2017-10-18 4:37 pm
Hello,

Sorry for the problems with the email being blocked. It appears that the email is being blocked because they are in a block list. They would need to follow the link provided in the message and request that they are unblocked by Spam.cop in order for the message to not be filtered by the service.
n/a Points
2017-08-31 8:00 pm

what if you want to whitelist or blacklist more than 5 email addresses? There are only 5 spots, and commas don't seem to work - in fact, adding a second email after a comma makes the first one stop  working...

Staff
3,686 Points
2017-08-31 9:38 pm
Hello! It does seem that the cPanel plugin for configuring SpamAssassin only includes a limited number of fields for whitelisting/blacklisting email addresses. I would suggest utilizing wildcard symbols, as noted in cPanel's documentation to add multiple email addresses into a field.

If you are on a VPS or Dedicated server and have root access, you may be able to modify the SpamAssassin configuration file(s) directly to include more than the cPanel plugin will configure for you. I hope this helps!

Sincerely,
Carlos E
13,821 Points
2016-07-13 2:19 pm
You would need to set a filter like the comment above.
n/a Points
2016-07-13 4:21 pm

I realize you are trying to be helpful and I appreciate the reply... but since I don't do this everyday... it took me a while to figure what the heck you're talking about.  A link to FILTERING would have been helpful in your reply.  I was looking for a FILTERING feature in Spam Assassin for sometime trying to figure out what I was missing.

n/a Points
2016-07-13 2:14 pm

Can I blacklist an entire extension.. such as .stream  or .top?   I'm getting tons of junk from these new extensions.

n/a Points
2016-05-29 12:27 pm

I have been getting 400 emails a day from all sorts of domains with a .win TLD.  In looking at all the senders email addresses there are hundreds of new domains being sent from every day.  Is there a way to just block any domain with a .win TLD? 

Staff
10,929 Points
2016-05-31 9:14 pm
You could try setting up a filter for Sender "Contains" with the .win TLD in Spam Assassin.
n/a Points
2016-05-20 6:56 pm

Hi. I have a question. Is it possible to upload a large blacklist to spamassassin?  On my old hosting provider we had spam experts which was quite good at blocking the majority of spam, and I created a rather large (500+ adressess and servers) list. Is it possible to just upload that entire list, or do I have to do it one at a time?

Staff
10,077 Points
2016-05-20 9:47 pm
Hello Erik,

While there is no auto way to blacklist email addresses I may have an easier solution than entering them manually via the cPanel. In your home directory there is a hidden folder, which can be viewed with File Manager settings checked, called .spamassassin/. Go into that folder, edit the user_prefs file (no extension). At the bottom right above your score requirement will be where your blacklist go. So what you would have to write is: blacklist_from admin@google.com . Be sure that it stays above required_score.

Best Regards,
TJ Edens
n/a Points
2017-08-31 1:03 am

Thank you, this approach worked for mass upload.

n/a Points
2016-05-17 4:35 pm

Any way to have the system automatically add addresses to whom I (and my users on the domain / VPS) SEND email TO??  (TO, CC, BCC)

 

Tx, David

Staff
10,929 Points
2016-05-17 7:44 pm
This may be possible with a great deal of custom coding, but I don't know of a straightforward way to do it in cPanel, SpamAssassin, or with conventional email clients.
n/a Points
2015-10-24 2:09 am

Hello Guys,

 

when i try to block an email from spam assasin i get this error;

 

Apache SpamAssassin™ Configuration

You can not call this page directly.

 

Help pliz

Staff
43,761 Points
2015-10-26 9:05 am
Hello Emma,

Are you trying to add an email address to the blacklist like it says above?

Kindest Regards,
Scott M
n/a Points
2015-10-23 12:57 am

HI 

I have a question

When we add a DNS blacklist to the spamassassin like zen.spamhaus.org. Does it stores all the blacklisted domains locaaly onto the databade 

or

does it goes to online every time it receives an email and check! which will be slower.

If someone can answer this, i will really appreciate him/her

Staff
10,077 Points
2015-10-23 9:11 am
Hello Sukhpal,

Unfortunately it does not work like that. If you add zen.spamhaus.org to your Spam Assassin blacklist then no one could email you from email@zen.spamhaus.org. If you wanted to use zen.spamhaus.org as a RBL you would need root access to WHM to make that change.

Best Regards,
TJ Edens

Post a Comment

Name:
Email Address:
Phone Number:
Comment:
Submit

Please note: Your name and comment will be displayed, but we will not show your email address.

36 Questions & Comments

Post a comment

Back to first comment | top

Need more Help?

Search

Ask the Community!

Get help with your questions from our community of like-minded hosting users and InMotion Hosting Staff.

Current Customers

Chat: Click to Chat Now E-mail: support@InMotionHosting.com
Call: 888-321-HOST (4678) Ticket: Submit a Support Ticket

Not a Customer?

Get web hosting from a company that is here to help. Sign up today!