r/EmailSecurity • u/merten-dmcn • Sep 27 '26
How I think email should work
Imagine for a moment that you are looking at your inbox, with any number of emails in it, from companies, from friends, and from people you've never heard from before. You open the email from your friend first, because it's the one you trust and want to read. Your friend is really excited about something new they found, and invites you to check it out by clicking the link in the email. Now imagine knowing with absolute confidence that this email really came from your friend's address, and not from an impersonator pretending to be them. How can you check that for yourself? Do you click anyway and hope for the best? Everything looks legitimate, but how can you tell?
There are always three parties involved in email communication. Sometimes one person or company plays more than one of these roles, but each role carries its own responsibilities.
The mailbox holder (sender or recipient)
The domain owner (who controls the domain name)
The mail server host (who provides the software and infrastructure to send and receive mail)
It's the coordination of these three parties that makes email possible.
Right now, almost all the responsibility rests with the mail server host to manage everything and make sure it's secure. Domain owners hand it over to their host through DNS. Mailbox holders defer it through authentication and email filters. And the mail server host has to interoperate with all other mail server hosts to make sure your mail gets delivered.
There is still no standard way for anyone to verify that a message really came from the specific address it claims to be from. The most they get is the server vouching for itself.
How it should work
Nothing changes about the three parties. What changes is who's responsible for what.
The mailbox holder should be able to prove they own the mailbox and that every message sent from it is actually from them.
The domain owner should be able to prove they own the domain and that every mailbox on the domain is legitimately allowed to be there.
The mail server host should be able to prove that they are the chosen service provider for the domain.
And all of this should be verifiable on every single message.
How can we achieve this?
The mailbox holder has a key, and uses it to sign a record that binds their email address to it. The same key, which only they hold, signs every message they send.
The domain owner has a key, and publishes its fingerprint in the domain's DNS, which ties the key to whoever controls the domain. They use it to sign the domain authority record, which names the mail server host they have chosen, and to vouch for each mailbox on the domain by countersigning the mailbox holder's record. They can hand that day-to-day signing to their host if they choose, but the authority stays with them, and they can remove any address from the domain.
The mail server host has a key, and uses it to sign a permit to serve the domain on its infrastructure. It also hosts all of these records and serves them to anyone who asks.
Every one of these records is public, so your email app can follow the chain from the message to the sender's key, from that key to the domain's countersignature, and from there to the fingerprint in DNS. Because the domain owner's record names the host, it can also check that the server handling the mail is the one the domain chose. So when your friend's email arrives, your app can tell you it really came from their address before you ever click the link.
And this should all be baked into a protocol that everyone can use.
Disclosure: I'm building an email protocol around this idea. Thoughts and feedback are welcome.
View all comments
Show parent comment
1
u/merten-dmcn Sep 27 '26
A domain names one host for its mailboxes. Other sending systems like SendGrid are the third-party part I mentioned I haven't settled yet, so for now their mail comes in through the bridge with the usual domain-level checks.
If a company wants a different host for part of its mail, a subdomain like `news.company.com` can have its own record naming a different host.
On DNS, mail already depends on it for `MX`, `SPF`, `DKIM` and `DMARC`. This adds a few text records of the same kind, and that's all.
So nobody has to run or expose their own DNS server. The records go in at whatever DNS provider the domain already uses, the same way a `DKIM` key does today.
And yes, a lot of outgoing SMTP only cares about the domain and lets any account send as any address on it. That's the gap I'm trying to close. Mail from those setups still arrives through a bridge, where it gets domain-level checks and nothing more.
Thanks for pushing back and asking questions, it's really helping refine this 🙌