LookMyIPLookMyIP
Blog/How to Set Up Email for a Custom Domain (Step by Step)
Email & DNS8 min read

How to Set Up Email for a Custom Domain (Step by Step)

By LookMyIP Editorial

A step-by-step guide to setting up professional email on your own domain using Google Workspace, Microsoft 365, or Zoho Mail, including DNS configuration.

Why Use a Custom Domain Email?

Using an email address like you@yourcompany.com instead of you@gmail.com provides:

  • Professional credibility: Customers trust emails from a business domain more than free email addresses.
  • Brand consistency: Every email reinforces your brand name.
  • Control: You own the address and can create addresses for employees, departments (support@, sales@), and functions.
  • Security: Business email providers offer admin controls, data retention policies, and compliance features.
  • Portability: If you switch email providers, you keep your addresses — you just update DNS records.

Setting up custom domain email requires three things: a registered domain name, a DNS provider where you can modify records, and an email hosting service.

Choosing an Email Provider

Google Workspace (Gmail): Starts at $7.20/user/month. Full Gmail interface with your custom domain, plus Google Drive, Docs, Calendar, and Meet. The most popular choice for businesses. Excellent spam filtering and 99.9% uptime SLA.

Microsoft 365 (Outlook): Starts at $6/user/month. Outlook with your custom domain, plus OneDrive, Word, Excel, PowerPoint, and Teams. Best if your team already uses Microsoft tools.

Zoho Mail: Free tier for up to 5 users (5GB each). Paid plans start at $1/user/month. A solid budget option with a clean interface and good privacy practices.

Fastmail: Starts at $5/user/month. Privacy-focused, no ads, no data mining. Great for privacy-conscious users and small teams.

Self-hosted (Mailcow, Mail-in-a-Box): Free software, but requires a server and ongoing maintenance. Only recommended if you have sysadmin expertise and specific compliance requirements that prevent using third-party hosting.

Step-by-Step Setup (Google Workspace Example)

Step 1: Sign up for Google Workspace at workspace.google.com. Enter your domain name during signup.

Step 2: Verify domain ownership. Google provides a TXT record to add to your DNS. Log into your domain's DNS provider and add the verification TXT record. Google will check for it within a few minutes.

Step 3: Configure MX records. Remove any existing MX records and add Google's MX records:

PriorityMail Server
1ASPMX.L.GOOGLE.COM
5ALT1.ASPMX.L.GOOGLE.COM
5ALT2.ASPMX.L.GOOGLE.COM
10ALT3.ASPMX.L.GOOGLE.COM
10ALT4.ASPMX.L.GOOGLE.COM

Use LookMyIP's MX Checker to verify the records are correct after saving.

Step 4: Set up SPF. Add a TXT record: v=spf1 include:_spf.google.com ~all

Step 5: Set up DKIM. In the Google Workspace admin console, go to Apps > Google Workspace > Gmail > Authenticate email. Generate the DKIM key and add the provided TXT record to your DNS.

Step 6: Set up DMARC. Add a TXT record for _dmarc.yourdomain.com: v=DMARC1; p=none; rua=mailto:dmarc@yourdomain.com

Step 7: Create user accounts in the Google Workspace admin console and start sending email.

Verifying Your Setup

After completing the setup, verify everything works:

  1. Check MX records: Use LookMyIP's MX Checker (lookmyip.com/mx) to confirm your MX records point to the correct mail servers.
  2. Check DNS records: Use LookMyIP's DNS Lookup (lookmyip.com/dns) to verify your SPF, DKIM, and DMARC TXT records.
  3. Check DNS propagation: Use LookMyIP's DNS Propagation Checker (lookmyip.com/propagation) to confirm the MX records have propagated globally.
  4. Send a test email: Send an email from your new address to a personal Gmail account. In Gmail, click "Show original" to check that SPF, DKIM, and DMARC all show PASS.
  5. Receive a test email: Send an email to your new address from an external account to confirm incoming mail works.

DNS changes can take up to 48 hours to propagate, but most changes are visible within 1–2 hours.

Common Setup Issues

Emails not arriving: MX records haven't propagated yet, or they're pointing to the wrong server. Check with LookMyIP's DNS Propagation tool.

Emails going to spam: Missing SPF, DKIM, or DMARC records. Use DNS Lookup to verify all authentication records are in place.

Cannot send email: Check that your email client is configured with the correct SMTP server, port (587 for TLS), and authentication credentials.

Old MX records still active: If you previously used a different email provider, make sure to remove their MX records. Having duplicate MX records from different providers can cause emails to be delivered unpredictably.

SPF "too many lookups" error: If you have multiple services (email provider + marketing tool + transactional email), you may exceed SPF's 10 DNS lookup limit. Use SPF flattening tools or consolidate sending services.

Try It Yourself

Use LookMyIP's free tools to look up IP addresses, check DNS records, verify SSL certificates, and more.