Every B2B outbound team eventually learns the hard way: sending to unverified contact exports destroys domain reputation. Even a 4–5% hard bounce rate can push subsequent campaigns into spam folders. At Atylx AI, we never rely on a static database's "verified" badge. Instead, every prospect email passes through a custom Python DNS MX verification layer before entering our outreach queue.
Why Static Database Badges Fail
Contact databases cache verification states for months. Meanwhile, companies migrate mail servers, let domains expire, or configure catch-all policies. Relying on stale metadata means you only discover a dead domain after your sending server takes the bounce hit.
The 3-Stage Python Verification Architecture
- Syntax & Freemail Gate: Reject malformed addresses, role-based aliases where inappropriate, and consumer freemail domains (
gmail.com,yahoo.com,outlook.com) when targeting corporate B2B accounts. - Corporate Domain Alignment: Confirm the email domain matches the target company's verified website domain (or a documented parent/subsidiary domain).
- Live DNS MX Consensus: Query authoritative MX records using
dnspythonacross public resolvers to confirm active mail exchangers exist and fingerprint the provider (Google Workspace, Microsoft 365, Proofpoint, Mimecast, etc.).
Reference Python Implementation
import dns.resolver
FREEMAIL_DOMAINS = {"gmail.com", "yahoo.com", "hotmail.com", "outlook.com", "aol.com"}
def verify_mx_domain(domain: str) -> dict:
domain = domain.strip().lower()
if domain in FREEMAIL_DOMAINS:
return {"valid": False, "reason": "freemail_domain", "mx": []}
try:
answers = dns.resolver.resolve(domain, "MX", lifetime=5.0)
mx_hosts = sorted(
[(r.preference, str(r.exchange).rstrip(".")) for r in answers],
key=lambda x: x[0],
)
return {"valid": len(mx_hosts) > 0, "reason": "mx_verified", "mx": mx_hosts}
except Exception as exc:
return {"valid": False, "reason": type(exc).__name__, "mx": []}
Try It Live on Atylx AI
You can test any corporate domain right now using our free DNS MX Checker, or book our $350 / ₹20,000 14-Day Paid Outbound Sprint to have this verification pipeline built directly into your prospecting workflow.