How to set email limits in cPanel / WHM
cPanel/WHM has the ability to set server-wide how many emails each domain name can send. This can help protect your server from misuse and also protect your IP from becoming blacklisted in the many spam databases around the world. We advise you set this limit to no more than 100 emails per hour.
Setting hourly email limits
To set hourly limits server wide you need to have root access. Accordingly, only users with a VPS server or dedicated server can perform this.
- Login to WHM and select “Tweak Settings”
- In the search box on the right-hand side type “max hourly”
- Find the field which says “max hourly emails” and places the value in the field. We recommend 100
- Click save at the bottom
No domain on the server will now be able to send more than 100 emails in any given hour. If you wanted to set this limit per domain and not server wide you can use the “modify account” page inside WHM to set the limit.
You can also set a limit for sub-domains and addon domain names. Again you need root access to complete this. Login via ssh and in the console paste the below lines replacing the /username section for the cPanel username the domain is under.
add the following line to the file replacing “100” with the hourly email limit you wish the domain name to have.
Finally, save that file and run the
/usr/local/cpanel/scripts/updateuserdomains script. This script constructs the individual threshold files that Exim uses to determine whether the account has reached its maximum email limit
How was this article?
You might also like
More from cPanel
Free SSL Certificates from places like cPanel or Let's Encrypt are great. When Let's Encrypt first introduces free SSL Certificates …
SWAP is a memory type that Linux NVMe VPS Servers use to process requests. Memory will be held in SWAP …
The Error: last request failed: [AUTH] Authentication failed error can be caused by a range of things. It could be …