Note
Custom Domain Email
This setup lets you use your custom domain email inside Gmail without paying for Google Workspace
TIL Mar 5, 2026
CloudflareGmail
Buy a Domain#
Buy a domain from any registrar.
Example:
yourdomain.comConnect the Domain to Cloudflare#
Add your domain to Cloudflare.
Steps:
- Add your domain
- Select the Free plan
- Change your domain nameservers to the ones Cloudflare provides
- Wait for activation (usually a few minutes)
Enable Email Routing#
In Cloudflare dashboard:
Email → Email RoutingSteps:
- Add your Gmail as a Destination Address
- Verify the email
- Create custom addresses like:
you@yourdomain.comhello@yourdomain.comsupport@yourdomain.com(Optional) enable Catch-all to receive any address at your domain.
Now emails sent to your domain will arrive in your Gmail inbox.
Enable Domain Sending (Fixes Spam Issues)#
To send emails properly from your domain, use an SMTP provider like Resend.
Steps:
- Create an account on Resend
- Add your domain
- Add the DNS records they provide in Cloudflare
- Wait until the domain is verified
This enables SPF, DKIM, and DMARC alignment, which prevents spam issues.
Connect Sending to Gmail#
In Gmail:
Settings → Accounts & ImportSend mail as → Add another email addressAdd your domain email:
you@yourdomain.comUse the SMTP credentials provided by your sending provider.
After verification, Gmail can send emails using your domain address.
Test Your Setup#
Send a test email.
You should see:
SPF: PASSDKIM: PASSDMARC: PASSFinal Result#
You can now:
- Receive emails at
you@yourdomain.com - Send emails from
you@yourdomain.com - Manage everything inside Gmail
- Avoid paying for Google Workspace