Exceeded the max defers and failures per hour error

Zahra95

Member
Sep 23, 2018
10
1
3
Iran
cPanel Access Level
Root Administrator
Hi
I transferred my sites to a new server and i didn't transfer my config files and now when I send email at the special time I will get bellow message :
Code:
This message was created automatically by mail delivery software.
A message that you sent could not be delivered to one or more of its
recipients. This is a permanent error. The following address(es) failed:
  [email protected]
    Domain domain.com has exceeded the max defers and failures per hour (5/5 (71%)) allowed. Message discarded.
how can i fix it ?
Regards
 
Last edited by a moderator:

cPanelLauren

Product Owner
Staff member
Nov 14, 2017
13,296
1,271
313
Houston
Hello @Zahra95

From WHM>>Server Configuration>>Tweak Settings you need to check the Mail section for "Maximum percentage of failed or deferred messages a domain may send per hour"

The output you show indicates:
Domain domain.com has exceeded the max defers and failures per hour (5/5 (71%)) allowed. Message discarded.
Which tells me you have reached/exceed the value set for that variable.

Thanks!
 

rpvw

Well-Known Member
Jul 18, 2013
1,101
462
113
UK
cPanel Access Level
Root Administrator
The "Maximum percentage of failed or deferred messages a domain may send per hour" setting appears in both Tweak Settings, and in the Packages Add/Edit

Looking at the documentation for both utilities, I couldn't see ( apologies if it's there and I missed it) any statement as to the order of precedent that these setting are applied.

I wonder if there should be an additional, and prominent, Tweak Setting that locks all the settings in Tweak Settings, and prevents any other utility or facility or setting from overriding them ?

Please don't ask me to open a Feature Request - as it stands, that site/area does not deserve to be a part of the cPanel portfolio.
 

cPanelLauren

Product Owner
Staff member
Nov 14, 2017
13,296
1,271
313
Houston
Hi @rpvw

Good point in bringing up the package setting.

I wonder if there should be an additional, and prominent, Tweak Setting that locks all the settings in Tweak Settings, and prevents any other utility or facility or setting from overriding them?
I'm not sure that would work since package values are only relevant for the account's assigned to them whereas tweak settings are global. For instance, I could set in tweak settings the max percentage of failed/deferred to 90%, then in two packages set it to 50% and 40% - the accounts assigned those two packages would have the specified limitation of 40% or 50%, not the 90% set globally.
 

rpvw

Well-Known Member
Jul 18, 2013
1,101
462
113
UK
cPanel Access Level
Root Administrator
I could set in tweak settings the max percentage of failed/deferred to 90%, then in two packages set it to 50% and 40% - the accounts assigned those two packages would have the specified limitation of 40% or 50%, not the 90% set globally.
So the package setting takes precedent over the Tweak Settings value ?

In that case, the user above may have their Tweak Settings value set to "unlimited" but have a lower value (70% or 71%) set in the package ?

Does the package value have to be 'equal to' or less than the Tweak Setting ? eg if the Tweak Setting were to be 90%, could the package be 'unlimited' ? or would the 90% in this case be determining cap ?
 

cPanelLauren

Product Owner
Staff member
Nov 14, 2017
13,296
1,271
313
Houston
So the package setting takes precedent over the Tweak Settings value ?
Only for the accounts that have the package setting so yes/no for example:

If I set the max % of failed/deferred
Package 1: 50%
Package 2: Unlimited

And Tweak Settings has 90%

Package 1 will use the 50% and Package 2 will default to the global of 90%


(I think that may have answered the other questions as well)
 

rpvw

Well-Known Member
Jul 18, 2013
1,101
462
113
UK
cPanel Access Level
Root Administrator
So what would the following scenario produce ?

If I set the max % of failed/deferred:

Tweak Settings has 60%
Package 1: 50%
(I would guess that the 50% would prevail as it is less than the 60% Tweak Settings)
Package 2: 90% (This is the real question ? Would it be 90% of the total, or 90% of the 60%, or just plain ignored since it represented a higher value than that set in Tweak Settings ?)

I can see that not setting a value in the Package (unlimited) would default to the Tweak Settings value, but perhaps that would be better tagged as 'Not Set' rather than 'Unlimited' which suggests something else altogether ?

Sorry, I am not trying to be pedantic, just to get a definite and explicit ruling on the setting hierarchy :)
 

cPanelLauren

Product Owner
Staff member
Nov 14, 2017
13,296
1,271
313
Houston
The global would take precedence over the 90% from what I understand of the setting - similar to the way a php.ini works. The global takes precedence over what you set in the specific account, you can set lower limits in the account but not higher.
 

rpvw

Well-Known Member
Jul 18, 2013
1,101
462
113
UK
cPanel Access Level
Root Administrator
Thank you very much @cPanelLauren.

I wonder if there might be some way of reflecting the Tweak Settings global setting in the Package add/edit ? something like having the faded number in the box reflecting the eg 90, and provoking an error message if one tried to set something higher (this could also apply to other Package settings that have overriding Tweak Settings as well)

Excellence is in the details :-D
 
  • Like
Reactions: cPanelLauren

cPanelLauren

Product Owner
Staff member
Nov 14, 2017
13,296
1,271
313
Houston
Hello @Zahra95

The following should help you with the issue you're experiencing:

Hello @Zahra95

From WHM>>Server Configuration>>Tweak Settings you need to check the Mail section for "Maximum percentage of failed or deferred messages a domain may send per hour"

The output you show indicates:


Which tells me you have reached/exceed the value set for that variable.

Thanks!