Blacklist/Whitelist an Email Address in Spam Filters

Using Blacklist/Whitelist in Spam Filters

Whitelist an Email address Blacklist an Email addresss

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!

Thoughts on “Blacklist/Whitelist an Email Address in Spam Filters

    • 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.

  • 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

    • 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!

    • 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.

  • 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?

  • 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.

    • 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.

  • 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?

    • Yes, since Horde is an IMAP client, any rules created there will affect other clients (such as Outlook).

      Thank you,
      John-Paul

  • 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?

    • 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

  • 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.

    • 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.

  • 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…

  • 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.

    • Pardon the last response. I read your request wrong. You mentioned you were sending test gmail messages to your email account. Are the messages you send getting any kind of non-delivery report when they bounce back?

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

  • 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? 

  • 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?

    • 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

  • 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

    • 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.

  • 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

  • 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

    • 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

Leave a Reply