Table of Contents
π§ How to Get a Free Custom Email for Your Domain
π The Goal
We want to set up a fully functional email system where:
- Users receive transactional emails from
notifications@example.com
(via Resend) - Users can reply to emails and receive them at
support@example.com
(via ImprovMX) - Replies can be sent from
yourname@example.com
directly in Gmail
All without paying for Google Workspace. Let's get started!
π Step 1: Set Up Your Domain
First, purchase a domain from a registrar like Namecheap, Google Domains, or Cloudflare.
For this guide, we'll use example.com
as our domain.
Once purchased, ensure your domain has DNS management enabled.
π¨ Step 2: Configure Resend for Sending Emails
Resend is an email-sending service designed for developers. We'll use it to send transactional emails.
- Sign up for Resend
- Add Your Domain
- Navigate to "Domains"
- Click "Add Domain"
- Enter
example.com
- Follow the verification process (Resend provides DNS records to add)
- Update DNS Records
- Add the TXT and MX records from Resend to your domain's DNS settings
- Wait for DNS propagation (can take a few minutes to an hour)
- Test Sending Emails
- Once verified, you can send test emails using Resendβs API or dashboard
Example API call:
import { Resend } from 'resend';
const resend = new Resend('your-resend-api-key');
await resend.emails.send({
from: 'notifications@example.com',
to: 'user@example.com',
subject: 'Test Email',
text: 'Hello, this is a test email from Resend!'
});
π¬ Step 3: Set Up ImprovMX for Forwarding
ImprovMX allows you to receive emails for free by forwarding them to another address (e.g., Gmail).
- Sign up on ImprovMX
- Add Your Domain (
example.com
) - Update DNS Records
- ImprovMX will provide MX and TXT records
- Add these to your domainβs DNS settings
- Set Up Email Forwarding
- Forward
support@example.com
toyourpersonal@gmail.com
- Forward
notifications@example.com
toyourpersonal@gmail.com
(optional for monitoring replies)
- Forward
- Test by Sending an Email to
support@example.com
- If everything is set up correctly, it should land in your Gmail inbox
π€ Step 4: Replying as yourname@example.com
from Gmail
- Go to Gmail Settings β "Accounts and Import".
- Under "Send mail as", click "Add another email address".
- Enter
yourname@example.com
as the email address. - Use Resend SMTP settings:
- SMTP Server:
smtp.resend.com
- Username:
resend
- Port:
587
(TLS) or465
(SSL) - Password: Your Resend API Key
- SMTP Server:
- Verify the setup by clicking the confirmation link sent to
yourname@example.com
. - Now, you can choose to send emails as
yourname@example.com
directly from Gmail.
β Final Setup Recap
-Resend β Sends transactional emails from notifications@example.com
- ImprovMX β Forwards support@example.com
to your Gmail
- Gmail β Can send emails as yourname@example.com
You now have a fully functional email setup for your domain, all for free! π
π Useful Links
Thanks for reading!
Written by
Marcus Ruud
At
Fri Mar 07 2025