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

How Do I Enable Inbound Spam Filtering?

To manage your domain's inbound spam filtering settings you will need to navigate to the Domain Settings page for your domain. 

Inside the Mailgun Control Panel (options displayed down the left-hand side on a dark column), use the following instructions:

  • Click on Sending on the left-hand side of your Mailgun dashboard.
  • On the following page click on your specific domain and click on Domain Settings on the far right-hand side.
  • Under Domain Settings the option Inbound spam filter will be available.
  • To change these settings, click on Edit
  • Choose your preferred Spam filtering option and click Save Spam Settings.

We provide 3 different methods for processing inbound spam:

  1. No filtering (this is the default setting)
  2. Block detected spam (this is recommended)
  3. Deliver spam, but add X-Mailgun-SFlag and X-Mailgun-SScore headers. 

If you are using our Routes feature to handle inbound email requests, it is highly recommended that you select option 2Block detected spam.

Inbound messages that are being routed to an email address or POSTed to a URL will pass through our outbound spam filters, so If you choose not to enable inbound spam filtering, spam messages that are sent to you may get caught in our outbound spam filter, resulting in your domain being disabled. This is why we recommend option 2.

Note: You need to add Mailgun MX records for inbound messages. 


If any questions arise, just reach out to our Support team via the Support option in your Mailgun control panel!