How to do it
1. Buy a domain
Register a domain at Namecheap, Porkbun, or any registrar. Budget options like .xyz or .site start at ~$2β5/year, classic .com domains cost ~$10β15/year. Students can get free domains via the GitHub Student Pack.
2. Add your domain to Cloudflare
Sign up at cloudflare.com (Free Plan is enough). Click "Add a site", enter your domain. Cloudflare shows you 2 nameservers β update these at your registrar. DNS propagation takes 5β10 minutes.
3. Enable Email Routing
In the Cloudflare Dashboard: Email β Email Routing β Get Started. Enter your Gmail address as destination and click the confirmation link in Gmail. You're now ready to create custom addresses.
4. Create custom addresses
Click "Create address" and set up any address you want: hello@, contact@, support@, hi@ β unlimited, all free. Each one forwards automatically to your Gmail.
5. Send FROM your custom address (optional)
In Gmail: Settings β Accounts and Import β Add another email address. Enter your custom address. For the SMTP password, you need an App Password (not your Gmail password!):
- Google Account β Security β Enable 2-Factor Authentication
- Then "App Passwords" β generate one for "Mail"
- Enter this password in the SMTP setup
Confirm the verification email β done! You can now send as hello@yourdomain.com from Gmail.
6. Set up SPF (anti-spam)
In Cloudflare β DNS β Records, add a TXT record:
- Name:
@ - Content:
v=spf1 include:_spf.google.com ~all
This tells email servers that Gmail is authorized to send from your domain. Massively helps avoid spam folders.
Why this works
Cloudflare forwards incoming emails to your Gmail for free. Gmail's "Send mail as" feature lets you send from any address (with an App Password). SPF validates the authorization. Result: you receive and send as hello@yourdomain.com from your regular Gmail inbox β for $0/month.
Good to know
- No DKIM: Regular Gmail doesn't support DKIM for custom domains (only Google Workspace). Some emails might land in spam initially. For personal use, SPF alone is usually enough.
- Gmail limit: Max 500 emails/day from custom addresses.
- Perfect for: Freelancers, side projects, personal brands, portfolio websites.
- Not ideal for: Large teams, high-volume sales emails, strict compliance.
- Cost comparison: Google Workspace Basic = $72/year. Cloudflare + Gmail = ~$10β15/year (domain only). Savings: ~85%!