Server Maintenance

cPanel Max Defers Occurring for an Account

Updated November 2026 15,718 views 3 min read
Server Maintenance | Updated November 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 [email protected] '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

Frequently Asked Questions

What does max defers occurring for an account mean?

It means the server detected an excessive number of failed email deliveries from that account. This is usually a compromised email account sending spam or a hacked website injecting mail, which produces a flood of bounces and deferrals.

How do I investigate max defers on an account?

As the server administrator, check the Exim mail logs to see which account or script is generating the outgoing mail and where it is going. A sudden spike of deferred messages to many unknown recipients points at a compromise rather than normal mail.

How do I stop the max defers problem?

Find and fix the source: change the password on any compromised email account, scan and clean a hacked website, and remove any malicious mail scripts. Once the spam source is gone, the deferrals stop and the account's mail flow returns to normal.

Does hitting max defers stop my legitimate email?

It can slow or queue outgoing mail while the limit is in effect, which is why it is important to find the spam source quickly. The limit protects the server's sending reputation; clearing the underlying compromise restores normal delivery.

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 November 2026 · Browse all Server Maintenance articles

Share: X in Reddit f Email
  • 130 Users Found This Useful

Was this answer helpful?

Related Articles

VPS Time Not Correct with Time Server

Server Maintenance | Updated March 2026 When a VPS or dedicated server's system clock drifts...

Whitelisting Multiple IPs with ModSecurity

Server Maintenance | Updated March 2026 ModSecurity (our web application firewall)...

FSCK Options and Maintenance

Server Maintenance | Updated January 2026 fsck (file system check) scans and repairs Linux...

How to Lock Down Your VPS or Dedicated Server Behind Cloudflare

Server Maintenance | Updated October 2026 Cloudflare can only filter the traffic that...



Save 30% on web hosting - Use coupon code Hosting30