Tried and tested solutions for your servers, from our outsourced support diaries.

cPanel spam mitigation – How we fight spamming in cPanel servers

cPanel spam mitigation – How we fight spamming in cPanel servers

Incoming spam to their cPanel servers is a worrisome situation for web hosts. When mail queue gets filled up by spam, it will block valid email delivery, overload the server and cause nuisance to customers.

At Bobcares, we help businesses block spam and avoid mail server failures as a part of our Outsourced technical support services. Preventing outbound spamming is an equally important task for us, as inbound spam prevention.

We’ve dealt with servers that sent out too much spam, which led to server IP being blacklisted and every other mail server blocking mails from that server. Today, we’ll see the security measures we adopt to prevent cPanel spam.

Struggling with server spam?


How to block incoming spam in cPanel servers?

Protecting the mail servers from being spammed is a major security task we perform as a part of our Dedicated Tech Support services for web hosting providers.

Here, we’ll give a sneak-peak into what we do to prevent inbound spamming in cPanel servers.

1. Spam filters to filter out incoming spam

In cPanel servers, the most commonly installed Spam filters are ‘Spamassassin’ and Mailscanner. But simply installing SpamAssassin will not be sufficient to prevent spamming in servers.

The default rule-set of SpamAssassin is configured for generic spam and may not filter all types of spam that hits your mail server. To ensure that no spam get missed, we add custom spam filters and rules to examine incoming mails and to block spam.

At Bobcares, we use extended email logging and email header inspection to identify the spam mails that escape the default rule-set and reach the mailboxes. We then configure custom spam filter rules to block those spam mails.

We also scan the incoming mails for malicious attachments and viruses, using antivirus software such as ClamAV. Our 24/7 security experts monitor the mail queue and exim logs constantly regularly to track and filter out new spam patterns in emails.



SpamAssassin to block spam


[ Protecting your servers from spamming is not a bothersome task now. Hire Our Hosting Support Specialists and stop worrying. ] 

2. Anti-spam record lookup

Many spam mails are generated out of email spoofing. Spammers can take valid email addresses and send forged mails with ‘From’ addresses as those IDs, without really authenticating them.

Enabling sender and recipient validation helps us to confirm that they are valid domains. Using anti-spam record lookup, we validate that the mails are originated from genuine senders and not spammers who spoof the email addresses.

To prevent email spoofing, the commonly configured anti-spam records are SPF (Sender Policy Framework),  DKIM (Domainkeys Identified Mail) and RDNS (Reverse DNS).

While SPF and SKIM are domain authentication records, RDNS is configured to map mail server IP to its hostname. By default, many mail servers do not have SPF checks configured or even if they do, the rule set would be generic.

For instance, a rule that uses ‘+all’ will let mails from every host to pass, which is not useful to block spam. Bobcares’ cPanel experts configure custom ACLs (Access Control Lists) to validate mails and implement filtering to exclude whitelisted domains.

[ You don’t have to lose your sleep to keep your servers secure. Our Hosting Support Specialists protect your servers and support your customers 24/7. ]


We'll help you secure you mail servers and ensure delightful customers.

We free up your time by taking care of your customers and servers. Our engineers monitor your servers 24/7, and support your customers over help desk, live chat and phone.


Submit a Comment

Your email address will not be published. Required fields are marked *

About Bobcares

Bobcares Bobcares is a server management company that helps businesses deliver uninterrupted and secure online services.
Our engineers manage close to 52,500 servers that include virtualized servers, cloud infrastructure, physical server clusters, and more.
WE RESCUE AND MANAGE YOUR SERVER 911 SUPPORT . MONITORING . MAINTENANCE Our experts are online 24/7 to help you recover from a server issue, or to assist you with complex server admin jobs.