Results 1 to 11 of 11

Thread: Domain example.com has exceeded the max defers and failures per hour (5/5

  1. #1
    Registered Member
    Join Date
    Sep 2006
    Posts
    315
    cPanel/WHM Access Level

    Root Administrator

    Default Domain example.com has exceeded the max defers and failures per hour (5/5

    I have an account that had a virus (the email account is now disabled), but they've been getting the following error message ever since:

    Domain example.com has exceeded the max defers and failures per hour (5/5 (100%)) allowed

    I figured it would happen for a few hours, since they had sent a bunch of emails, but it's been a week now and they're still getting it.

    According to Mail Delivery Reports, in the last 24 hours they've sent 10 emails, 9 of which Failed+Deferred. But when looking through the list, it looks like the 9 failed emails failed because of this same error; they can't send an email because they've had too many bounce, and when they try to send another one, it bounces and adds to the percentage.

    How long do they need to wait before sending any emails before it will clear up? It looks like they're waiting 24 hours or more, and that's not enough.

    Further, how do I disable this feature entirely? Under Tweak Settings, I've set the following, which I thought would disable it, but it doesn't:

    Code:
    Max hourly emails per domain -> Unlimited (default)
    Maximum percentage of failed or deferred messages a domain may send per hour -> Unlimited (default)
    The percentage of email messages (above the account’s hourly maximum) to queue and retry for delivery -> 125% (default)
    I figured that 125% of Unlimited is Unlimited, but apparently it's 5? I'm confused on that one.

    TIA,

    Jason

  2. #2
    Registered Member
    Join Date
    Jan 2012
    Posts
    9
    cPanel/WHM Access Level

    Root Administrator

    Default Re: Domain example.com has exceeded the max defers and failures per hour (5

    Did you try to restart the exim service once ?

  3. #3
    cPanel Staff cPanelTristan's Avatar
    Join Date
    Oct 2010
    Location
    somewhere over the rainbow
    Posts
    7,610
    cPanel/WHM Access Level

    Root Administrator

    Default Re: Domain example.com has exceeded the max defers and failures per hour (5

    Could it instead be hitting this option in WHM > Exim Configuration Manager?

    Ratelimit incoming connnections with only failed recipients [?]
    Ratelimit incoming SMTP connections that have only sent to failed recipients five seperate connnection times in the last hour.
    The setting is five as listed in the text and the 5/5 for the message you are showing in /var/log/exim_mainlog appears to indicate it might be this setting rather than the defer one in WHM > Tweak Settings that is applying.
    cPResources: Support Options | More Support Options | Forums Search | cPanel.net Site Search | Mailing Lists(Alt) | Docs
    -- Tristan, Technical Analyst III, Forums Specialist, cPanel Tech Support

    Submit a ticket | Check an existing ticket

  4. #4
    Registered Member
    Join Date
    Sep 2006
    Posts
    315
    cPanel/WHM Access Level

    Root Administrator

    Default Re: Domain example.com has exceeded the max defers and failures per hour (5

    Sorry for the delay in replying. For whatever reason, I didn't get the email notifications that anyone had replied to this thread.

    Tristan, the "ratelimit incoming connections..." that you mentioned only had an "on / off" option. I turned it off and asked the client to try again, but they reported back that they still get the same error message:

    Domain example.com has exceeded the max defers and failures per hour (5/5 (100%)) allowed. Message discarded.

    They tried sending about 45 minutes after I emailed them and asked them to try. Would the length of time have anything to do with it?

    Under Exim Configuration Manager, everything is set to "default" except:

    SpamAssassin™ reject spam score threshold -> 10
    Reject remote mail sent to the server's hostname -> On
    Ratelimit suspicious SMTP servers -> Off
    Ratelimit incoming connnections with only failed recipients -> Off

    This last one is the only thing I changed for this most recent test.

    They haven't been able to send any emails for about 3 weeks or so, and I'm clueless on why. This is the only error in the mail log for the account.
    Last edited by GoWilkes; 10-15-2012 at 06:34 PM.

  5. #5
    cPanel Staff cPanelTristan's Avatar
    Join Date
    Oct 2010
    Location
    somewhere over the rainbow
    Posts
    7,610
    cPanel/WHM Access Level

    Root Administrator

    Default Re: Domain example.com has exceeded the max defers and failures per hour (5

    Could you submit a ticket to us at this time? The only idea I had was the one in Exim Configuration Manager. They shouldn't still be denied for sending emails like this unless something else is blocking them. We'll need server access to investigate, so a ticket is the best approach.
    cPResources: Support Options | More Support Options | Forums Search | cPanel.net Site Search | Mailing Lists(Alt) | Docs
    -- Tristan, Technical Analyst III, Forums Specialist, cPanel Tech Support

    Submit a ticket | Check an existing ticket

  6. #6
    Registered Member
    Join Date
    Sep 2006
    Posts
    315
    cPanel/WHM Access Level

    Root Administrator

    Default Re: Domain example.com has exceeded the max defers and failures per hour (5

    I've submitted the ticket, and sent the ID to you by PM. I would have posted it here, but wasn't sure if there was any security reason to keep the ID private.

    Thanks, Tristan,

    Jason

  7. #7
    Registered Member
    Join Date
    Sep 2006
    Posts
    315
    cPanel/WHM Access Level

    Root Administrator

    Default Re: Domain example.com has exceeded the max defers and failures per hour (5

    I believe that I have fixed the problem on my own, but it may still be a bug with cPanel.

    I found the following file:

    /var/cpanel/email_send_limits/max_deferfail_example.com

    Deleting this file fixed the problem immediately. I'm guessing that the system should have deleted (or updated?) this file at some point, but didn't.

  8. #8
    Registered Member
    Join Date
    May 2011
    Posts
    333
    cPanel/WHM Access Level

    Root Administrator

    Default Re: Domain example.com has exceeded the max defers and failures per hour (5/5

    Domain example.com has exceeded the max defers and failures per hour (5/5)
    I would be happy if cpanel staff could clarify:
    • What does the (5/5) really mean? Does it mean that every 5 messages are being checked? Can this limit be increased?
    • The "per hour" means any period of 60 minutes (Eg: if current time is 13:15, then hour = 13:15 to 14:15) or does it mean the current ongoing hour. (Eg: if current time is 13:15, then hour = 13:00 to 14:00)


    I am sure I had read a feature request or thread from some regular poster a couple of months back. I dont think it had a clarification. Couldnt find it though.

  9. #9
    Registered Member
    Join Date
    May 2011
    Posts
    333
    cPanel/WHM Access Level

    Root Administrator

    Default Re: Domain example.com has exceeded the max defers and failures per hour (5/5

    Ok. so heres the clarification through a cpanel support ticket (Support Request Id 3978549)

    Question:
    The "per hour" means any period of 60 minutes (Eg: if current time is 13:15, then hour = 13:15 to 14:15)
    -or-
    does it mean the current ongoing hour. (Eg: if current time is 13:15, then hour = 13:00 to 14:00)
    Answer:
    Seth Daughenbaug:
    The "per hour" means "in the past 60 minutes". When a defer or failure happens, if there are additional failures in the past 60 minutes, +1 is added to this count.

    Lets say you are trying to send out 60 emails, one each minute.

    If the first 5 emails go through without an error, then the next one fails, that would be the first failure. So, in the first 6 minutes, you have 1 failure.

    The next 10 emails go through fine,

    but then 4 emails after that fail. At this point, you have reached the 5 failure limit.
    At this point, it has been 20 minutes all together. However, the first failure was 6 minutes in.

    The domain sending out the emails would not be able to send any further email until an hour has past since the first failure. In this cause, you would need to wait 46 minutes to send another email, as the first failure would drop off at that point, leaving you with 4 failures in the past hour. I hope this makes sense.
    Question: What does the (5/5) really mean? Does it mean that every 5 messages are being checked? Can this limit be increased?

    One of my users is getting the error: Domain has exceeded the max defers and failures per hour (9/5 (75%)) allowed. Message discarded.
    Answer:
    Brian Dial:

    Percentage counts do not start until there have been 5 defers or failures. This is what the (x/5) is indicating in the logs. The measurement of defers and failures kicks in once 5 defers or failures have occurred.

    As an example, if a user sends out 9 emails and three of them are deferred, you should see a (3/5) in the logs. If you have a 25% threshold on suspending email sending, even though 33% of this user's messages have bounced, that user will still be able to send email because 5 messages haven't bounced yet. The percentage of failures kicks in after 5 total failures.

    In your latest example, (9/5) is just showing you the total number of failures for that user, which is 9. Five is just threshold at which the percentage of tallying starts. The 75% indicates that 75% of this user's messages have failed. From this we can determine that the user has sent 12 total messages, and 9 of them (75%) have failed or been deferred.

    Currently the only measurement to base these restrictions on is a percentage of failed messages. There is no way to set this to a specific number of messages, as it is based entirely on a percentage of mail sent per user.

    I hope this clears some things up. If not, please post back and I will be happy to elaborate.
    I hope this clears up a lot.

  10. #10
    Registered Member
    Join Date
    Oct 2003
    Location
    Valencia, CA
    Posts
    62

    Default Re: Domain example.com has exceeded the max defers and failures per hour (5/5

    Could someone please clarify a few things from this post?

    1. Why were the messages failing if "Maximum percentage of failed or deferred messages a domain may send per hour" was set to unlimited?

    2. If this was ultimately caused by the max_deferfail file in /var/cpanel/email_send_limits/, what would cause that file to remain there, preventing email from being sent for three weeks?

    Thanks for helping us understand the actual cause of this issue if possible.

    John

    Quote Originally Posted by ruzbehraja View Post
    Ok. so heres the clarification through a cpanel support ticket (Support Request Id 3978549)









    I hope this clears up a lot.

  11. #11
    Registered User
    Join Date
    May 2013
    Posts
    1
    cPanel/WHM Access Level

    Root Administrator

    Default Re: Domain example.com has exceeded the max defers and failures per hour (5/5

    deleting /var/cpanel/email_send_limits/max_deferfail_example.com also worked for me but the file kept coming back! it looks like chmod 444 on /var/cpanel/email_send_limits/ is preventing the file from coming back again

Similar Threads

  1. Domain has exceeded the max emails per hour(60)
    By iworld in forum New User Questions
    Replies: 4
    Last Post: 12-28-2011, 03:18 AM
  2. Replies: 2
    Last Post: 01-28-2010, 06:52 PM
  3. Domain Exceeded Max Emails Per Hour via Script only
    By acenetryan in forum cPanel & WHM Discussions
    Replies: 29
    Last Post: 11-12-2008, 07:20 AM
  4. exceeded the max emails per hour
    By XPerties in forum cPanel & WHM Discussions
    Replies: 7
    Last Post: 03-28-2005, 03:38 PM
  5. You have exceeded the max emails per hour
    By bimal in forum cPanel & WHM Discussions
    Replies: 4
    Last Post: 11-01-2004, 10:50 AM
bargain