How to Reduce Spam in cPanel Hosting? Print

  • 1

Nowadays Spam has become major annoyance with day to day email communications. You may have seen your mailbox filled with unsolicited bulk electronic messages. These Spam mails may contain virus attachments or malicious links that tempt you to visit some random website where you will be asked to buy products. These websites may deliver malware to your computers. In this article we have compiled techniques to reduce amount of unwanted e-mails to be delivered in your mailbox.

Enable SpamAssassin

SpamAssassin is widely used automated filtering system that identifes spam based on the message headers and email content. It uses a rule-based scoring system to determine whether incoming mail is legit email or spam. An email with higher score is more likely to be spam.

To prevent legit emails being rejected, store the spam emails in Junk/Spam folder rather rejecting it straight away. You can enable the SpamAssassin from cPanel by clicking SpamAssassin icon under Mail section. For more information, refer our article How to Enable SpamAssassin from cPanel.

Filter Emails with Spammy Words

If you can determine spammy words in emails which clearly identify them as spam, you can filter out such emails easily through cPanel's Account level and user level filtering features. Refer our article to create an Account level and User level filters from cPanel.

Enable Email Authentication from cPanel

cPanel Email authentication section combines two technologies namely DKIM and SPF to reduce the amount of spam.


DomainKeys (DKIM) is an e-mail authentication system that embeds digital signatures in email messages which can be verified using public keys published in the DNS. DKIM ensures that emails are being received from the listed senders and the messages have not been modified during its transit. To enable DKIM, follow these steps:

  • Under Mail section of the cPanel, click on Email Authentication.
  • Under DKIM, click Enable.

     Enable DKIM

  • That's it.

Here is a video tutorial, you can refer to enable the domain key from cPanel

Enable SPF Authentication

SPF Authentication specifes the authorized Email Servers to send email from your domain. It prevents outgoing spam messages and “Spoofing” (forged email appears to be coming from your domain). SPF prevent spammers from forging messages that impersonate your domain as the sender. To enabling SPF Authentication, refer following steps:

  • Under Mail section of the cPanel, click on Email Authentication.
  • Under SPF, click Enable.

    Enable SPF

  • That's it.

Changing SPF Advanced settings

Once you enable SPF authentication, you can add additional IP addresses or mail servers that are authorized to send e-mail for your domain. To change SPF advanced settings, follow these steps.

  1. Under Mail section of the cPanel, click Email Authentication.
  2. To add additional hosts, servers, IP addresses , or include lists to your SPF configuration, click Add in the respective section. Similarly, in case you wish to remove hosts, servers, IP addressses, or include lists from your SPF configuration, you need to click on Remove in the respective section.
  3. In order to exclude all other domains that are not specifically defined in your configuration, select the All Entry (ALL) check box.
  4. In order to overwrite all existing SPF records, select the Overwrite Existing Entries check box.
  5. Click Update.


Other Useful tips

Spammers can crawl your website to collect email addresses and store into their system.Hence, it is not recommended to display your email address on your website. Additionally, when you see a spam email, immediately mark it as Junk or Spam. Try to avoid registering at unknown websites and for the newslatters you never read. If you have already signed up to receive the messages and want to stop receiving them, use unsubscribe method of the respective website. You can also go for Anti-Spam solution to reduce incoming Spam Mails.

Was this answer helpful?

« Back