top of page
Search
Writer's pictureHTS Hosting

Setting Email Send Limits

Every user is allowed by WHM to specify the maximum number of emails, which each domain on his/her server can send in every hour. This proves to be helpful in limiting spam. It also ensures better regulation of the bandwidth, which the domains on a server use. Before proceeding further, it should be mentioned that post reaching a limit, the system doesn’t block the additional messages at SMTP (Simple Mail Transfer Protocol) time. What the system does at this juncture is, it accepts and subsequently discards the messages.

Now, let us elaborate on how to set email send limits.


Setting the Default Hourly Limit for All Domains


You need to enter a value for the Max hourly emails per domain setting, in order to set the default hourly email limit with regard to all the domains of your server. This value has to be entered in the Mail section of the Tweak Settings interface of WHM.


WHM >> Home >> Server Configuration >> Tweak Settings.


The value that has been referred to here, specifies the default limit for all the domains on a server. An exception are those domains for which different limits are set manually.


An important point to mention is that you can’t use the Max hourly emails per domain setting for disabling email for an account or domain. Moreover, it is only remote email deliveries on which the system enforces email send limits.


Setting an Hourly Limit for the Domains of an Account


By using this option, you can set the email limits for all the subdomains, addon domains, as well as parked domains (aliases) for the main domain of an account. However, the mails for each domain, addon domain, subdomain, and parked domain are counted separately by the system. When a new limit is entered, the new value is applied by the system to only the main domain, and to those domains that do not have individually-defined values.


You need to carry out the below-mentioned steps for limiting the number of emails/hour that the domains of an account can send.


  • Navigate to the Modify an Account interface of WHM.


WHM >> Home >> Account Functions >> Modify an Account.


  • A certain value needs to be specified for the configuration setting, Hourly Email by Domain Relayed.


  • Click Save.


Setting an Hourly Limit for an Individual Domain


Do you wish that an individual domain should have a different hourly mail limit than the main domain? It is possible to configure a limit for each domain.


In order to set a limit for an individual domain, you need to carry out the below-mentioned steps through the command line. This needs to be done as the root user.


  • Open the /var/cpanel/users/username file with the help of a text editor. In it, the account which owns the domain, is represented by the term, “username”.


  • Next, a line needs to be added, which contains the following text.


MAX_EMAIL_PER_HOUR-


  • The following need to be appended to that line-


  • The domain name


  • An equals sign (=)


  • The number of email messages to allow the domain to send per hour.


  • The changes need to be saved to the /var/cpanel/users/username file.


  • Run the script, /usr/local/cpanel/scripts/updateuserdomains. Through this script the individual threshold files are created, which are used by Exim for determining whether an account has reached its maximum email limit.


It has to be specified here that the system assigns the value of the MAX_EMAIL_PER_HOUR setting in the /etc/email_send_limits file to those domains that do not have a specific entry in the /var/cpanel/users/username file. The system assigns the default value to the domain, when the /etc/email_send_limits file doesn’t exist.


This is how the email send limits are set.


Before concluding, let us touch upon the fact that email accounts are included in all the hosting plans provided by HTS Hosting. We provide various highly efficient web hosting plans for shared, dedicated, VPS, reseller, cloud, and WordPress hosting services. Our top-notch quality of service, meticulously designed hosting plans, and budget-friendly prices have ensured the global popularity of our services, and maintained our company’s reputation as the best web hosting company in India as well as all over the world.


3 views0 comments

Recent Posts

See All

Comments


Post: Blog2_Post
bottom of page