How to Stop Spam Attacks on cPanel Hosting Server
Linux is an open source widely spread community. There are millions of Linux users and intruders as well, their job is to make malicious activities on different servers to leak information or change the things as it works. It is really important to stop malicious activities and SPAM attacks on cPanel Hosting Server. There are a number of steps but you must enable/disable some Tweaks on cPanel server.
Setting in “Exim Configuration Manager” can help you with that,
1. Login to WHM control panel by using root login details
![](https://blog.betterwebtechnologies.com/wp-content/uploads/2020/08/cPanel_login_screen.jpg)
2. Go to Main ‘Service Configuration‘
![](https://blog.betterwebtechnologies.com/wp-content/uploads/2020/08/Service-Configuration.png)
Then click on Exim Configuration Manager
![](https://blog.betterwebtechnologies.com/wp-content/uploads/2020/08/Exim-Configuration-Manager.png)
3. Enable RBL filtering by Basic Editor RBLs switch to “On” and if you like you may additional RBL from manage option.
![](https://blog.betterwebtechnologies.com/wp-content/uploads/2020/08/Basic-Editor-RBLs.png)
4. Please turn ON Sender Verification Callouts
![](https://blog.betterwebtechnologies.com/wp-content/uploads/2020/08/Sender-Verification-Callouts.png)
5. Please turn ON Sender Verification
![](https://blog.betterwebtechnologies.com/wp-content/uploads/2020/08/Sender-Verification.png)
5. Please turn ON Reject SPF failures
![](https://blog.betterwebtechnologies.com/wp-content/uploads/2020/08/Reject-SPF-failures.png)
6. Then save the entire configuration this will stop most of the spams on the server.
Now let’s make some changes in Tweak Setting,
1. Login to WHM control panel by using root user
![](https://blog.betterwebtechnologies.com/wp-content/uploads/2020/08/cPanel_login_screen.jpg)
2. Goto Main Server Configuration Tweak Settings
![](https://blog.betterwebtechnologies.com/wp-content/uploads/2020/08/Tweak-Settings.png)
3. Set “Initial default/catch-all forwarder destination = Fail”
![](https://blog.betterwebtechnologies.com/wp-content/uploads/2020/08/catch-all-forwarder.png)
4. Max hourly emails per domain = 200
![](https://blog.betterwebtechnologies.com/wp-content/uploads/2020/08/emails-per-domain.png)
5. Please turn ON Count mailman deliveries towards a domain’s Max hourly emails
![](https://blog.betterwebtechnologies.com/wp-content/uploads/2020/08/Count-mailman-deliveries.png)
6. The maximum percentage of failed or deferred messages a domain may send per hour = 60%
![](https://blog.betterwebtechnologies.com/wp-content/uploads/2020/08/domain-may-send-per-hour.png)
7. Then save the entire configuration this will stop most of the spams on the server.