As we all aware that cPanel allows you to set Max hourly Mails to be sent from each domain from WHM >> Main >> Server Configuration >> Tweak Settings >> Mail option.
It’s a nice feature provided by cPanel to limit the number of mails to be sent from each domain in a hour’s time, however but in some circumstances you need to allow one or more domains on your server to send more then the default limit specified in the Max hourly Mails option.
Please note that the Max hourly Mails limit is for per domain and not per account. Subdomains are separate domains if they have their own email accounts.
But unfortunately there is no direct option available in cPanel/WHM to increase the Max hourly Mails limit for a single domain on the server while keeping the default Max hourly Mails limit for all domains.
So, if you wish to customize the Max hourly Mails limit for a single domain then you can do that from shell by following the below simple steps ::
Firstly to check the defalt limit ::
[email protected][#]cat /var/cpanel/maxemailsperhour
Here 200 means that all domains on the server can send only 200 emails in an hour
Now to customize the Max hourly Mails for a single domain open the cPanel user file for the domain owner
And the add the below entries ::
Here, you would need to replace cPanelusername with the actual cPanel username for the path noted, # with the number of emails per hour, and domain.com with the actaul domain name. The first entry MAX_EMAILS_PER_HOUR entry would cover the entire account, while the second entry would only cover the domain.
For example ::
[email protected][#] vi /var/cpanel/users/test
After that to ensure the changes to reflect run the below commands ::
Note :: Make sure that you are not setting the number of emails for your domains to a very high value as it may result in blacklist of you mail server IP address to some of the email service providers like Yahoo, Hotmail, AOL etc…