Why your December invoices land in the customer's spam folder
The invoice was sent, signed and approved, just not in your name. One header line tells you why, and three DNS records fix it before the year-end rush.
- 6 min read
- 1 question for your Radar
- A checklist to keep
- A poll: compare with other readers
In short
- Many invoices that land in spam pass SPF and DKIM, but for the invoicing tool's domain rather than yours, so DMARC fails.
- Open the invoice's headers, find the Authentication-Results line and check that header.d or smtp.mailfrom matches header.from.
- Switch on your tool's custom sending domain so it signs DKIM as you, then move DMARC from p=none to p=reject over a few weeks.
On the second of January, the owner of shop.example.lu, a fictional wine shop, chases a customer for an unpaid December invoice. The customer searches her inbox. Nothing. Then she opens the spam folder: three invoices, a payment reminder and a Christmas thank-you, filed neatly beside a fake parcel notice.
Nothing was wrong with the invoices. Something was wrong with the signature on the envelope.
You will often hear that Gmail cracked down in 2024. That is half true. Google requires every sender to pass SPF or DKIM, and only senders of roughly 5,000 messages a day to personal Gmail addresses must also publish DMARC. Since November 2025 Gmail has been ramping up enforcement, with temporary and permanent rejections for mail that fails. Its published rules do not even cover messages to Google Workspace accounts. So no rule forces a small shop to publish DMARC. But Google itself recommends SPF, DKIM and DMARC for every domain, and every large mail provider still reads these signals when it decides what is spam.
Three records, three different promises
SPF is a guest list. It names the servers allowed to send mail for a domain, but it checks the hidden return address (the Return-Path), not the From line your customer sees.
DKIM is a wax seal. The sending server signs the message, and the signature says: this was not altered, and domain d= vouches for it.
DMARC is the one that connects either of them to you. It passes only when SPF or DKIM passes for a domain that matches the visible From address, and it tells the receiving server what to do when that fails: nothing, quarantine or reject. It can also ask for daily reports.
SPF and DKIM prove that someone vouched for the message. DMARC asks whether that someone was you.
The verdict is written in one header line
- Send a real invoice from your tool to a personal Gmail address and an Outlook.com address you control. Do not rely on a forwarded copy: forwarding changes the evidence.
- In Gmail, open the message, click ⋮ and choose "Show original". The top of the page shows SPF, DKIM and DMARC as PASS or FAIL. In desktop Outlook, use File → Properties → Internet headers.
- Find the Authentication-Results line, or paste the whole header into Google's Messageheader tool (toolbox.googleapps.com/apps/messageheader/).
- Compare three domains: smtp.mailfrom (SPF), header.d (DKIM) and header.from (what the customer sees).
Authentication-Results: mx.google.com;
spf=pass smtp.mailfrom=bounces.invoicetool.example;
dkim=pass header.d=invoicetool.example;
dmarc=fail (p=NONE) header.from=shop.example.luThis is the wine shop's header. Two passes, one fail, and the reason is plain once you line the domains up: neither pass belongs to shop.example.lu. If a message bounced outright, the bounce text helps too: Gmail uses 5.7.26 for authentication failures, and Microsoft uses 5.7.515 for high-volume senders that fall short of its rules.
Your invoicing tool is signing in its own name
This is the mistake that catches webshops, accounting software and payment platforms. The tool sends From: invoices@shop.example.lu, but uses its own domain for the return address and its own DKIM key. Everything technically passes. Nothing passes for you. Google's guidelines are explicit: the From domain must align with the SPF domain or the DKIM domain.
The fix sits in the tool's settings, usually called "authenticate your domain", "custom sending domain" or "domain verification". The tool gives you two or three DNS records, usually CNAMEs, to add. Once they are live, it signs with d=shop.example.lu, or a subdomain like mail.shop.example.lu, which aligns under DMARC's default relaxed matching.
Get DKIM right first. SPF alone is fragile.
Your customer's mailbox automatically forwards invoices to her accountant. Which check is most likely to still pass at the accountant's end?
How do your invoices leave the building?
Check what your DNS actually says
Two minutes in a terminal tell you more than any dashboard. Replace the domain and, for DKIM, the selector your provider uses (Google Workspace uses google; Microsoft 365 uses selector1 and selector2).
dig +short TXT shop.example.lu
"v=spf1 include:_spf.google.com include:spf.invoicetool.example -all"
dig +short TXT _dmarc.shop.example.lu
"v=DMARC1; p=none; rua=mailto:dmarc@shop.example.lu"
dig +short TXT google._domainkey.shop.example.lu
# Windows PowerShell
Resolve-DnsName _dmarc.shop.example.lu -Type TXTMove DMARC to reject over a month, not a weekend
- Publish p=none with a rua= address and read the daily reports for two to four weeks. They arrive as XML, so use a free DMARC report viewer.
- List every service that sends as your domain: mailbox, webshop, invoicing tool, newsletter, booking system. Fix the alignment of each one that fails.
- Move to p=quarantine and watch the reports for another week or two.
- Move to p=reject. Use sp= to set the policy for subdomains if they send differently.
The reports are the point of the first step. In ours, the wine shop discovers a booking plugin nobody remembered, sending reservation confirmations through the hosting company's server. Jumping straight to reject would have binned them.
The same records stop strangers using your name
With p=reject, receiving servers refuse mail that fakes your From domain. It will not stop look-alike domains, but it ends the cheapest trick: a fraudster sending a "new bank details" invoice that appears to come from you.
Domains that never send mail, such as the old name you kept or the parked typo, deserve the strictest records of all:
example.lu. TXT "v=spf1 -all"
_dmarc.example.lu. TXT "v=DMARC1; p=reject;"
*._domainkey.example.lu. TXT "v=DKIM1; p="And if a tool still sends your invoices "from" a @gmail.com address, change it. Google warns against impersonating Gmail From headers and applies DMARC quarantine to them. Invoices need a domain you control.
Before the December run
0 of 7 doneTicks are kept in this browser only. Create a free account to keep them on every device.
The invoice that gets paid in January is the one signed in your name in December.
0 / 1 right
1 question above is waiting for you.
- DNS & email
- 0.0/10
- Level
- Curious
- Week streak
- 0
Questions people ask
Do I need DMARC if I send fewer than 5,000 emails a day?
Gmail's rules only require DMARC from bulk senders, but Google recommends SPF, DKIM and DMARC for every domain. DMARC is the only record that ties authentication to the From address your customer sees.
Why do my emails pass SPF and DKIM but fail DMARC?
Usually because the sending tool uses its own domain for the return address and DKIM signature. Both pass for the tool, not for you. Enable the tool's custom sending domain so it signs DKIM with your domain.
Can a domain have two SPF records?
No. Two v=spf1 records is an error that receivers treat as a failure. Merge all senders into one record and stay under the limit of 10 DNS lookups.
Related reading
- Search
Two Google core updates around Christmas: what to touch and what to leave
On a close subject · 7 min
- Bots
Not every bot is a burglar: a field guide to the crawlers on your website
On a close subject · 3 min
Stuck on something? We write it next.
A question you keep googling, a problem on your server, a myth you want busted — readers’ ideas go first into the daily selection.
Be first to the next article
New questions for your Radar come with every article. One short email when it is out; nothing else.