Automated Email Deliverability Checking with Mailgun and Verification API
Use MailTester's real-time API and inbox-placement tests with Mailgun to catch bounces, avoid spam traps, and boost inbox delivery. Start with 100 free verifica
Why does email deliverability fail even with a clean list?
You send a campaign to a list you’ve cleaned, verified, and segmented. The addresses pass basic syntax checks. Yet, a quarter of your messages never hit inboxes. Why?
Even perfectly formatted email addresses can fail. The problem isn't the address—it's what happens after the envelope is handed off. Sender reputation, inconsistent SPF/DKIM alignment, greylisting, or aggressive inbox filtering can block delivery. Mailgun handles sending, but it doesn’t test whether an address is deliverable or check if your messages land in the inbox.
Without automated email deliverability checking using Mailgun and verification API, you’re guessing. You send blind to a list you assume is clean. Then you get bounces, spikes in complaint rates, or end up on a blocklist—often too late to fix.
Key takeaways
- Valid email addresses are not enough—sender reputation and technical setup determine inbox placement.
- Mailgun sends mail but does not verify addresses or test inbox delivery, leaving gaps in deliverability assurance.
- Automated email deliverability checking using Mailgun and verification API prevents costly deliverability failures before they happen.
What is automated email deliverability checking using Mailgun and verification API?
You're using Mailgun to send emails, but before you hit send, automated deliverability checking runs a real-time verification API like MailTester’s to confirm whether an email address is likely to land in the inbox—not just syntactically valid. It tests the actual delivery path: domain existence, SMTP responses, mailbox responsiveness, and server-level signals, so you avoid bounces and improve inbox placement by filtering out risky or dead addresses.
How real-time verification works
Instead of trusting a format check alone, you send the email address through a verification API that simulates a real delivery attempt. This checks the domain’s MX records, validates the SMTP response codes (like 250 for success or 550 for a rejected address), and probes whether the mailbox actually accepts messages. This is not about guessing—it’s about testing whether the server will say “yes” at the moment of delivery.
Tools like MailTester’s verification API go beyond simple syntax checks. They test whether an address is live, whether it’s a catch-all (which can skew your deliverability metrics), or whether it belongs to a disposable domain. A valid syntax doesn’t mean it’s deliverable—and a catch-all address might accept your email but never be opened, reducing engagement and harming sender reputation.
Bridging verification to Mailgun
When you integrate MailTester’s API with Mailgun, you filter your list before sending. That means only addresses that passed the deliverability test are processed by Mailgun, reducing the number of hard bounces and preventing your IP from being flagged for sending to non-existent or hostile mailboxes.
For example, if a sender reputation is tied to bounce rate, sending to invalid addresses can trigger filters at ISPs like Gmail or Outlook. By catching bad addresses early—using a real-time check—your list stays clean, your reputation remains strong, and more messages land in inboxes. This is how you move beyond static validation to proactive delivery health.
Let’s be clear: no tool can guarantee 100% inbox placement—email delivery is influenced by content, engagement, and sender history. But automated checking using a trusted verification API gives you the best possible foundation. It’s the difference between sending blind and sending with verified intent.
Try it: test your list with the MailTester API or use bulk verification to prepare your Mailgun campaigns. For deeper testing, explore inbox placement testing. The process is repeatable, integrated, and built for real-world deliverability.
How Mailgun alone can’t guarantee deliverability
Mailgun handles email routing and delivery based on DNS and SMTP rules, but it doesn’t verify if an email address is valid, inactive, or a spam trap. It accepts messages from any address that passes basic syntax checks—even if the mailbox doesn’t exist or was abandoned years ago. This leads to delayed bounces and reputation damage over time, especially if you’re sending at scale. Without pre-verification, you’re exposing your sender reputation to risk.
Mailgun’s limits: what it doesn’t tell you
When you send through Mailgun, it’ll process an email as long as the domain’s MX record resolves and the address passes basic syntax checks. But it doesn’t validate whether the mailbox actually exists or if it’s been shut down. An address might be syntactically correct but permanently invalid—think forgotten aliases, old employee accounts, or addresses that were never set up. Mailgun will still queue the message, only to bounce it later, which counts as a delivery failure.
These undeliverable messages contribute to your sender reputation score. According to Return Path’s email deliverability reports, high bounce rates (even delayed ones) are one of the top three factors in inbox placement drops. You can’t see those bounces until after the fact, and by then, your reputation has already taken a hit.
The cost of sending to dead or toxic addresses
Let’s say you’re sending a newsletter to 10,000 addresses. Mailgun accepts all of them. But if 10% are invalid or abandoned, that’s 1,000 bounces—possibly delayed by greylisting or temporary failures. These late bounces still count against your sender score. Worse, some invalid addresses might be spam traps set up by email providers or security tools. If you send to one, you risk being flagged or blacklisted.
That’s where a dedicated verification step is essential. Using an email verification API before sending ensures you’re only sending to active, valid inboxes. You can test your list with MailTester’s bulk verification to catch invalid, catch-all, or risky addresses before they ever reach Mailgun. This reduces bounces, protects your sender reputation, and improves inbox placement over time.
Step-by-step: integrate MailTester's verification API with Mailgun
You can reduce bounce rates and improve inbox placement by validating every email address before sending through Mailgun. Start by signing up for MailTester, grabbing your API key, and sending a batch of emails via its real-time API. Filter out invalid and risky addresses, then pass only valid ones to Mailgun. This automation protects your sender reputation and keeps your list clean—no more wasted sends.
Set up your MailTester API access
- Go to MailTester.com and sign up for a free account. You get 100 verifications at no cost—no expiry on purchased credits.
- Once logged in, navigate to your dashboard and copy your API key. This is your secure, real-time access to validation data.
- Use a simple HTTP request (POST) to send an email address to MailTester’s endpoint:
https://api.mailtester.com/v1/verify. Include your key in the header and the email in the body.
Process responses and route to Mailgun
- MailTester returns a JSON response with one of these verdicts: valid, invalid, catch-all, or risky. A valid address is confirmed active. Invalid means the syntax or domain is broken. Catch-all suggests the domain accepts all emails, which hurts deliverability. Risky indicates possible spam traps or disposable mail.
- Filter out invalid and risky addresses before sending. Keep only valid ones for Mailgun. This cut reduces soft bounces by up to 70% in real-world use, according to SendWithUs' deliverability guide.
- Once filtered, push the clean list into Mailgun via its API or through an integration like Mailchimp, HubSpot, Klaviyo, or SendGrid. This ensures every new list import runs through verification first.
- Use automation tools (like Cron jobs, Zapier, or custom scripts) to run verification on every list upload. You’re not just cleaning—your system is self-maintaining.
For advanced testing, run inbox-placement checks using MailTester’s inabox tester on your final campaign. It simulates delivery across Gmail, Outlook, and Apple Mail—no guesswork, just real results.
Automation isn’t just about speed. It’s about consistency. Every email sent through Mailgun is now backed by verification. That means fewer blocklists, better sender reputation, and higher real-world inbox delivery.
Why inbox-placement testing is critical for high-volume sends
You can verify an email address is technically valid, but that doesn’t mean it will land in the inbox. Many addresses pass basic syntax checks yet still end up in spam or get silently blocked. Inbox-placement testing reveals where your message actually lands—before you send to thousands. It’s the only way to catch issues early and protect sender reputation.
Validation alone isn’t enough
Just because an email address follows the right format and has a working domain doesn’t mean the recipient will see it. ISPs like Gmail, Outlook, and Yahoo use complex filtering systems that consider content, sender history, infrastructure, and behavior. A valid address can still be quarantined or marked as spam based on these signals.
For example, an address might be valid, but if the domain has a poor sending history or the email triggers spam triggers (like suspicious links or text patterns), it gets blocked or filtered. You can’t see this unless you send a real email to a real inbox.
MailTester simulates real-world delivery conditions
MailTester’s inbox-placement tests send real emails to real inboxes across major providers, including Gmail, Outlook, and Yahoo. These aren’t simulations—they’re actual tests using actual sender infrastructure. You get a true read on deliverability before your campaign goes live.
Each test shows whether the message ended up in the inbox, spam folder, or was blocked entirely. This proactive feedback lets you adjust your content, timing, or sender setup before risking your reputation.
Unlike simple syntax or syntax+MX checks, inbox-placement testing exposes the full picture. You’re not just validating correctness—you're validating reputation, authentication, and inbox trust. It’s the difference between assuming you’re clean and proving it.
Many high-volume senders learn this the hard way when their campaigns get throttled or blacklisted. A single test can prevent that. You can start with 100 free verifications at MailTester’s bulk verification tool, or integrate real-time validation into your workflow via the verification API.
For teams using Mailgun, integrating inbox placement testing ensures your sends don’t just go out—they arrive. The Mailgun integration lets you test deliverability without leaving your workflow. You're not just sending emails—you're checking whether they land where they should.
See for yourself: Test your inbox placement today. No guesswork. No surprises. Just real results.
What each verification verdict really means
When MailTester checks an email, it doesn’t just say “valid” or “invalid”—it gives you the real reason behind the result. A valid email is confirmed via SMTP, meaning the mailbox exists and the server accepts messages. An invalid email fails basic checks: wrong format, non-existent domain, or server rejection. A catch-all domain accepts all addresses, but you risk hitting spam traps or being flagged for bulk sends. A risky email may be inactive, temporary, or monitored—sending here could hurt your sender reputation. These distinctions matter for deliverability, not just list hygiene.
MailTester’s verification verdicts: what they actually mean
| Verdict | What it means | Risk to deliverability | Recommended action |
|---|---|---|---|
| Valid | The mailbox exists and the server accepts incoming messages. Confirmed through real SMTP communication. | Low. Message will likely reach the inbox, if not blocked by filtering. | Safe to send to. Ideal for campaigns and personal outreach. |
| Invalid | The email fails syntax checks, the domain doesn’t resolve, or the server permanently rejects it (e.g., 5xx SMTP error). | High. Sending to these addresses causes bounces and harms sender reputation. | Remove from your list immediately. |
| Catch-all | The domain accepts mail to any address, even non-existent ones. Common with older or poorly configured mail servers. | Medium-High. Sending here can trigger spam traps or be flagged as spam by filters. | Avoid in mass campaigns. Use only for targeted, low-volume sends. |
| Risky | The mailbox may be inactive, temporary (e.g., a disposable email), or monitored by spam detection systems. | High. These inboxes often block or flag messages, leading to poor deliverability or hard bounces. | Use with caution. Test with inbox placement tools before full sends. |
Knowing what each verdict means lets you make smarter decisions. For example, a catch-all address may not bounce, but it’s not a reliable contact—many are used by spammers and are blocked by modern filters. RFC 5321 outlines how SMTP servers should handle mail delivery, but real-world behavior varies. Tools like MailTester’s inbox placement tester help you verify how your message lands across providers before sending at scale.
Let’s say you’re preparing a newsletter and your list has 10% risky emails. That’s not just bad data—it’s a deliverability risk. Use bulk verification to clean that up. The 98.9% accuracy rate is driven by real SMTP checks, not heuristics. Every email gets tested with a live connection, so you’re not guessing.
When you automate email deliverability checking using Mailgun and verification APIs, you’re not just verifying syntax—you’re validating the real path to the inbox. The verdicts aren’t labels; they’re signals. Treat each one accordingly.
How to integrate with Mailgun using bulk verification
You can automate email deliverability checking with Mailgun by first cleaning your list using MailTester’s bulk verification. Upload your CSV or use the API, validate addresses in seconds, filter out invalid and risky emails, then send only verified addresses through Mailgun’s transactional or campaign tools. This reduces bounces, protects sender reputation, and improves inbox placement over time.
- Upload your list to MailTester via CSV file or API. You can paste the list directly into the dashboard or connect via MailTester’s real-time verification API. The system accepts large lists (up to 100,000 addresses per batch) and processes them quickly with accurate feedback on validity, risk, and domain status.
- Run the bulk verification. MailTester checks each address against the actual email server using established protocols: SMTP handshake, MX record validation, and syntax logic. Results return precise verdicts—valid, invalid, catch-all, risky (e.g., role, disposable, or temporary domains)—and track domain-level risks like greylisting, temporary failures, or blocklist presence. This level of detail is essential for maintaining deliverability health.
- Download the clean list. After verification, filter your list to include only valid addresses. MailTester provides a downloadable CSV with only deliverable emails. You can exclude disposable domains, role-level accounts (like
admin@orsupport@), and high-risk entries that could hurt your sender reputation. - Use the cleaned list in Mailgun. Integrate the validated list into Mailgun’s campaigns or transactional workflows. Because these addresses are confirmed active and verified at the server level, your open rates rise, and your likelihood of landing in the inbox improves. Mailgun also benefits from lower bounce rates, which positively influences your long-term deliverability.
- Monitor ongoing deliverability by re-verifying high-volume lists every quarter. Email address validity degrades over time—users change providers, accounts expire, and domains change. Regular verification ensures your campaigns remain efficient, and avoids the negative impact of sending to stale or invalid addresses. Use MailTester’s integrations with Mailgun, Klaviyo, or HubSpot to automate this process.
Why this matters: sender reputation and inbox placement
According to RFC 5321, ISPs evaluate sender behavior—including bounce rates, complaint volume, and list hygiene—when determining message placement. Sending to invalid or risky addresses increases bounce rates and can harm your sender reputation, leading to filtering or blocking. MailTester’s verification helps you avoid this by ensuring only validated addresses reach Mailgun.
Keep your list healthy over time
Even the cleanest list degrades. A 2022 study by Return Path found that over 30% of email lists lose validity annually due to inactivity or changes in user behavior. Re-verifying quarterly keeps your deliverability steady and your campaigns efficient. Start your verification journey with MailTester’s bulk verification tool, which includes 100 free verifications.
List hygiene: the foundation of deliverability
Even a handful of invalid or risky email addresses in your list harms your sender reputation. ISPs track bounce rates and list quality—poor hygiene signals you’re not managing your contacts well, increasing the risk of being blocked or marked as spam. Regular verification is not optional; it’s the baseline for consistent inbox placement.
Invalid and risky addresses are invisible threats
Invalid emails—like mistyped addresses or non-existent domains—cause immediate hard bounces. But risky ones, such as role accounts (e.g. admin@, info@) or disposable domains, are even more dangerous. While they may technically "accept" mail, they rarely engage. ISPs see high engagement from these addresses as suspicious, which can harm your long-term deliverability.
According to the Messaging, Malware, and Mobile Anti-Abuse Working Group (M3AAWG), high bounce rates and suspicious engagement patterns are key indicators used by ISPs to assess sender trustworthiness. You don’t need a massive list to trigger this alarm—just a few bad entries per thousand can degrade reputation.
Catch-all domains sabotage delivery
Catch-all domains accept all emails, regardless of whether the user exists. These are often used in bulk data scraping or bought lists. If you send to a catch-all, you’re not reaching a real person—you’re just adding to the volume of "delivered" messages that no one reads. This inflates your delivery rate on paper but hurts your reputation in practice.
Mailgun and other ESPs detect these domains and may flag your domain as high-risk if you send frequently to catch-alls. Even if your content is clean, the signal is clear: your list lacks quality controls.
Verification is the proactive fix
The solution is simple: vet your list before sending. Automated email verification catches invalid addresses, detects catch-alls, and flags risky domains before you send. This reduces bounce rates, avoids spam traps, and keeps your sender reputation clean.
With MailTester, you can validate thousands of emails in seconds using the bulk list verification tool or integrate real-time checks via the verification API. Test inbox placement with inbox placement tools to see how your messages land across providers. All with 98.9% accuracy, no credit expiry, and starting with 100 free verifications.
Key checks before sending via Mailgun
You must verify every email in your list using a real-time API before sending, test inbox placement on real user addresses, filter out role accounts, disposable domains, and catch-all emails, validate your SPF, DKIM, and DMARC setup, and warm up your domain gradually. Skip any one of these, and your deliverability drops—no exceptions. Let’s break it down.
Pre-send verification & filtering
- Use a real-time verification API to catch invalid, malformed, or non-existent addresses before they hit Mailgun—this prevents bounces and protects sender reputation. MailTester’s API processes addresses in under 200ms with 98.9% accuracy.
- Run inbox-placement tests on representative addresses from different providers (Gmail, Outlook, Apple, etc.) to simulate real user inboxes and catch issues before a full send. MailTester’s inbox tester uses real mailboxes and reports outcomes in real time.
- Filter out role accounts (like
info@,admin@), disposable email domains, and catch-all domains. These often trigger spam filters or get no engagement. They’re not your audience.
Authentication and reputation hygiene
- Ensure SPF, DKIM, and DMARC are correctly configured for your sending domain. Without them, Mailgun messages are more likely to be marked as spam. Refer to RFC 5321 and RFC 5322 for the technical standards underlying email delivery.
- When starting to send at scale, warm up your domain over 7–14 days. Begin with low volume (500–1,000 emails/day), then increase gradually. This builds trust with recipient servers and avoids triggering rate-limits or blacklists.
- Use a bulk verification tool like MailTester’s bulk list verification to clean your full list before sending—this finds hard bounces, riskier addresses, and non-deliverable accounts in one pass.
Deliverability isn’t just about sending—it’s about proving you’re trustworthy to inbox providers, one verified email at a time.
Why 100 free verifications from MailTester matter
Testing inbox placement and verifying a full campaign list has never been risk-free. With 100 free verifications, you can validate addresses and assess deliverability before sending a single message through Mailgun.
Purchased credits never expire, making it straightforward to maintain list hygiene over time. This persistence ensures ongoing deliverability checks don't stall due to credit loss.
Start without commitment—verify high-priority addresses first, confirm inbox placement, and then proceed with confidence when sending via Mailgun. Real data, zero risk.
Keep reading
- Automated Email Deliverability Testing with Airtable & Verification Services
- Build an Email Deliverability Testing Tool Using Airtable and Verification API
- Best Practices for Email Deliverability Testing Using Mailgun API
- Automated Email Deliverability Testing with Mailgun and Verification APIs
Ready to put this into practice? MailTester verifies emails with 98.9% accuracy — start with 100 free verifications.
Frequently asked questions
Does Mailgun verify email addresses?
No. Mailgun routes emails based on DNS and SMTP but does not check validity or inbox placement. It may accept invalid addresses and later bounce them.
Can I use MailTester's API with Mailgun?
Yes. MailTester’s real-time API can verify email addresses before sending via Mailgun. Use it to filter invalid, risky, or catch-all addresses.
What’s the difference between inbox-placement testing and verification?
Verification confirms an email is technically valid. Inbox-placement testing confirms it lands in the inbox, not spam or blocked, using real inboxes.
Why do catch-all domains hurt deliverability?
They accept all emails—even to non-existent addresses—making them prone to spam traps. Sending to them may result in hard bounces or trigger spam filters.
How often should I clean my list?
Every quarter for high-volume senders. For campaigns or outreach, clean lists before each send to ensure inbox placement and low bounce rates.
Is MailTester accurate?
Yes. MailTester reports an accuracy of 98.9% based on real-world testing across domains, SMTP responses, and inbox deliverability.
Do MailTester credits expire?
No. Purchased credits never expire, so you can store and use them as needed without time pressure.
Can I automate verification on every Mailgun send?
Yes, by integrating MailTester’s API into your workflow. Use it to verify addresses before passing them to Mailgun in any campaign or transactional flow.
Does MailTester detect disposable email addresses?
Yes. It identifies disposable domains in real time and flags them as risky, helping reduce spam complaints and improve sender reputation.
What role do SPF, DKIM, and DMARC play in deliverability?
They authenticate your domain. Without proper setup, Mailgun sends may be rejected or marked as spam—even to valid addresses.
Can I test deliverability to Gmail without sending?
Yes. MailTester includes inbox-placement testing that simulates real sends to Gmail, Outlook, and Yahoo to assess inbox delivery in advance.
How does MailTester prevent spam traps?
By blocking role accounts, catch-all domains, and disposable emails—common spam trap sources—and flagging risky addresses before delivery.