We're experiencing difficulty. Our engineers are on it. Please check status.mailgun.com for real-time updates.

Setting The Account's Custom Message Limit

Table Of Contents
Quick Overview
Understand The Context
Implement The Solution
Got Questions?

Quick Overview

You can set a custom message limit for your entire account within the Settings of the Mailgun Control Panel. When the custom message limit is reached, the account (and all domains present on the account) will be disabled until you choose to re-enable the account.

Note: it is not possible within Mailgun to configure custom message limits for individual domains.

Understanding The Context

Setting The Scene

Most of us probably are at least a little concerned about out-of-control sending - such as due to a coding loop or a malicious actor attempting to use a contact form to send as much spam as possible before being noticed - so it's only natural to desire some way to limit such possibilities.  

The good news is that Mailgun offers a custom message limit that is configured at the account-level.  Once configured, if the total messages sent by all domains on the account reach the specified limit, the account will be disabled.  While disabled, you can review logs and statistics to determine if reaching the limit was expected or unexpected.  In either case, you maintain control over the account, which means you can re-enable it when ready.  However, keep in mind that if you do not enable the account before the start of a new calendar month, the account will automatically re-enable.

When an account is disabled for reaching the custom message limit, the primary account owner will receive an email alert from Mailgun informing them of the disablement.  Moreover, the primary account owner is also notified when 50% and 75% of the limit have been reached.

Discerning The Nuance

Mailgun considers the date the custom message limit is set as the first day of the "counting" period, which will last for 30 days each. This means that the limit's counter does not begin tallying on the 1st day of the month.  It also means the limit's counter begins at 0 rather than at the total amount of messages sent thus far in a given month.

As an example, let's say your account has sent 5,000 messages as of the middle of the month, and you now have configured a custom message limit of 5,000.  During the next 30 days, if the account sends another 5,000 messages, the account will reach the custom message limit and be disabled.  The initial 5,000 messages the account has sent during the first half of the month are not figured into the custom message limit's total count; it begins at 0.

Finally, as mentioned above, the custom message limit is an account-level feature; as such, it cannot be configured for domains.

Implementing The Solution

To configure the custom message limit, please perform the following once logged into the Mailgun Control Panel:

  1. Click the Settings option found in the left-hand navigation pane.
  2. Click the Details suboption found directly below.
  3. On the resulting page, you will see various groups, or sections, of settings. Please locate the section called Account settings and the field called Custom message limit
  4. Click the Edit button.
  5. Enter the numerical value desired for the limit.
  6. Click the Save button.

Got Questions?

Mailgun by Pathwire has answers! If you still have any concerns or questions, please send us a Support ticket through the Support page within your Mailgun Control Panel.  Our Support Team will be happy to assist! 

Powered by Zendesk