Setting up domain email with Gmail, Cloudflare, and Postmark - without Google Workspace
When you build a website, at some point you need an email address that matches your domain - something like support@yoursite.com. Your hosting provider usually offers this for free, but it's not always reliable. One way to solve this problem is to use Google Workspace. But that costs money every month, just for an email address.
So i looked for another way.
Turns out you can set it up for free using three tools. Cloudflare handles incoming mail. Postmark handles outgoing. Gmail is just the interface you use. And Postmark's free tier gives you 100 emails a month - which is enough if you're just replying to the occasional message.
But there's a catch. Cloudflare doesn't create a real mailbox. It just forwards whatever comes in to your Gmail. So when you reply, Gmail sends it from your @gmail.com address - not your domain. And Gmail used to have a way to fix this, but they removed it. So you need something that acts as an outgoing mail server. That's what Postmark does here.
Part 1 - Setting up Cloudflare Email Routing
This gets incoming emails into your Gmail.
- Go to Cloudflare and open Email Routing
- Enable it for your domain
- Add your Gmail as the destination address
- Add a rule -
support@yoursite.comforwards toyourname@gmail.com
Cloudflare adds the MX records automatically. Nothing else to do here.
Send a test email to your domain address. If it shows up in Gmail, this part works.
Part 2 - Setting up Postmark
This handles outgoing mail.
- Create a free account on Postmark
- Create a server and copy the API token
- Go to Domains and add your domain
- Postmark gives you three DNS records - DKIM, Return-Path, and SPF
- Add all of them in Cloudflare DNS as TXT records
- Set proxy to DNS only for each one
Wait a few minutes. When Postmark shows green checks next to those records, you're good.
Now add your sender address:
- Go to Sender Signatures in Postmark
- Add
support@yoursite.com - Postmark sends a verification email to that address
- Cloudflare forwards it to your Gmail
- Click the verification link
Part 3 - Connecting Gmail to Postmark
This is what lets you reply as support@yoursite.com from Gmail.
- Open Gmail and go to Settings
- Click on Accounts
- Under Send mail as, click Add another email address
- Enter
support@yoursite.com - Choose Send through SMTP server
- Fill in the details:
- Server:
smtp.postmarkapp.com - Port:
587 - Username: your Postmark API token
- Password: same API token
- TLS: on
- Server:
- Save
Gmail sends a confirmation email to your domain address. It lands in Gmail, you click the link. Done.
After that, when you reply to any email in Gmail, you can choose to send it from support@yoursite.com.
That's it
Emails come in through Cloudflare, go out through Postmark, and Gmail is just where you read and reply. No Workspace subscription. No monthly fee for basic use.
A few things worth knowing:
- DNS changes can take a few minutes to kick in
- The TXT records with quotes in Cloudflare are fine, don't remove them
- If you need more addresses like
info@yoursite.comlater, just repeat the same steps