Deliverability

Apollo + Mailgun: "domain not on a Mailgun account" and IMAP

Apollo shows a "domain not being on a Mailgun account" error and asks for an IMAP host because Mailgun is a transactional sending service with no mailboxes. Verify the domain in Mailgun if you send by API; for sequences that need replies, connect a Gmail, Outlook or SMTP+IMAP mailbox instead.

Sohail HussainSohail Hussain8 min read

Short answer

  • The "domain not on a Mailgun account" error means the domain isn't added and verified in the Mailgun account that owns the API key you used. Add it, publish the SPF and DKIM TXT records Mailgun shows, and wait for the green check.
  • The IMAP host request can't be fixed, because Mailgun sends mail and has no inbox to read. For Apollo sequences, connect Gmail, Outlook or a mailbox with SMTP and IMAP details instead.

You tried to connect Mailgun to Apollo and hit this:

domain not being on a Mailgun account

Or you tried to add Mailgun as a mailbox and Apollo asked for an IMAP host you don't have. These are two separate problems with two different answers, and only the first one is yours to fix.

Why it happens

The domain error comes from the Mailgun side. Mailgun ties every sending domain to one account. Per its help center, a domain must be added to Mailgun and verified through DNS before you can send from it. If the tool checks with an API key from an account that doesn't have that domain, or the domain exists but isn't verified, you get a "not on the account" style failure. I can't see Apollo's current screens, so I can't tell you which exact check produces the wording. People on a vendor community forum have described the same pairing of problems when linking Mailgun to Apollo.

The IMAP request is a design mismatch. Apollo's mailbox connection for sequences needs to send and to read replies, which is why it asks for IMAP. Mailgun is a transactional sender. It can receive mail for a domain and pass it to a route (forward, store, webhook), but it doesn't give you a mailbox you can log in to. No setting on your side creates an IMAP host for it.

Most common causes of the domain error, in order:

CauseSymptomFix
Domain never addedDomain absent from Mailgun's domain listAdd it under Sending > Domains
Domain not verifiedDomain listed, no green checkPublish the SPF and DKIM TXT records, then check status
Wrong regionDomain exists but the tool can't see itMatch the US or EU region you created it in
Wrong account or keyYou have several Mailgun accounts or teamsUse a key from the account that owns the domain
Sandbox domainSends only to a few recipientsAdd and verify your own domain

Fix the domain error

1. Confirm the domain is on the right account

  1. Log in to the Mailgun Control Panel.
  2. Open Sending > Domains.
  3. Look for the exact domain or subdomain you entered in Apollo. A mismatch such as example.com versus mg.example.com is common.
  4. If it isn't there, add it. Mailgun's own guidance is to use a subdomain such as mail.example.com for better deliverability; its domain verification guide walks through the screens.

2. Verify the domain with DNS

  1. Open the domain in Mailgun and copy the records it shows. Don't reuse records from another provider.
  2. In your DNS host, add the two TXT records, one for SPF and one for DKIM. Mailgun says these two are required to send.
  3. Check the host field. Many DNS panels append your root domain automatically, so entering the full name can create mail.example.com.example.com by accident.
  4. Wait. Mailgun says propagation can take 24 to 48 hours, though it is often faster.
  5. In Mailgun, open Sending > Domain settings > DNS records and click Check status.
  6. A verified domain shows a green check on the Domains page.

3. Merge SPF instead of adding a second record

A hostname can carry only one SPF record. If yours already has one, add Mailgun's include inside it, after v=spf1 and before the final qualifier:

v=spf1 include:_spf.google.com include:mailgun.org ~all

Mailgun's DNS FAQ covers the duplicate-record case and the 10-lookup limit. Our SPF generator can build the merged value, and the SPF lookup count calculator checks you stay under the limit.

Careful with MX records

Mailgun says MX records are only needed if you want to receive mail for the verified domain, and the CNAME is only for tracking. Don't point your main domain's MX at Mailgun if it already receives mail through Gmail or Microsoft 365. Use a subdomain.

4. Check region, account and key

  1. In Mailgun, note whether the domain was created in the US or EU region.
  2. If you have more than one Mailgun account or team, confirm which one holds the domain.
  3. Generate the API key or SMTP credential from that same account and re-enter it.
  4. If you're still on a sandboxXXXX.mailgun.org domain, stop. Sandbox domains are system-generated test domains and aren't meant for outreach.

Why the IMAP host can't be fixed

Typing smtp.mailgun.org into an IMAP field fails because that is an SMTP submission host, not a mailbox server. Inbound routes don't change this. Even if some other field accepted your credentials, a sending-only account gives a sequence tool no way to see replies, so it couldn't stop follow-ups when someone answers.

So the question isn't how to make Mailgun look like a mailbox. It's which mailbox to give the sequence tool.

What to connect instead

