The name that appears in your inbox proves nothing. Anyone can type “Your Bank” or “Tax Agency” into that field. To find out who really sent a message you have to look at two things: the actual address hidden behind the display name and the message headers, where your provider records whether the email passed the SPF, DKIM and DMARC checks. A FAIL result is a clear alarm. A PASS, by contrast, only says the message comes from the domain it claims, not that the domain is trustworthy.
- Display names are meaningless: the visible sender name can be set to anything, so the full address after the @ symbol is the first thing to verify.
- Headers hold the verdict: Gmail, Outlook and Apple Mail all expose the raw headers, where SPF, DKIM and DMARC results are logged as PASS, FAIL or NONE.
- PASS is not proof of legitimacy: scammers can configure all three protocols on a lookalike domain and still harvest three clean PASS results.
Why forged senders are still possible
The protocol that carries email, SMTP, was designed without built-in authentication mechanisms, so someone with the right knowledge can manipulate headers and impersonate any person or company. SPF, DKIM and DMARC are the patches the industry added afterwards. Spain’s INCIBE documents this phenomenon as email spoofing in its citizen guidance.
The first check is the complete address. In Gmail, if you have never written to a sender, the address appears next to the name. In Outlook, Microsoft recommends opening the message details down to the From field and copying the address that sits between the angle brackets.
Then comes the domain, everything after the @ symbol. This is where the most common trick lives: domains that resemble the legitimate one with a swapped letter, an extra hyphen or a different ending. If your bank always writes from one domain and suddenly uses a similar-looking one, no further inspection is needed. Gmail adds another clue: the “via” label next to the name, which appears when the sending domain does not match the one in the From field. Sometimes that is normal, but if you do not recognise the service, Google warns it could be spam.
Where to find the headers in each client
Every program hides the raw headers in a different place:
- Gmail on desktop: open the email, use the More menu (the three dots next to Reply) and choose Show original.
- Gmail on Android: open the email, tap View details and then View security details.
-
New Outlook and Outlook.com:
More actions button, then View and Message details. - Classic Outlook for Windows: open the message in its own window, go to File, Properties and read the Internet headers box.
-
Mail on Mac:
View, Message, All Headers.
If the raw header is hard to read, Google offers its Messageheader tool inside the Admin Toolbox: paste the text and it parses it. Inside the header, the lines that matter are the authentication ones, where the three acronyms appear.
What SPF, DKIM and DMARC actually check
These are three checks performed by the server that receives the email. Explained without jargon, following Microsoft Learn documentation:
- SPF answers whether a given server is allowed to send mail on behalf of a domain. PASS means the origin appears on the domain’s authorised list. FAIL means it does not and the domain asks for the message to be rejected. SOFTFAIL means it does not appear, but the domain asks for it to be accepted and flagged.
- DKIM is a digital signature. PASS indicates the signature was verified; FAIL means verification failed, for example because the signature does not match the message; NONE means the message arrived unsigned.
- DMARC ties the previous two to the address you actually see. To pass, the message must clear SPF or DKIM and the authenticated domain must match the one in the From field.
That last nuance is the important one. Microsoft distinguishes between the envelope address (smtp.mailfrom), used for bounces, and the address the recipient sees (header.from). SPF is evaluated against the first; DMARC against the second. That is why an email can pass SPF with an arbitrary domain and still carry your bank’s address in the From field: DMARC is what checks that both domains line up. DMARC does not inspect the display name, only the domain of the address.
In Gmail, the condensed version appears in the message details. If you see “mailed by” with one domain and “signed by” with the sending domain, the message is authenticated. If a question mark appears next to the name, Gmail could not confirm it comes from who it claims.
A PASS does not make an email legitimate
This is the most widespread misconception. Google’s own help pages acknowledge that spammers can authenticate their mail too. A fraudster who registers a domain resembling your bank’s can configure SPF, DKIM and DMARC without difficulty and collect three impeccable PASS results. What those checks certify is that the email originates from that domain, not that the domain is who you think it is.
The reverse does not hold either. According to Google, an unauthenticated email is not necessarily spam: authentication sometimes fails with bulk sends such as mailing lists.
Since 1 February 2024, Google requires all senders to configure SPF or DKIM, and those sending more than 5,000 messages a day to Gmail accounts must also have DMARC. That has pushed large legitimate senders such as banks, retailers and public administrations to almost always pass the checks. The practical consequence is that a FAIL on an email claiming to come from a major company is today a far stronger signal than it was a few years ago.
What to do with a suspicious message
The sensible order is this. Check the real address and the domain. If it does not match, delete the message or mark it as phishing. If it matches but the content feels odd, inspect the headers: a DMARC FAIL on a message bearing a large company’s name is reason enough to touch nothing. And if everything passes but you are asked for money, passwords or urgent action, leave the email and reach the service on your own by typing the address yourself. If the sender is an acquaintance making an unusual request, INCIBE advises contacting them through another channel.
Header inspection should not be the average user’s job, and providers know it: that is why Gmail summarises authentication with a “mailed by” line and a question mark. But those summaries fall short exactly where the damage is greatest, with lookalike domains that are properly configured. No technical check replaces looking at what comes after the @ symbol, especially now that AI-written phishing no longer gives itself away with spelling mistakes.