WHM allows you to specify the maximum number of emails that each domain on your server can send per hour. This allows you to limit spam and better regulate bandwidth that the domains on your server use.
To set the default hourly email limit for all of your server's domains, enter a value for the Max hourly emails per domain setting in the Mail section of WHM's Tweak Settings interface (Home >> Server Configuration >> Tweak Settings).
This value is the default limit for all of the domains on your sever, except for domains for which you manually set a different limit.
Max hourly emails setting in the Tweak Settings interface.
To limit the number of emails per hour that an account's domains can send, perform the following steps:
This option sets the email limit for all of the subdomains, addon domains, and parked domains (aliases) that are associated with an account's main domain. When you enter a new limit with the Modify an Account feature, the system only applies the new value to the main domain and any domains without individually-defined values.
If you wish for an individual domain to have a different hourly mail limit from the main domain, you can also configure a limit for each domain.
To set a limit for an individual domain, perform the following steps via the command line as the
With a text editor, open the
/var/cpanel/users/username file, where
username represents the account that owns the domain.
Add a line that contains the following text:
To that line, append the domain name, an equals sign (=), and the number of email messages to allow the domain to send per hour. For example, if the domain name to set a limit of 500 emails for the domain
example.com, enter the following line:
/usr/local/cpanel/scripts/updateuserdomainsscript. This script constructs the individual threshold files that Exim uses to determine whether the account has reached its maximum email limit.
The system assigns the value of the
MAX_EMAIL_PER_HOUR setting in the
/etc/email_send_limits file to any domain without a specific entry in the
/var/cpanel/users/ file. If the
/etc/email_send_limits file does not exist, the system assigns the default entry on the Tweak Settings interface to the domain.