Questions regarding Maximum Hourly Emails


Well-Known Member
Feb 3, 2011
cPanel Access Level
Root Administrator
1. Is there a way to view what a domains current hourly email sent value is or is this just stored in memory and not a file? I'm not looking for what the max is but current value. I guess I could write a script tp query the MySQL eximstats DB but I would rather not go that route if I didn't have to.

2. Is this value reset at the top of each hour or is it dynamic?

3. Is there a way I can reset the current value? Say I get an account that got hacked and blew-up the limit maxing it out. I block the email account and flush the spam out of the queue. Now I need to reset the hourly limit so good mail can once again start flowing and not have to wait an hour or so.

Thanks for any help with this.


Staff member
Apr 11, 2011
Hello :)

Here is a snippet from another analyst in a recent support ticket. It should help answer your questions:

The logic for this option is handled by /etc/ in the getmaxemailsperhour(), increment_max_emails_per_hour(), get_current_emails_per_hour(), and reached_max_emails_per_hour() functions. The actual limit is enforced inside the check_mail_permissions() function. The files used to store the tracking values are stored in /var/cpanel/email_send_limit/cache/$domain and /var/cpanel/email_send_limits/track/$domain. It may be possible that you could copy the functions of this Perl script into a custom Perl script to consult these data files and determine if a domain has gone over its limit.
Thank you.