how to limit emails per hour.

To limit the amount of spam that can be sent through an account, you can limit the number of emails that customers can send per hour.   That way, if a spammer gets into an account, the most they can send out is X amount of email per hour, which should limit the amount of spam that gets out before you find the spammer.

 

To do this, login to the WHM, click on Tweak Settings, then search for “Max hourly emails”.  The value that you enter in this settings is applied to ALL domains on the server.

 

You can override this on a per-domain basis

  • Login to WHM
  • Click on Modify Account
  • Search for the domain in question, and edit their account
  • Set “Maximum Hourly Email by Domain Relayed” To whatever value you want.

This will be applied to ALL domains under that account.  So any addon domains, parked domains, or sub domains would use this value.

 

If you want to set the limit to just one domain on an account, for example, you want to set a limit on an addon domain, but not the master domain, or any other addon, park, or sub domains on the account, then do the following.

  • SSH to the server
  • Edit the file /var/cpanel/users/$account file
  • Add or Edit a line like this
    • MAX_EMAIL_PER_HOUR-example.com=200
      • Replace example.com with the domain name in question, and 200 with the number of emails per hour you wish to allow.
  • Save the file and run /usr/local/cpanel/scripts/updateuserdomains

Was this answer helpful?

 Print this Article