BuycPanel Blog

BuycPanel Blog

Latest news and updates

WHM’s Mail Limiting Features to Avoid Unwanted Spam

Posted by Alex on 13 04 2017.

Did you know that you can put limitations on the mails your WHM account sends? Through this feature, you can avoid people who receive your emails blacklisting you and think you just send out spam.

You can do this through WHM’s “Tweak Settings” interface, under the “Mail” option. To find this feature, just head to “Home,” then “Server Configuration”,” and finally, “Tweak Settings.” Here, you will find five different options for limiting outgoing mail your account delivers. All the changes to the limits you set will apply to all the domains on your server. You should utilize these options so that you can set limits on consumption of bandwidth as well as prevent spam.

The Different Options Applying to Total Emails Sent/Hour from a Domain

These are the choices you have when it comes to limiting the emails sent from your domain every hour:

  1. “Max hourly emails per domain”

This option will allow you to limit the total number of email messages that a specific domain can send every hour. It has the following attributes:

  1. Entry in the /var/cpanel/cpanel.config file: maxemailsperhour
  2. Default value: No value/Unlimited
  3. Minimum value: 1
  4. Maximum value: No value/Unlimited
  5. Permissions: When a user has any of the following permissions, they can gain access to the following:
  • Reseller account. Enabling the option “Allow Creation of Packages with non-default Email Limits” under the “Edit Reseller Nameservers and Privileges” interface will give the user a reseller account.
  • Privileges of a root-level user.

When you want to specify the maximum number of emails for an account package the server allows for, go the “Edit a Package” interface in your WHM account.

For individual panel accounts, you can do the same thing, but conduct the task under the “Modify an Account” interface of your WHM account.

  1. “Count mailman deliveries towards a domain’s Max hourly emails”

This will allow you to enforce Mailman to let you know whether or not to count the messages its mailing lists send against the “Max hourly emails per domain limit” of an account.

This option possesses the following attributes:

  1. Entry in the /var/cpanel/cpanel.config file: email_send_limits_count_mailman
  2. Default selection: Off
  3. Permissions: Only users possessing root-level permissions have the ability to access “Permissions.”
  4. “The percentage of email messages (above the account’s hourly maximum) to queue and retry for delivery”

As for this option, it allows you to specify the method of handling the mail server will enforce when it comes to outgoing messages for a specific domain reaching or exceeding the “Max hourly emails per domain” value you have set. By default, the server will attempt to send out the emails on queue within the next hour.

In the event you no longer want to send these queued emails, you have the option to remove them. Just key in 100 in the option “The percentage of email messages” (above the account’s hourly maximum).

In case you want to proceed sending the queued messages after the domain goes beyond the set “Max hourly emails per domain” value, place a value higher than 100 in the “The percentage of email messages” option.