How do I set up email on my own domain?
Choose forwarding to an inbox you already have, or a hosted mailbox that can also send, then add the MX, SPF, DKIM and DMARC records your provider gives you.
There are two separate jobs: receiving mail at your domain, and sending mail that inboxes trust.
For receiving, email forwarding passes mail for an address like hello@yourdomain.com on to an inbox you already use. Cloudflare Email Routing is one service that does this, but it doesn't send: your replies come from your personal address. A hosted mailbox from a provider such as Google Workspace or Microsoft 365 receives and sends as you@yourdomain.com, and is usually paid per user. MX records say which servers receive your domain's mail, so don't mix two providers' MX records.
For sending, three DNS records prove your mail is legitimate:
- SPF lists which servers may send mail for your domain.
- DKIM adds a digital signature to each message, which receivers check against a public key published in your DNS.
- DMARC tells receivers what to do with mail that fails those checks, and where to send reports. Start with a monitoring policy, then tighten it.
Add exactly the records your provider shows you, and test them before your launch emails go out.
Vumbli's Domains, DNS & Going Live track explains forwarding, mailboxes, SPF, DKIM and DMARC in plain English, and has you write code that builds and checks SPF and DMARC records.
Start with these missions
- What you really buy when you buy a domain (Domains, DNS & Going Live)
- Check a domain name before you buy it (Domains, DNS & Going Live)
- Buy your domain the safe way (Domains, DNS & Going Live)
Tracks that teach it
More questions, answered by building