Most "my app's emails go to spam" problems are authentication problems, not provider problems. Check that SPF or DKIM passes and aligns with your visible From domain, publish a DMARC record, and only then compare providers. Switching from one email API to another without fixing alignment usually moves the problem rather than solving it.
What does "goes to spam" actually look like?
The symptom I see most often: signup confirmation and password-reset emails work for your own Gmail test account, then a customer says nothing arrived. Or they arrive, but in spam, with a banner like "This message isn't authenticated" in some clients.
Do not guess. Send one message to a Gmail address you control, open it, choose "Show original", and read the top summary. You want this:
SPF: PASS with IP 203.0.113.10 DKIM: 'PASS' with domain yourdomain.com DMARC: 'PASS' (The IP above is from a reserved documentation range; yours will differ.) If any line says FAIL, NEUTRAL or is missing, you have your answer before touching a provider dashboard.
Takeaway: the "Show original" header summary tells you in ten seconds whether you have an authentication bug or a reputation problem.
Why can SPF pass while DMARC still fails?
DMARC does not just ask "did SPF or DKIM pass?" It asks whether a passing check used a domain that aligns with the domain in the visible From header. This is the part that trips people up.
- SPF is checked against the envelope sender (the Return-Path / MAIL FROM), not the From header. Most email APIs set the Return-Path to their own domain by default, so SPF passes for their domain and does not align with yours.
- DKIM is checked against the
d=domain in the signature. If the provider signs with its own shared domain because you never verified yours, DKIM passes and does not align either.
DMARC needs only one of the two to pass with alignment. In practice that means: verify your own sending domain with the provider so DKIM signs with d=yourdomain.com. That single step fixes most cases.
Takeaway: DMARC passes when either SPF or DKIM passes with a domain matching your From address, so a provider-signed DKIM on a shared domain does not count.
How do I check my DNS records?
Three lookups cover most mistakes:
# SPF: you must have exactly ONE TXT record starting with v=spf1 dig +short TXT yourdomain.com # DMARC lives at a fixed subdomain dig +short TXT _dmarc.yourdomain.com # DKIM: the selector name comes from your provider's dashboard dig +short TXT selector1._domainkey.yourdomain.com dig +short CNAME selector1._domainkey.yourdomain.com Providers differ on whether DKIM is published as a TXT value or a CNAME to their infrastructure, so copy what the dashboard gives you exactly. A very common mistake is a DNS panel that silently appends your domain to the record name, producing selector1._domainkey.yourdomain.com.yourdomain.com.
SPF has two classic failures. First, two separate v=spf1 TXT records (one from your old provider, one from the new): receivers treat that as a permanent error and SPF fails outright. Merge them into one record. Second, the 10-DNS-lookup limit: every include:, a, mx and redirect counts, and nested includes count too. Past 10, SPF returns a permerror. This script gives a rough count so you notice before a receiver does:
import re import dns.resolver # pip install dnspython def txt(name: str) -> list[str]: try: answers = dns.resolver.resolve(name, "TXT") except (dns.resolver.NXDOMAIN, dns.resolver.NoAnswer): return [] return ["".join(s.decode() for s in r.strings) for r in answers] def spf_lookups(domain: str, seen: set[str] | None = None) -> int: seen = seen or set() if domain in seen: return 0 seen.add(domain) records = [t for t in txt(domain) if t.startswith("v=spf1")] if len(records) != 1: raise SystemExit(f"{domain}: expected 1 SPF record, found {len(records)}") count = 0 for term in records[0].split()[1:]: term = term.lstrip("+-~?") if re.match(r"(a|mx)(:|/|$)", term): count += 1 # a and mx each cost one lookup elif term.startswith(("include:", "redirect=")): count += 1 target = re.split(r"[:=]", term, maxsplit=1)[1] count += spf_lookups(target, seen) elif term.startswith(("exists:", "ptr")): count += 1 return count print(spf_lookups("yourdomain.com"), "of 10 allowed lookups used") This is an approximation (it ignores edge cases such as void lookups), but it catches the typical "we added a fourth SaaS to our SPF record" situation.
Takeaway: one SPF record, under 10 lookups, DKIM published exactly as the provider shows it, and a DMARC record at _dmarc are the four DNS facts to verify.
What DMARC policy should I start with?
Start in monitoring mode so you learn who is sending as your domain before you enforce anything:
_dmarc.yourdomain.com TXT "v=DMARC1; p=none; rua=mailto:dmarc-reports@yourdomain.com" Read the aggregate reports for a couple of weeks. They are XML and unpleasant, so a free report viewer helps. Once every legitimate source (app, support desk, marketing tool) passes with alignment, move to p=quarantine, then p=reject. As of late 2026, Gmail and Yahoo expect SPF, DKIM and a DMARC record from bulk senders, so treat a published DMARC record as baseline hygiene even at small volume.
Takeaway: publish p=none today, tighten to quarantine only after the reports show every real sender aligned.
Resend vs Postmark vs Amazon SES: which one fits?
Once authentication is clean, the providers differ mostly in how much work they leave to you. Pricing models change, so check each pricing page; I am describing shape, not numbers.
| Concern | Resend | Postmark | Amazon SES |
|---|---|---|---|
| Setup effort | Low: verify domain, call a simple API | Low: verify domain and sender signature | Higher: sandbox exit request, IAM, region choice |
| Separates transactional from bulk | Not its main design focus | Yes, via distinct message streams | You manage it yourself (configuration sets) |
| Delivery visibility | Dashboard with event logs | Strong per-message activity and bounce detail | Raw events; you build dashboards via SNS or event destinations |
| Cost shape | Tiered by volume | Tiered by volume, typically pricier per message | Pay-per-message, usually the cheapest at scale |
| Main drawback | Younger company with a shorter track record | Aggressive account review and a cost premium | Operational burden: bounce and complaint handling is on you |
If you want the lowest-friction developer experience for a React or TypeScript app, Resend is the one that gets a verified domain and a working send call running in the least time. If deliverability on password resets and receipts is the thing your business depends on, Postmark is the one that keeps transactional traffic isolated from marketing mail and gives the clearest per-message debugging. If you are sending at volume and already live in AWS, Amazon SES is the one that stays cheapest, as long as you handle bounces and complaints yourself.
One drawback applies to all three: a provider's shared IP pool is shared. A clean domain setup cannot fully shield you from a noisy neighbour, which is why dedicated IPs only make sense once your volume is steady enough to build your own reputation.
Takeaway: pick on operational burden and message-stream separation, because all three will deliver well once your SPF, DKIM and DMARC are correct.
FAQ
Why are my transactional emails going to spam even though SPF passes?
SPF may be passing for your provider's domain rather than yours, so DMARC alignment fails. Verify your own domain with the provider so DKIM signs with your domain.
Can I have two SPF records on one domain?
No. Multiple v=spf1 TXT records cause a permanent error and SPF fails. Merge every sender into a single record.
Do I need DMARC if I only send a few emails a day?
Yes. It is a one-line DNS record, it protects your domain from spoofing, and major mailbox providers treat its absence as a negative signal.
Bottom line
Fix authentication before you shop for providers: one SPF record, your own domain verified for DKIM, and a DMARC record starting at p=none. After that, choose Resend for speed of setup, Postmark if transactional deliverability is business-critical, and Amazon SES if volume and AWS familiarity matter more than convenience. Re-test with "Show original" after every DNS change, because propagation delays make it easy to misread a stale result.

