{"id":72,"date":"2012-02-17T18:49:00","date_gmt":"2012-02-17T18:49:00","guid":{"rendered":"http:\/\/pheonixsolutions.com\/?p=72"},"modified":"2026-07-06T13:50:28","modified_gmt":"2026-07-06T08:20:28","slug":"cpanel-max-emails-per-hour-max-emails-per-domain","status":"publish","type":"post","link":"https:\/\/pheonixsolutions.com\/blog\/cpanel-max-emails-per-hour-max-emails-per-domain\/","title":{"rendered":"How to Configure the Maximum Emails Per Hour in cPanel"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\">Introduction<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">cPanel allows administrators to limit the number of emails that can be sent per hour to help prevent spam, reduce the risk of compromised accounts sending bulk emails, and maintain the server&#8217;s email reputation. These limits can be configured at the server level or for individual domains.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Prerequisites<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Root access to the server or a user with sudo privileges.<\/li>\n\n\n\n<li>SSH access to the cPanel server.<\/li>\n\n\n\n<li>Basic knowledge of Linux command-line operations.<\/li>\n\n\n\n<li>cPanel\/WHM installed on the server.<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">Procedure<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">Server-Wide Email Limit<\/h3>\n\n\n\n<h4 class=\"wp-block-heading\">Step 1: Log in to the server via SSH.<\/h4>\n\n\n\n<p class=\"wp-block-paragraph\">Connect to the server as the root user or a sudo-privileged user.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Step 2: Configure the server-wide email limit.<\/h4>\n\n\n\n<p class=\"wp-block-paragraph\">Edit the following file:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">\/var\/cpanel\/maxemailsperhour\n<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Enter the maximum number of emails that all accounts are allowed to send per hour. For example:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">500\n<\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">Domain-Level Email Limit<\/h3>\n\n\n\n<h4 class=\"wp-block-heading\">Step 3: Configure the email limit for a specific domain.<\/h4>\n\n\n\n<p class=\"wp-block-paragraph\">Navigate to the following directory:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">\/var\/cpanel\/maxemailsperdomain\n<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Create a file with the same name as the domain. For example, for <code>example.com<\/code>:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">touch \/var\/cpanel\/maxemailsperdomain\/example.com\n<\/pre>\n\n\n\n<h4 class=\"wp-block-heading\">Step 4: Set the email limit.<\/h4>\n\n\n\n<p class=\"wp-block-paragraph\">Edit the domain file and specify the maximum number of emails the domain can send per hour.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Example:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">200\n<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">This limits <strong>example.com<\/strong> to sending <strong>200 emails per hour<\/strong>.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Step 5: Apply the changes.<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">After updating the configuration files, rebuild the email configuration by running:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">\/scripts\/build_maxemails_config\n<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">This command applies the updated email limits.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Conclusion<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Configuring email sending limits in cPanel helps protect the server from spam, prevents abuse by compromised accounts, and improves email deliverability. You can configure limits globally for the entire server or individually for each domain. After making any changes, always run the <code>build_maxemails_config<\/code> script to ensure the new settings are applied successfully.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Introduction cPanel allows administrators to limit the number of emails that can be sent per hour to help prevent spam, [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"jetpack_post_was_ever_published":false},"categories":[1019],"tags":[],"class_list":["post-72","post","type-post","status-publish","format-standard","hentry","category-cloud-aws","psol-cat-cloud-aws"],"jetpack_publicize_connections":[],"jetpack_shortlink":"https:\/\/wp.me\/phn2x7-1a","jetpack_sharing_enabled":true,"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/posts\/72","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/comments?post=72"}],"version-history":[{"count":1,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/posts\/72\/revisions"}],"predecessor-version":[{"id":10493,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/posts\/72\/revisions\/10493"}],"wp:attachment":[{"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/media?parent=72"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/categories?post=72"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/tags?post=72"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}