Linux, being an open-source platform, is supported by a vast and diverse community. However, its widespread usage also attracts intruders who exploit vulnerabilities to perform malicious activities, such as compromising servers to leak information or disrupt operations.
To protect cPanel hosting servers from spam and malicious activities, it is crucial to implement effective security measures and configure essential tweaks.
Here’s how you can do it:
Step 1: 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.
Step 2: 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.
By implementing these configurations, you can effectively reduce spam and protect your cPanel hosting server from malicious activities.