{"id":464,"date":"2021-07-23T12:30:26","date_gmt":"2021-07-23T12:30:26","guid":{"rendered":"https:\/\/ssdsunucum.com\/blog\/how-to-set-email-send-limits\/"},"modified":"2021-07-23T12:30:26","modified_gmt":"2021-07-23T12:30:26","slug":"how-to-set-email-send-limits","status":"publish","type":"post","link":"https:\/\/ssdsunucum.com\/blog\/how-to-set-email-send-limits\/","title":{"rendered":"How to Set Email Send Limits"},"content":{"rendered":"<\/p>\n<div class=\"col-md-9\">\n<div class=\"flex-column flex-md-row article-header\"><\/div>\n<hr>\n<h2 id=\"overview\">Overview<\/h2>\n<p>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.<\/p>\n<div class=\"callout callout-warning\">\n<div class=\"callout-heading\">Important:<\/div>\n<div class=\"callout-content\">\n        After the system reaches a limit, it does <strong>not<\/strong> block additional messages at SMTP time. Instead, the system accepts and then discards the messages.\n    <\/div>\n<\/div>\n<h2 id=\"set-the-default-hourly-limit-for-all-domains\">Set the default hourly limit for all domains<\/h2>\n<p>To set the default hourly email limit for all of your server\u2019s domains, enter a value for the <em>Max hourly emails per domain<\/em> setting in the <em>Mail<\/em> section of WHM\u2019s <em>Tweak Settings<\/em> interface (<em>WHM &gt;&gt; Home &gt;&gt; Server Configuration &gt;&gt; Tweak Settings<\/em>).<\/p>\n<p>This value defines the default limit for all of the domains on your sever, except for domains for which you manually set a different limit.<\/p>\n<div class=\"callout callout-warning\">\n<div class=\"callout-heading\">Important:<\/div>\n<div class=\"callout-content\">\n<ul>\n<li>You <strong>cannot<\/strong> use the <em>Max hourly emails per domain<\/em> setting to disable email for an account or domain.<\/li>\n<li>The system <strong>only<\/strong> enforces email send limits on remote email deliveries.<\/li>\n<\/ul><\/div>\n<\/div>\n<h3 id=\"set-an-hourly-limit-for-the-domains-of-an-account\">Set an hourly limit for the domains of an account<\/h3>\n<p>To limit the number of emails per hour that an account\u2019s domains can send, perform the following steps:<\/p>\n<ol>\n<li>\n<p>Navigate to WHM\u2019s <em>Modify an Account<\/em> interface (<em>WHM &gt;&gt; Home  &gt;&gt; Account Functions &gt;&gt; Modify an Account<\/em>).<\/p>\n<\/li>\n<li>\n<p>Specify a value for the <em>Hourly Email by Domain Relayed configuration<\/em> setting.<\/p>\n<\/li>\n<li>\n<p>Click <em>Save<\/em>.<\/p>\n<\/li>\n<\/ol>\n<div class=\"callout callout-info\">\n<div class=\"callout-heading\">Note:<\/div>\n<div class=\"callout-content\">\n        This option sets the email limits for <strong>all<\/strong> of the subdomains, addon domains, and parked domains (aliases) for an account\u2019s main domain. However, the system counts the mail for each domain, subdomain, addon domain, and parked domain separately. When you enter a new limit, the system <strong>only<\/strong> applies the new value to the main domain and any domains without individually-defined values.\n    <\/div>\n<\/div>\n<h2 id=\"set-an-hourly-limit-for-an-individual-domain\">Set an hourly limit for an individual domain<\/h2>\n<p>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.<\/p>\n<p>To set a limit for an individual domain, perform the following steps via the command line as the <code>root<\/code> user:<\/p>\n<ol>\n<li>\n<p>With a text editor, open the <code>\/var\/cpanel\/users\/username<\/code> file, where <code>username<\/code> represents the account that owns the domain.<\/p>\n<\/li>\n<li>\n<p>Add a line that contains the following text:<\/p>\n<div class=\"highlight\">\n<pre style=\"color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4\"><code class=\"language-perl\" data-lang=\"perl\">MAX_EMAIL_PER_HOUR<span style=\"color:#f92672\">-<\/span><\/code><\/pre>\n<\/div>\n<\/li>\n<li>\n<p>To that line, append the domain name, an equals sign (<code>=<\/code>), 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 <code>example.com<\/code>, enter the following line: <\/p>\n<div class=\"highlight\">\n<pre style=\"color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4\"><code class=\"language-perl\" data-lang=\"perl\">MAX_EMAIL_PER_HOUR<span style=\"color:#f92672\">-<\/span>example<span style=\"color:#f92672\">.<\/span>com<span style=\"color:#f92672\">=<\/span><span style=\"color:#ae81ff\">500<\/span><\/code><\/pre>\n<\/div>\n<\/li>\n<li>\n<p>Save the changes to the <code>\/var\/cpanel\/users\/username<\/code> file.<\/p>\n<\/li>\n<li>\n<p>Run the <code>\/usr\/local\/cpanel\/scripts\/updateuserdomains<\/code> script. This script constructs the individual threshold files that Exim uses to determine whether the account has reached its maximum email limit.<\/p>\n<\/li>\n<\/ol>\n<div class=\"callout callout-info\">\n<div class=\"callout-heading\">Note:<\/div>\n<div class=\"callout-content\">\n        The system assigns the value of the <code>MAX_EMAIL_PER_HOUR<\/code> setting in the <code>\/etc\/email_send_limits<\/code> file to any domain <strong>without<\/strong> a specific entry in the <code>\/var\/cpanel\/users\/username<\/code> file. If the <code>\/etc\/email_send_limits<\/code> file does <strong>not<\/strong> exist, the system assigns the default value to the domain.\n    <\/div>\n<\/div><\/div>\n","protected":false},"excerpt":{"rendered":"<p>Overview 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. Important: After the system reaches a limit, it does not block additional messages at SMTP time. Instead, &hellip;<\/p>\n","protected":false},"author":1,"featured_media":465,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[],"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/ssdsunucum.com\/blog\/wp-json\/wp\/v2\/posts\/464"}],"collection":[{"href":"https:\/\/ssdsunucum.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ssdsunucum.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ssdsunucum.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ssdsunucum.com\/blog\/wp-json\/wp\/v2\/comments?post=464"}],"version-history":[{"count":0,"href":"https:\/\/ssdsunucum.com\/blog\/wp-json\/wp\/v2\/posts\/464\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/ssdsunucum.com\/blog\/wp-json\/wp\/v2\/media\/465"}],"wp:attachment":[{"href":"https:\/\/ssdsunucum.com\/blog\/wp-json\/wp\/v2\/media?parent=464"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ssdsunucum.com\/blog\/wp-json\/wp\/v2\/categories?post=464"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ssdsunucum.com\/blog\/wp-json\/wp\/v2\/tags?post=464"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}