Hello, World. Now Let's Talk About Email
I'm Antonio. By day I'm a sysadmin and project manager, which mostly means keeping infrastructure running and Microsoft 365 tenants behaving (most of the time). The longer version lives on the rest of this site, so I'll spare you the CV.
Why I want to start this blog
Think of it as a work notebook, made public. Whenever something costs me an afternoon, I'll write it down here, hoping it costs you ten minutes instead.
Most of it will be infrastructure and cloud: Microsoft 365, Azure, hypervisor, vm, network, and the glue holding them together. Then email and security, because email is still where most things go wrong, and the IT and security news worth reading, meaning what happened and what it means if you're the one who has to fix it on Monday. There will also be side projects and vibe coding, which is small tools built with AI handling the syntax and me handling the arguing, plus whatever I happen to be curious about that month.
What you won't find is hype. There will be opinions, a bit of irony, and the occasional admission that I got something wrong the first time.
I'll aim for one post a month, give or take. If I find something interesting or have a project update that doesn't make sense to sit on, I'll post sooner.
Posts are in English, even though I think (and swear) in Italian. So please be lenient with me. I use AI to help me write, but I review and approve everything that goes on this blog. No AI slop, ever.
First topic: who is allowed to send email as you?
Let's start with an uncomfortable fact. Anyone on the internet can send a message that claims to come from your domain. SMTP, the protocol that moves email around, doesn't check. It's like writing any return address you like on an envelope: the post office delivers it anyway.
Three DNS records exist to close that gap. They're old, they're boring, and a surprising number of domains still get them wrong, or don't have them at all.
SPF: the guest list
SPF (Sender Policy Framework) publishes the list of servers allowed to send mail for your domain. The receiving server checks the sending IP against the policy for the envelope sender domain, which isn't necessarily the domain visible in the From address.
It's a DNS TXT record published at the sending domain. For example:
example.com TXT "v=spf1 ip4:192.0.2.10 include:_spf.example.net -all"
The record starts with v=spf1. Here, ip4: authorizes an IP address, include: checks another domain's SPF policy, and -all says that anything not matched should fail SPF. These are example values, not settings to copy: replace them with your actual sending IPs and your provider's SPF domain. Keep all authorized senders in one SPF record per domain.
Its classic trap is the limit of 10 DNS-lookup-producing terms, including nested include: checks. Add a newsletter platform, a CRM and a ticketing system, each with its own include:, and one day SPF evaluation can return a permanent error. Nobody necessarily gets an alert. Your mail just starts looking suspicious.
DKIM: the signature
DKIM (DomainKeys Identified Mail) adds a cryptographic signature to outgoing messages. Your SMTP system or email provider generates a key pair and signs the message with the private key, which stays private. The matching public key is published in DNS, typically as a TXT record:
selector1._domainkey.example.com TXT "v=DKIM1; k=rsa; p=BASE64_PUBLIC_KEY"
selector1 identifies the key, k=rsa specifies the key type, and p= contains the public key. The key shown here is a placeholder: use the complete value supplied by your mail system or provider. Some providers use a CNAME that points to a TXT record they manage instead.
A signed message carries a header that looks roughly like this:
DKIM-Signature: v=1; a=rsa-sha256; d=example.com; s=selector1;
h=from:to:subject:date; bh=BODY_HASH; b=SIGNATURE
The hash and signature are placeholders too. The receiver uses d= and s= to find the public key, then checks the signature and the signed parts of the message. A valid signature means those parts haven't changed since signing and that the signer had the corresponding private key; it doesn't, by itself, prove that the visible From address belongs to that signer.
DMARC: the policy, and the reports
DMARC (Domain-based Message Authentication, Reporting and Conformance) ties the other two together. It requires SPF or DKIM to pass with a domain aligned to the one people actually see in the From address. Alignment can be exact or, under the usual relaxed setting, allow related subdomains. DMARC also tells receivers what you'd like them to do when a message fails: take no DMARC-specific action (p=none), treat it as suspicious (p=quarantine), or reject it (p=reject). The receiving server makes the final decision.
DMARC is another DNS TXT record, published under _dmarc for the domain in your From address:
_dmarc.example.com TXT "v=DMARC1; p=none; rua=mailto:dmarc@example.com"
v=DMARC1 identifies the record, p=none starts in monitoring mode, and rua asks participating receivers to send aggregate reports to that address. Replace the example domain and address with your own, and make sure the reporting mailbox can receive them.
The best part, though, is the reporting. Aggregate reports help you spot systems sending mail as your domain, including the ones everyone forgot about, although they only cover what reporting receivers have seen and sent back.
A sane rollout plan
If you've never touched any of this, start by publishing DMARC with p=none and a reporting address: nothing breaks, and data starts coming in. Spend the next few weeks reading the reports, where you should expect to find a forgotten marketing tool or two, and fix SPF and DKIM for every legitimate sender that shows up. Only then tighten the policy, quarantine first and reject after.
Reading the reports is the part nobody enjoys, because it forces you to admit your mail environment is messier than you thought. It usually is.
Why this isn't optional anymore
This used to be best practice. Now it's a requirement. Since 2024, Google and Yahoo have required proper authentication from bulk senders, and in 2025 Microsoft introduced similar rules for Outlook.com. If your newsletters or invoices keep landing in spam, these three records are the first place to look.
Want to dig deeper?
If you'd like the full technical details, the standards are a good place to start. They're not exactly light bedtime reading, but they cover far more than this introduction:
- SPF: RFC 7208 — mechanisms, qualifiers, evaluation and DNS lookup limits.
- DKIM: RFC 6376 — signatures, public keys and verification.
- DMARC: RFC 9989 — policies, alignment and deployment; RFC 9990 covers aggregate reporting.
I'll probably write comprehensive configuration guides for all three records in the future, with a little less RFC and a little more practical detail.
What's next
If there's enough interest, I'll dig into the practical configurations for Microsoft 365 and Google Workspace, or take a closer look at the SPF lookup limit. What would be most useful to you? Are you wrestling with a particular email authentication problem, or would you like a deeper guide to SPF or DMARC? Let me know through the contact page — your questions will help decide what comes next.
Thanks for reading. Let's see how long I can keep this up.