GoalConnectNotes
Cold sequences with reply detectionGmail, Google Workspace, Outlook or Microsoft 365Usually connected by OAuth
Same, on another mail hostAny mailbox with SMTP and IMAP detailsTake hosts, ports and passwords from your mail host's help page
Your app's system emailMailgun by API or SMTP with a verified domainKeep it out of the sequence tool

If you pick SMTP plus IMAP, SMTP and IMAP can use different hosts, ports and sometimes credentials, so fill in each separately. Confirm IMAP is switched on in the mailbox settings, and use an app-specific password if the provider requires one.

Before you send cold mail from any new mailbox, make sure SPF, DKIM and DMARC pass for that domain. I'd also keep Mailgun system mail and outreach mailboxes on separate subdomains, so a complaint problem on one doesn't damage the other.

Tell the two errors apart

If the message names a domain or account, work in the Mailgun dashboard. If the form asks for an IMAP host and you only have Mailgun, no fix exists on that route; switch to a mailbox.

Checklist before you try again

  • The domain appears in the Mailgun account that issued your key.
  • The SPF and DKIM TXT records are published and Mailgun shows a green check.
  • There is exactly one SPF record on that hostname.
  • The region (US or EU) matches where the domain was created.
  • You aren't using a sandbox domain.
  • For sequences, you're connecting a real mailbox, not Mailgun credentials.

If nothing works

Contact Mailgun support if the domain shows verified but the error persists; they can confirm which account owns it. Contact Apollo support if you need to know exactly what its connection form accepts. Include the exact error text, the domain, the region, the time of the attempt and what you've already checked.

Subject: "Domain not on a Mailgun account" error when connecting Mailgun

Hi,

I'm connecting Mailgun for sending and get this message:
"domain not being on a Mailgun account"

Domain: mail.example.com
Mailgun region: US
Time of last attempt: 2026-11-30 14:05 UTC
What I've checked: the domain is listed under Sending > Domains,
SPF and DKIM show as verified, and the API key comes from the
same account.

Can you confirm which account owns this domain and whether the
key I'm using has access to it?

Thanks

Where Mailneo fits

Mailneo can't fix the Mailgun domain error; that lives in your Mailgun account and DNS. It covers the mailbox half: you can connect Gmail, Google Workspace, Outlook, Microsoft 365 or SMTP accounts (with IMAP server auto-discovery), then run multi-step sequences that stop when a contact replies. Mailgun appears in Mailneo's supported provider list, but that is a separate setup from the Apollo error here. Steps are in connecting email accounts.

Common questions

Can I use Mailgun for cold outreach sequences at all?

Not as the mailbox. Mailgun can send, but it has no inbox for a sequence tool to read replies from. Use a real mailbox for the sequence and keep Mailgun for system mail.

Does a verified Mailgun domain fix the IMAP prompt?

No. Verification only proves you own the domain and authorizes Mailgun to send for it. It doesn't create a mailbox.

Why does my domain show as unverified when the records look right?

Propagation can take up to 24 to 48 hours, and Mailgun's FAQ lists duplicate SPF records and a CNAME on the same hostname as other causes. Check the records with dig or nslookup, then click Check status again.

Should I use my main domain or a subdomain with Mailgun?

Mailgun recommends a subdomain such as mg.example.com or mail.example.com, and advises against the root domain if you already use it for corporate email.

deliverabilityapollo-iomailgunerror-codes
Share this article
Sohail Hussain

Sohail Hussain

Founder & CEO at Mailneo

Building Mailneo — AI-powered email marketing for growing businesses.

Related Articles

Deliverability

Apollo account deactivated for a ToS violation: what to do

If Apollo.io says your account was deactivated, you often get no specific reason. Write to Apollo support with your account email and workspace details, ask which clause was flagged, and export whatever you can still reach. From now on, keep your own copy of every list so a lockout never strands your data.

Sohail Hussain|8 min read
Deliverability

Apollo subdomain error: "There is some error, Please try again after page refresh"

Apollo's "There is some error, Please try again after page refresh" when adding a subdomain looks like a front-end bug, not a DNS problem. The reported workaround is to open the subdomain menu from the sequence deliverability page instead of the wrench icon on the mailbox deliverability scores.

Sohail Hussain|8 min read
Deliverability

Apollo verified emails high bounce rate: why and how to fix it

"Verified" in Apollo means a check passed at some earlier point, not that the mailbox accepts mail today. Re-verify the list with a second tool right before sending, pause the inboxes that sent it, split hard invalids from policy blocks, and turn off tracking links while you diagnose.

Sohail Hussain|8 min read
Deliverability

Connection refused #111 on SMTP port 587: how to fix it

Connection refused #111 on port 587 means your server's TCP connection never reached the SMTP host, so a firewall, security group or hosting policy is blocking outbound traffic. Test the port with openssl s_client, open egress, switch to port 2525 or 465, or send through the provider's HTTP API instead.

Sohail Hussain|10 min read

Ready to supercharge your email marketing?

Start sending smarter emails with AI-powered campaigns. No credit card required.

Get Started Free