This knowledge base provides a guide for detecting spamming on a Linux WHM/cPanel server and taking necessary actions to mitigate it using Exim and other commands.
Follow the steps-
- Checking Spamming-
- Log into Your WHM/cPanel Server by accessing it via SSH or a secure terminal.
- Check the Exim Mail Queue by using the following command to identify suspicious email activity:
- Identify Suspicious Emails by examining the queue for unusual email senders or patterns. Focus on emails with high volumes or abnormal content.
- Review Mail Logs by examining Exim mail logs for detailed information on email transactions and potential spam sources:
- Taking Action on Spamming-
- Identify the Abusive Sender by checking or removing email from mail queue for the sender responsible for spamming, focusing on the volume of sent emails.
- Suspend the Sender’s Account if the spammer is a user on your server by suspending their account via WHM/cPanel.
- Block the Sender’s IP Address by using server firewall rules to block the IP address of the abusive sender.
For example:
- Remove Spam Emails from the Queue by deleting them from the Exim mail queue using the Exim command:
- Restart the Exim mail server to apply changes and ensure smooth operation.
This way, you can detect spam and take action on a Linux WHM/cPanel server. If you encounter any issues, feel free to contact our support staff.