cPanel Max Defers Occurring for an Account

Server Maintenance | Updated 2026

When cPanel reports max defers occurring for an account, the server has detected excessive email delivery failures from that domain. This is typically caused by a compromised email account sending spam or a hacked website injecting mail. This guide covers how to investigate and resolve it from the server admin side.

01. Check the Mail Logs

# Recent activity for the domain
grep "yourdomain.com" /var/log/exim_mainlog | tail -200

# Check for authentication (compromised password)
grep "login authenticator" /var/log/exim_mainlog | grep "yourdomain.com"

# Check for script-based sending (compromised website)
grep "cwd=/home/username" /var/log/exim_mainlog | tail -50

# See which script is sending
grep "X-PHP-Originating-Script" /var/log/exim_mainlog | grep "username"

02. Identify the Source

Compromised Email Account

If you see authenticated SMTP sessions sending to many different recipients:

# Find which email address is authenticating
grep "A=dovecot" /var/log/exim_mainlog | grep "yourdomain.com" | \
  awk '{print $6}' | sort | uniq -c | sort -rn | head

Compromised Website/Script

If you see cwd=/home/username/public_html in the log lines:

# Find the exact PHP script sending mail
grep "cwd=/home/username" /var/log/exim_mainlog | \
  grep "X-PHP-Originating-Script" | awk -F'X-PHP-Originating-Script: ' '{print $2}' | \
  sort | uniq -c | sort -rn

Forwarder Loops

# Check for forwarding issues
grep "router=virtual" /var/log/exim_mainlog | grep "yourdomain.com" | grep "defer"

03. Remediation Steps

  1. If compromised email account: change the password immediately in WHM or cPanel
    # Or via command line
    /scripts/realchpass username@yourdomain.com 'newStrongPassword'
  2. If compromised website: suspend the script or scan for malware
    # Find and quarantine the malicious script
    chmod 000 /home/username/public_html/path/to/malicious.php
    
    # Run ClamAV scan
    clamscan -ri /home/username/public_html/
  3. Flush the mail queue for that account:
    # Delete all queued mail from the domain
    exiqgrep -i -f "yourdomain.com" | xargs exim -Mrm
  4. Reset the defer counter - cPanel tracks this hourly. The counter resets on its own, but you can clear it:
    rm -f /var/cpanel/email_send_limits/yourdomain.com
Do Not Just Raise the Limit

Increasing the defer limit without fixing the root cause will damage the server's IP reputation and potentially get the entire server blacklisted. Always fix the source of the spam first.

04. Adjusting Defer Limits

The defer limit is configured in WHM:

  1. WHM > Tweak Settings > search "defer"
  2. Max defers - default is typically 5-10 per hour per domain
  3. Per-account override - in WHM > Email > Mail Delivery Reports, you can adjust limits per domain

On CloudLinux servers with LVE, you can also control email rate limits per account via /etc/container/ve.cfg.

Need Help With Email Abuse?

If you are seeing persistent defer issues or need help cleaning up after a compromise, our team can assist with investigation and remediation.

Open a Support Ticket

Quick Recap

  1. Check exim logs to identify what is sending
  2. Determine source - compromised email, hacked script, or forwarder loop
  3. Fix the source - change password, quarantine script, or fix forwarder
  4. Flush the queue to remove spam from the outbound queue
  5. Monitor to ensure the issue does not recur

14,720 users found this article useful · Last updated March 2026 · Browse all Server Maintenance articles

  • 130 Users Found This Useful

Was this answer helpful?

Related Articles

Disable cPanel Brute Force Command Line

Server Maintenance | Updated 2026 cPHulk is cPanel's built-in brute force protection. It...

ModSecurity: collection_store: Failed to access DBM file /var/cpanel/secdatadir/ip: Permission denied

Server Maintenance | Updated 2026 The error collection_store: Failed to access DBM file...

E Sysup: Needed system RPMs were not installed: yum-utils

Server Maintenance | Updated 2026 The error E Sysup: Needed system RPMs were not installed:...

Manually Clear from Console / Command Line cPanel Exim Mail Queue

Server Maintenance | Updated 2026 If the Exim mail queue on a cPanel server is backed up with...

Error: rpmdb Open Failed with cPanel

Server Maintenance | Updated March 2026 The "rpmdb open failed" error means the RPM database...



Save 30% on web hosting - Use coupon code Hosting30