Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Where can I rewrite the "max defers and failures" email warning?

Discussion in 'E-mail Discussion' started by domeneas, Aug 16, 2018.

  1. domeneas

    domeneas Active Member

    Joined:
    Sep 20, 2013
    Messages:
    40
    Likes Received:
    3
    Trophy Points:
    8
    cPanel Access Level:
    Root Administrator
    Hi,

    so I edited /usr/local/cpanel/etc/exim/perl/mail_permissions to rewrite the text:

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

    to something a little less technical and more informative, but it is not taking the rewrite after the file edit and an exim restart.

    Any hints on where I am supposed to do it?

    Thanks
     
  2. cPanelLauren

    cPanelLauren Forums Analyst II Staff Member

    Joined:
    Nov 14, 2017
    Messages:
    6,258
    Likes Received:
    480
    Trophy Points:
    233
    Location:
    Houston
    cPanel Access Level:
    DataCenter Provider
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. domeneas

    domeneas Active Member

    Joined:
    Sep 20, 2013
    Messages:
    40
    Likes Received:
    3
    Trophy Points:
    8
    cPanel Access Level:
    Root Administrator
    Thank you for the reply, but the email in question is not contained in any template that the article points to. I can grep through the whole directory and the text "defers and failures" does not show up.
     
  4. cPanelLauren

    cPanelLauren Forums Analyst II Staff Member

    Joined:
    Nov 14, 2017
    Messages:
    6,258
    Likes Received:
    480
    Trophy Points:
    233
    Location:
    Houston
    cPanel Access Level:
    DataCenter Provider
    Hi @domeneas

    Can you show me information on the exact notification you're looking to find/modify? That's where all the WHM based templates are stored.

    Thanks!
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. domeneas

    domeneas Active Member

    Joined:
    Sep 20, 2013
    Messages:
    40
    Likes Received:
    3
    Trophy Points:
    8
    cPanel Access Level:
    Root Administrator
    This is the email that goes out. Like stated in the first post, the only place I can even find the text is in /usr/local/cpanel/etc/exim/perl/mail_permissions, but editing that and restarting Exim does not give the translated version when I trigger it with a test.

    I only want to translate the line"Domain example.com has exceeded the max defers and failures per hour (16/5 (25%)) allowed. Message discarded." to something customers actually understand.
    Code:
    ****
    
    From: Mail Delivery System <Mailer-Daemon@myserver.com>
    
    
    Subject: Mail delivery failed: returning message to sender
    
    
    Date: 27. september 2017 kl. 15.23.06 CEST
    
    
    To: recipient@example.com
    
    
    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:
    
    mail@person_I_sendt_an_email_to.com
    Domain example.com has exceeded the max defers and failures per hour (16/5 (25%)) allowed. Message discarded.
    Reporting-MTA: dns; myserver.com
    
    Action: failed
    Final-Recipient: rfc822;mail@person_I_sendt_an_email_to.com
    Status: 5.0.0
    
     
    #5 domeneas, Sep 4, 2018
    Last edited by a moderator: Sep 4, 2018
  6. cPanelLauren

    cPanelLauren Forums Analyst II Staff Member

    Joined:
    Nov 14, 2017
    Messages:
    6,258
    Likes Received:
    480
    Trophy Points:
    233
    Location:
    Houston
    cPanel Access Level:
    DataCenter Provider
    Hi @domeneas

    I see this isn't the notification this is the actual bounce. This is part of /etc/exim.pl.local:

    Code:
    /etc/exim.pl.local:            $enforce_mail_permissions_data = ":fail: Domain $domain has exceeded the max defers and failures per hour ($currentmail/$maxmails ($percentage\%)) allowed. Message discarded.";
    While you potentially could modify this, I can't guarantee the changes would remain after an exim update or restart.

    Thanks!
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice