---
source: Deliverability Recovery
canonical_url: https://deliverabilityrecovery.com/mailgun-deliverability-recovery/
format: text/markdown (identical canonical HTML facts)
description: Fix Mailgun emails landing in Gmail spam or bouncing with Outlook 550 5.7.1. Audit sending subdomains, tracking CNAMEs, shared vs. dedicated IP pools, and webhook suppressions.
mcp_server: https://deliverabilityrecovery.com/mcp
---
<!-- Title: Mailgun Deliverability Recovery: Fix Shared IP Blocks, Subdomains & Spam --># Mailgun emails bouncing at Outlook or landing in Gmail spam? Fix your setup.

Mailgun powers thousands of SaaS apps and custom notification pipelines, but misconfigured sending domains, HTTP click-tracking CNAMEs, noisy entry-tier shared IPs, and unhandled suppression webhooks routinely wreck delivery. We audit and repair the entire Mailgun pipeline.

     Mailgun    Sending Subdomains    Tracking CNAMEs    Suppression Webhooks    SNDS
Book an Audit ($1,500)

Run Free DNS Check
                     Summary

Most Mailgun deliverability drops trace back to four issues: sending on the root domain instead of a dedicated subdomain (like mg. or mail.), leaving Mailgun’s click-tracking CNAME on plain HTTP or a flagged domain, inheriting Microsoft 550 5.7.1 blocks on noisy shared IP pools, or ignoring permanent-fail/complaint webhooks in your backend.

## What usually breaks and how we fix it

Most guides stop at "publish a DMARC record." Real recoveries come from tracing how your DNS records, ESP headers, and recipient filters interact on live sends.

        MAILGUN / SHARED IP BLOCK

### Microsoft 550 5.7.1 rejections on lower-tier shared Mailgun IPs

      Symptom:    Gmail delivers cleanly, while Outlook.com and corporate Exchange servers reject messages from Mailgun IPs.       Cause:    Noisy shared IP neighbors trigger Microsoft SNDS or Spamhaus IP blocks.       Fix:    Prove IP vs. domain blame via Received headers, request clean pool assignment, move to warmed dedicated IP (if >100k/mo), or split critical transactional mail to Postmark.          MAILGUN / TRACKING & HTTPS

### Unsecured HTTP tracking CNAMEs or mismatched link domains

      Symptom:    Corporate filters and Gmail flag messages with tracked links while plain links pass.       Cause:    Mailgun’s email. tracking CNAME defaults to HTTP unless TLS is explicitly enabled, or points to an unaligned domain.       Fix:    Enable HTTPS tracking on an aligned subdomain CNAME and disable click/open tracking entirely on sensitive password-reset/OTP streams.          MAILGUN / ROOT DOMAIN MIX

### Using apex domain inside Mailgun alongside corporate Workspace/M365

      Symptom:    MX conflict or root SPF lookup overflow breaks both corporate mail and app alerts.       Cause:    Mailgun officially recommends a dedicated sending subdomain (e.g., mail.company.com) to avoid root MX and SPF collisions.       Fix:    Migrate Mailgun onto a clean aligned subdomain with 2048-bit DKIM and clean Return-Path.          MAILGUN / WEBHOOK GAPS

### Backend keeps retrying permanently failed or complaining addresses

      Symptom:    High drop rates and declining domain reputation in Google Postmaster Tools.       Cause:    Mailgun permanent_fail and complained webhooks are not synced back to your app database and marketing CRM.       Fix:    Wire Mailgun webhook suppression sync across app and marketing platforms.

## Before and after verification

Every change is checked against live DNS lookups, raw headers, and mailbox provider tools before handoff.

| Layer | Broken state | Target state | How we verify |
| --- | --- | --- | --- |
| Sending Subdomain | Apex domain configured directly in Mailgun | Dedicated aligned subdomain (mail.company.com) with 2048-bit DKIM | Raw headers pass aligned SPF, DKIM, and DMARC |
| HTTPS Tracking & OTP Hygiene | HTTP tracking links injected into password resets | HTTPS aligned tracking for marketing; tracking disabled on OTP/resets | Raw MIME inspection confirms clean links & TLS |
| IP & Microsoft SNDS | Shared IP returning Outlook 550 5.7.1 | Clean transactional IP pool or warmed dedicated IP with PTR | Clean Outlook.com & M365 inbox tests |
| Suppression Sync | No cross-platform bounce/complaint sync | Webhook-driven permanent_fail & complained suppression | Hard bounce rate

## Common questions

Straight answers on pricing, timelines, and fit.

### Should click tracking be turned off for Mailgun transactional emails like password resets?

+

Yes. Rewriting password-reset, magic-link, or 2FA URLs through click-tracking redirects hurts security trust, triggers corporate phishing filters, and adds unnecessary latency.

### Why does Mailgun recommend a subdomain instead of our root domain?

+

Using a subdomain like mail.company.com avoids MX conflicts with Google Workspace or Microsoft 365, keeps your apex SPF record under 10 lookups, and isolates app reputation from corporate mail.

### Can you fix Mailgun without changing our backend application code?

+

Most DNS, subdomain, 2048-bit DKIM, HTTPS tracking, and IP-pool fixes happen directly in DNS and the Mailgun dashboard. If webhook suppression code changes are needed, we deliver an exact developer-ready spec.

## Related recovery guides

      B2B CRM + Transactional

### HubSpot & Postmark Deliverability Recovery

Fix HubSpot campaigns and Postmark or SendGrid product emails hitting Gmail spam due to shared root domains, SPF lookup overflow, or unaligned DKIM.

     E-Commerce

### Klaviyo Gmail Spam Recovery

Fix Shopify and Klaviyo brands hit by Gmail and Yahoo bulk rules: branded sending domains, DMARC alignment, spam rates under 0.1%, and clean sunsetting segments.

     SaaS Product Mail

### Transactional Email Deliverability

Get password resets, login codes, and invoices back into Primary by separating product traffic from marketing blasts, fixing Custom MAIL FROM, and wiring bounce webhooks.

## Start with a 24-hour Deliverability Audit.

We inspect your recursive SPF tree, raw sent headers, ESP settings, and Postmaster data and deliver exact copy-paste DNS/ESP fixes within 24 hours of read-only access (free if we miss the clock). Hire us for implementation within 30 days and the full $1,500 credits toward the project.

Prefer email? Send your domain and what broke directly to [audit@deliverabilityrecovery.com](mailto:audit@deliverabilityrecovery.com).

       Book 24-Hour Audit ($1,500)     Run Free DNS Check

---
Source: Deliverability Recovery (https://deliverabilityrecovery.com/mailgun-deliverability-recovery/)
