This article explains how to stop Spam attacks on cPanel hosting server.
Linux’s open-source nature attracts both a strong community and potential threats. To secure cPanel servers from spam and attacks, implementing robust security measures is essential.
Here’s how you can do it:
- Configure the Exim Mail Server:
- Log in to WHM
Access the WHM control panel using your root login credentials. - Access Exim Configuration Manager
Navigate to Service Configuration and select Exim Configuration Manager.
- Enable RBL Filtering
In the Basic Editor, turn the RBLs switch to On. Optionally, you can add additional RBLs using the “Manage” option.
- Enable Sender Verification
- Turn Sender Verification Callouts to On.
- Turn Sender Verification to On.
- Reject SPF Failures
Turn the Reject SPF Failures option to On. - Save Configuration
Save your changes to apply the settings. These steps will significantly reduce spam on the server.
- Log in to WHM
- Adjust Tweak Settings:
- Log in to WHM
Access the WHM control panel using root login credentials. - Access Tweak Settings
Navigate to Server Configuration and select Tweak Settings.
- Modify Email Settings:
- Set Initial default/catch-all forwarder destination to Fail.
- Limit Max hourly emails per domain to 200.
- Turn Count mailman deliveries towards a domain’s Max hourly emails to On.
- Set The maximum percentage of failed or deferred messages a domain may send per hour to 60%.
- Save Configuration
Save your changes to finalize the settings.
- Log in to WHM
By implementing these configurations, you can effectively reduce spam and protect your cPanel hosting server from malicious activities.