From Spam Prevention to Server Efficiency: Mastering Email Sending Limits on cPanel

Email communication plays a vital role in today's digital landscape, but it's crucial to strike a balance between functionality and security. To prevent spammers and abusers from sending bulk emails and protect server resources, setting a maximum emails per hour limit is essential.

In this blog post, we'll explore how to manage email sending limits on a cPanel server, whether it's adjusting server-wide settings or configuring limits for individual cPanel accounts. By implementing these measures, you can maintain a secure and efficient email environment.

I. Setting Maximum Email Limit for All Domains on a cPanel Server (Server-Wide Setting)

Controlling the maximum email limit per hour for all cPanel accounts on a server is a proactive approach to prevent abuse.

Here's how you can configure this server-wide setting:

  1. Login to WHM (Webhost Manager) using your server root password.
  2. Search for "Tweak Settings" in the WHM search box.
  3. Click on "Tweak Settings" under "Server Configuration."
  4. In the "Mail" tab, locate the "Max hourly emails per domain" field.
  5. Enter the desired maximum hourly email limit for all domains.
  6. Save the tweak settings to apply the changes.

By implementing this server-wide setting, you ensure that all cPanel accounts adhere to the specified email sending limit, mitigating the risk of spam and abuse.


  • Prevents spammers and abusers from sending bulk emails, preserving server resources and reputation.
  • Maintains a fair usage policy across all cPanel accounts, promoting a stable email environment.
  • Enhances server security by minimizing the risk of email-related abuse or unauthorized activity.


  • May impact legitimate users who require higher email sending volumes. In such cases, consider upgrading to a VPS or dedicated server.

II. Configuring Maximum Email Limit from the Server Backend

For advanced users comfortable with server administration, it's possible to configure the maximum email limit per hour by directly editing the tweak settings file. Follow these steps:

  1. Log into the server via SSH as the root user.
  2. Use a text editor like vi to open the tweak settings file located at "/var/cpanel/cpanel.config."
  3. Locate the "maxemailsperhour" parameter and set it to your desired value.
  4. Save the changes to the file.
  5. Update the tweak settings by running the command: "/usr/local/cpanel/whostmgr/bin/whostmgr2 --updatetweaksettings."

This method provides greater flexibility for customizing the maximum email limit per hour according to specific server requirements.

III. Setting Maximum Email Limit for a Single cPanel Account

In situations where you need to configure email sending limits for individual cPanel accounts, follow these steps:

  1. Login to WHM using your server root login details.
  2. Under "Account Functions," click on "Modify an Account."
  3. Select the relevant domain from the dropdown menu and click on "Modify."
  4. Enter the desired value for "Maximum Hourly Email by Domain Relayed."
  5. Save the changes to apply the new hourly email limit.

By setting limits at the cPanel account level, you can prevent excessive email sending from specific accounts, helping combat spamming issues effectively.


Efficiently managing email sending limits is crucial for maintaining a secure and reliable email environment on a cPanel server. By implementing server-wide or account-specific maximum email limits, you can prevent abuse, protect server resources, and ensure fair usage among cPanel accounts.

Whether it's adjusting settings through WHM or editing the server backend file, these methods provide flexibility and control over email sending limits.

By striking the right balance between functionality and security, you can foster a productive and safe email experience for users.