Skip to main content

Maximum percentage of failed or deferred messages a domain may send per hour

Comments

5 comments

  • cPanelMichael
    Hello :) Per our documentation, this option specifies the maximum percentage of failed or deferred messages that a domain may send per hour. This option only applies after the "Number of failed or deferred messages a domain may send before protections can be triggered" value is reached. Full documentation with examples is available at: Mail Limiting Features (How to Prevent Spam) - cPanel Knowledge Base - cPanel Documentation
    But if a customer sends 2 emails and 1 email bounces will get get blocked? just because first email that was sent had 2 recipients?

    The percentage is based on the total messages sent compared to the number of failed or deferred outgoing messages per hour for the domain. You can send a test message that matches the specific example you want to test, and then review the following file to see how it was counted:
    /var/cpanel/email_send_limits/track/$domain
    Thank you.
    0
  • leehuynhfvn
    Dear Cpanel Admin, I have a question for this function: If I set outgoing mail be relayed via another email relay system. Could this function still handle the spam domain and block the domain when reach the threshold? Thank you so much
    0
  • cPRex Jurassic Moderator
    @leehuynhfvn - it depends how the external system is configured. If you put a custom router in the POSTMAILCOUNT section of exim.conf advanced editor then it will work. If the customizations are put in the PREROUTER or ROUTERSTART section, limits will not work since mail limits are processed after ROUTERSTART, so the email never reaches the section that counts/enforces the limits. The instructions are to place the remoteserver_route in the "ROUTERSTART" section. This places the remote server route before all the other routes, which means the messages will be relayed before any attempt is made to check or enforce email permissions. The remoteserver_route should be placed in the "POSTMAILCOUNT" section. This allows our mail counting code to be invoked before reaching this route. Also, the remoteserver_route needs to include the following line: domains = ! +local_domains This will allow the "message failed" email to be sent back to the account. So while this is possible, you just need to be careful with how that is configured. It would be best to work with an admin familiar with the Exim system and routing to ensure everything is configured properly.
    0
  • leehuynhfvn
    @cPRex I had added a custom router in the POSTMAILCOUNT section on "WHM - Exim Configuration Manager". But it seem not work. cPanel only know the outgoing mails is "Accepted" status, then no "failed/deffered" were detected. There for the rules in Tweak Setting: "Maximum percentage of failed or deferred messages a domain may send per hour [?]" 35% "Number of failed or deferred messages a domain may send before protections can be triggered [?]" 7 Those two rules will be not in effective. My custom on "Section: POSTMAILCOUNT" is: smart_route: driver = manualroute domains = ! +local_domains ignore_target_hosts = 127.0.0.0/8 transport = dkim_remote_smtp route_list = * 1.2.3.4:25 no_more Just only this custom setting, The relay is working very well. but the the two limit rules will not work.
    0
  • cPRex Jurassic Moderator
    Could you submit a ticket to our team so we can do some additional testing with this?
    0

Please sign in to leave a comment.