Set up Email DNS on Cloudflare
Setting up an email provider with your domain at Cloudflare requires specific DNS records to be configured. These records include MX, SPF, DKIM, and DMARC records that are essential for proper email delivery and authentication.
mail2dns is the fastest way to create the DNS records. You can use mail2dns with the supported email providers listed below to create the necessary records in one command.
CLI Usage
mail2dns setup <your-domain> <email-provider> cloudflare Copied
Supported Email Providers
Follow the relevant setup guide to use mail2dns to create records for your domain at Cloudflare
Cloudflare setup for Amazon SES
Cloudflare setup for Fastmail
Cloudflare setup for Google Workspace
Cloudflare setup for Mailgun
Cloudflare setup for Microsoft 365
Cloudflare setup for Microsoft Outlook
Cloudflare setup for Migadu
Cloudflare setup for Postmark
Cloudflare setup for Proton Mail
Cloudflare setup for Resend
Cloudflare setup for Twilio SendGrid
Cloudflare setup for Zoho Mail
Is your email provider missing? Let us know