The Server Scout cPanel plugin provides essential monitoring capabilities for mail services and critical system components on your cPanel server. This guide will help you leverage these features to maintain server health and quickly respond to potential security issues.
Mail Queue Monitoring
One of the most valuable features of the cPanel plugin is comprehensive mail queue monitoring, which helps you detect compromised accounts and spam outbreaks before they impact your server's reputation.
Understanding Mail Queue Metrics
The plugin tracks two key mail queue metrics:
- Total messages in queue: Shows the overall volume of queued emails waiting for delivery
- Top senders: Identifies which accounts are generating the most outbound mail traffic
These metrics are particularly useful for spotting compromised user accounts that may be sending spam, as well as identifying legitimate bulk mailing that might need optimisation.
Interpreting Mail Queue Data
A healthy mail server typically maintains a relatively small queue during normal operation. Sudden spikes in queued messages often indicate:
- Compromised email accounts sending spam
- Legitimate bulk mailing campaigns
- Delivery issues to specific domains
- Server performance problems
The "top senders" data is especially valuable, as compromised accounts often generate thousands of messages in short periods, making them easy to identify.
Service Status Monitoring
The cPanel plugin continuously monitors essential services that keep your hosting environment running smoothly:
- httpd/apache: Web server handling HTTP requests
- exim: Mail transfer agent for sending and receiving email
- dovecot: IMAP/POP3 server for mail retrieval
- named/bind: DNS server for domain resolution
- mysql/mariadb: Database server for web applications
- postgresql: Alternative database server (if installed)
- pure-ftpd: FTP server for file transfers
- cpsrvd: cPanel's main service daemon
The plugin checks these services regularly and reports their status, helping you identify failures before they affect users.
Viewing Plugin Data
To access your cPanel monitoring data:
- Log into your Server Scout dashboard
- Navigate to the Plugins section in the left sidebar
- Select your cPanel server from the list
- Review the mail queue statistics and service status information
The interface displays current mail queue volumes, identifies top senders by message count, and shows the operational status of all monitored services with clear indicators for any failures.
Setting Up Alerts
Proactive alerting helps you respond quickly to issues before they escalate:
Mail Queue Alerts
Configure alerts for unusual mail queue activity:
- Access the Alerts section in your dashboard
- Create a new alert rule for "Mail Queue Size"
- Set appropriate thresholds (e.g., alert when queue exceeds 1000 messages)
- Choose your notification preferences (email, SMS, or webhook)
Service Failure Alerts
Set up immediate notifications for service outages:
- Create alert rules for each critical service
- Configure alerts to trigger on service status changes
- Set up escalation rules for persistent failures
- Test your alert configuration to ensure reliable delivery
Responding to Mail Queue Issues
When you identify suspicious mail activity through queue monitoring:
Quick Response Steps
- Identify the source: Review the top senders list to pinpoint problematic accounts
- Check recent activity: Look for sudden increases in mail volume from specific users
- Investigate further: Examine mail logs for suspicious patterns or destinations
Suspending Compromised Accounts
To quickly suspend a spamming account:
# Suspend the account via WHM or command line
/usr/local/cpanel/bin/whmapi1 suspendacct user=username reason="Compromised account - spam activity"
# Clear the user's mail queue
/usr/sbin/exiqgrep -i -f @suspendeddomain.com | xargs /usr/sbin/exim -Mrm
Additional Mitigation
Consider implementing additional security measures:
- Enable two-factor authentication for email accounts
- Implement rate limiting for outbound mail
- Review and strengthen password policies
- Monitor for unusual login patterns
Best Practices
- Review mail queue data daily during peak hours
- Set conservative alert thresholds initially, then adjust based on your server's normal patterns
- Document your response procedures for common issues
- Regularly audit user accounts showing high mail volumes
- Keep service monitoring alerts enabled for all critical components
By effectively utilising Server Scout's cPanel plugin monitoring features, you'll maintain better server health, protect your mail reputation, and respond more quickly to security incidents.
Frequently Asked Questions
How do I set up mail queue monitoring in ServerScout cPanel plugin?
What services does the cPanel plugin monitor?
How does mail queue monitoring help detect compromised accounts?
Why is my mail queue suddenly showing high volumes?
How do I configure mail queue alerts in ServerScout?
What should I do when I identify a compromised account?
How often does the cPanel plugin check service status?
Was this article helpful?