How do I block unsolicited emails in cPanel? You can block or unblock email based on their characteristics or content.
This can be performed by defining a Block List (BL) or an Allow List (AL).
While our servers are configured to reduce to almost the junk mails that your mail account receive, the fact is that spams have sadly become part of our online existence .
To block unsolicited mail, either use BoxTrapper if available, or Apache SpamAssassin
Apache SpamAssassin is an email utility that examines incoming email and tests for spam characteristics.Ā Ā It uses Bayesian spam filtering and network tests to screen incoming email.
This results in an overall score that Apache SpamAssassin uses to determine whether it should discard a message.Ā Ā For more information, visit theĀ Apache SpamAssassinĀ website.
Note: if you experience trouble when you use BoxTrapper and Apache SpamAssassin together, please contact our web hosting support team for more information about your server’s configuration.
Enabling or disabling Apache SpamAssassin
(HomeĀ >>Ā EmailĀ >>Ā Apache SpamAssassin).
TheĀ Apache SpamAssassinĀ interface displays the current status of the feature.
- To enable Apache SpamAssassin, clickĀ Enable Apache SpamAssassinā„¢.
- To disable Apache SpamAssassin, clickĀ Disable Apache SpamAssassinā„¢.
Apache SpamAssassin spam auto-delete
TheĀ Spam Auto-DeleteĀ feature automatically deletes messages that meet or exceed the spam score limit.
- To enable this feature, select the desired minimum spam score and clickĀ Auto-Delete Spam. This setting defaults toĀ 5.
- To disable this feature, clickĀ Disable Auto-Delete Spam.
Note: if you enable this feature and a message that is not spam meets or exceeds the defined score, you may lose that email. Make certain to properly configure Apache SpamAssassin before you use this feature.
To redirect spam from your email inbox, if this option is not available, create a spam email filter.
ClickĀ Enable Spam BoxĀ to cause Exim to create aĀ spam
Ā folder the next time that you receive spam mail.
- Exim sends all of the mail that Apache SpamAssassin marks as spam to this folder.
- This feature preserves mail that the system may mistakenly classify as spam mail.
After you enable this feature, clickĀ Clear Spam BoxĀ to delete the messages in the spam box.
Warning: Ā If you check your mail through a POP3 client, access and empty your spam box with the usernameĀ youraddress@example.com/spam
Ā and your email account password. If you do not delete email in the spam box frequently, spam may accumulate and cause you to reach your email account quota.
YouĀ cannotĀ use this method to access other folders on your account. Some webmail clients may require additional steps.Ā Ā If you are unsure whether you use POP3 or IMAP to receive mail, you can find this information in your email application’sĀ Preferences interface.
Apache SpamAssassinā„¢ configuration
- ClickĀ ConfigureĀ ApacheĀ SpamAssassinā„¢Ā to update Apache SpamAssassin’s configuration.
- ClickĀ SaveĀ to store your changes.
- To add more than five addresses to the blacklist or whitelist, enter addresses in the first five text boxes and clickĀ Save. Additional text boxes will appear.
- When you add addresses to the blacklist or whitelist, useĀ
*
Ā as a wildcard to represent multiple characters andĀ?
Ā to represent a single-character wildcard. The following examples demonstrate how to properly use wildcards in the blacklist:user@example.com
Ā – Blacklists or whitelists a single email address.*@example.com
Ā – Blacklists or whitelists all of the addresses atĀexample.com
.?ser@example.com
Ā – Blacklists or whitelists a single character in an address atĀexample.com
Ā (for example,Āuser@example.com
, but notĀAuser@example.com
).