How to Prevent Annoying Spam Outbreaks in cPanel and Plesk Servers
Spam wastes time and carries real risk. If you run cPanel or Plesk, these are the settings that stop most of it at the server.

Use SpamAssassin + spam filter
Both cPanel and Plesk support SpamAssassin (SA), integrated into the local mail server (on Plesk it is an optional component). When enabled, SA scans all incoming email and rates them on various factors.
For example, does the email have images and no text?
If the rating exceeds the allowed score, the email is marked as spam or deleted (as based on your preferences).
Both panels also offer other filters, allow you to redirect or even delete emails based on keywords.
For example, the word “Viagra” in the subject line.
| How to enable SA in cPanel | How to enable SA in Plesk (menu names vary by version) |
|
|
Enable DKIM and SPF checks
The sending server signs each message, and the receiving server checks the signature against a public key published in the sender's DNS, which shows whether the message really comes from the domain it claims.
A failed check raises the spam score, or triggers the policy the sending domain publishes with DMARC (none, quarantine or reject).
Sign the mail you send, so that other servers accept it, and check the signatures on the mail you receive. Then publish a DMARC record for your domain, so receiving servers know what to do with mail that fails SPF and DKIM.
Both panels document the steps. Plesk has a dedicated DKIM setting in its mail settings, and cPanel signs outgoing mail with DKIM and manages the matching DNS records under Email Deliverability.
Disable catchall email
The catch-all (or catchall), aka the domain default email account, will accept all messages to non-existent accounts on a server when enabled.
Spammers blast spam to sites, whether or not they know an address.
For example, sales@ is a common spam message sent to all sites. If sales@ does not exist, and a catchall does, it’s diverted to this mailbox. So never enable the catchall address.
While it can be useful for senders who mistyped the email address, it’s not worth it. Set the address to either blackhole (discard) or reject (bounce) the messages.
| To set the default address in cPanel | To set mail for non-existent users in Plesk (menu names vary by version) |
|
|
EuroVPS vs. spam
Instead of cleaning up spam, let EuroVPS help. Our support team can help you set all of this up on a managed plan. To learn a little bit more about our relationship with spam, you can read our spam and blacklisting policy in our FAQ section.
From the EuroVPS blog archive, first published 28 June 2017.
All field notes