DEV Community

Cover image for I Set Up a Custom Domain Email for Free - Here's How
blueberries
blueberries

Posted on

I Set Up a Custom Domain Email for Free - Here's How

Having a professional email like hello@custom-domain.com used to feel like something only businesses with IT departments could pull off. Turns out, you can get it done in an afternoon for almost nothing. Here's exactly what I did.


Step 1: Buy a Domain on Cloudflare

I registered my domain through Cloudflare Registrar, which offers at-cost domain registration and renewal β€” no add-on fees, no inflated renewal prices. It's one of the cheapest ways to own a domain, and since Cloudflare manages DNS natively, the next steps are much easier.

Cloudflare Registrar homepage showing domain search


Step 2: Set Up Email Routing (Inbound Emails)

Once the domain was active, I enabled Email Routing inside the Cloudflare dashboard. This is a free feature that catches emails sent to your custom address and forwards them to any existing inbox β€” I used my personal Gmail.

So when someone emails me@mydomain.com, it lands right in my Gmail. No new inbox to check, no extra accounts to manage.

Cloudflare Email Routing settings dashboard


Step 3: Send Emails From Your Custom Address in Gmail

Receiving was easy. Sending took one more step β€” but it's free too.

3a. Generate an App Password

πŸ”‘ Quick note: App Passwords are only available if you have 2-Step Verification enabled on your Google account. If you don't see the option, turn that on first at myaccount.google.com/security.

Generate your App Password at the following link: myaccount.google.com/apppasswords

3b. Add Your Custom Address in Gmail

Go to Settings β†’ Accounts and Imports β†’ Add another email address, then:

  1. Enter the name you want displayed and your custom email address
  2. Uncheck "Treat as alias"

Gmail β€” Add another email address form

3c. Configure the SMTP Server

Enter the following SMTP details:

Field Value
SMTP Server smtp.gmail.com
Port 587
Username Your personal Gmail address
Password The App Password generated in the earlier step

Gmail confirmation β€” custom address added successfully

Once submitted, Gmail sends a verification email to the new address. Click the link inside to activate it.

Once everything is set up, you can choose your custom domain address in the "From" field whenever you compose an email.


The End Result

Total cost: the price of a domain (often under $10/year). Everything else β€” email routing, Gmail integration β€” is completely free.

It's a small thing, but sending emails from your own domain instead of a generic Gmail address makes a surprisingly big impression.

Top comments (0)