How to Use a Custom Email Domain with Gmail

Here’s exactly what I did to set up my own firstname@lastname.com email address in Gmail, allowing me to seamlessly use that new address with my existing Gmail account:

This process takes an hour or two and costs around $10/year.

  1. Create a personal Gmail account if you don’t already have one.
    • Optional: go to gear icon > Settings > Images and disable automatic image loading. You know how some chat apps have read receipts? Well it turns out that nosy email senders (e.g. spammers) often use inline images in a similar way to determine whether the recipient has opened their message.

  2. Buy a domain name at Namecheap, e.g. chaidarun.com.
    • Try to get a .com for the credibility and familiarity. You could get a .org or .net if your preferred .com isn’t available, but then you run the risk of people forgetting and trying to email you at .com anyway1.
    • This is the only step that costs money!

  3. Go to your Namecheap account > Profile > Settings and enable 2FA.
    • By default, Namecheap sends a verification code to your @gmail.com address whenever you try to log in. Enabling 2FA via either TOTP or Yubikey will replace that step, removing the dependency on your old address—more on this later.
  4. Create a free Cloudflare account and “Add a Site” for your new domain
    • Like me, you might already be using their free CDN on your personal website. You should just reuse your existing site entry if your desired custom email address will be on the same domain.
  5. Go to your Cloudflare site’s dashboard > DNS and take note of your nameservers.

  6. Go back to your Namecheap account > Domain List > Manage > Nameservers > Custom DNS and enter in those nameserver values.
    • DNS is like the internet’s phonebook system. DNS records are pieces of metadata associated with a given domain name, similar to how a phonebook associates your phone number and home address with your full name. By pointing your domain to Cloudflare’s nameservers, you tell the entire internet to consult Cloudflare as the keeper of your domain’s metadata.

  7. Go back to your Cloudflare site dashboard > Email and enable email routing.
    • This is the point at which you actually choose your new custom address, e.g. firstname@lastname.com

    • Routing solves the easy half of the email equation: receiving email at your new address. The rest of this guide tackles sending email from your new address.
  8. Create a free SMTP2GO account.
    • This is SMTP as a service, similar to SendGrid and Mailgun and Mailjet and Amazon SES and many many more. Businesses normally use these services to blast out transactional (i.e. marketing) emails, but they also handle personal email perfectly fine. It makes little difference which SMTP service you choose—I went with SMTP2GO as recommended on Hacker News and Reddit.
    • You don’t really need to know anything about SMTP servers beyond the fact that you need one in order to send email.
  9. At SMTP2GO > Settings > Verified Senders, add your domain as a sender domain. Take note of its CNAME records.

  10. Go to your Cloudflare site dashboard > DNS and add those CNAME records.

  11. Go to SMTP2GO > Settings > SMTP Users and “Add SMTP user” with default settings. Take note of the connection details.

  12. Go to Gmail > gear icon > Settings > Accounts and Import > Send mail as > Add another email address, uncheck “Treat as an alias”, and enter the connection details from the previous step.
    • Some other guides online will tell you to use Gmail’s own smtp.gmail.com here, which mostly works and is slightly easier than setting up SMTP2GO. The problem there is that Gmail’s SMTP server won’t sign outgoing mail from your new address with DKIM, increasing the likelihood that your messages will get marked as spam. Services like SMTP2GO do handle DKIM, SPF, etc.

  13. Add your new email address to your Google account as an alternate email.
    • Profile pictures are a Gmail thing, not an email thing. Gmail users will find it sketchy if you send them a faceless email from your new address, so how do you tell Google what picture to show them? Setting your new address as an alternate email in your Google account will cause Gmail recipients to see your Google photo even when you email them from your non-Gmail address.

  14. Verify reliable deliverability with tools like Mail Tester and Learn DMARC.


Congrats, you did it! Now to explain some decisions above in more detail…

Why you need a custom email domain

Email is just one of many ways to communicate online, while your email address is your entire online identity. If you accidentally delete all your email messages, that’s a bummer but not too bad. If you ever lose control of your email address, which is tied to your accounts on dozens (if not hundreds) of other websites, that’s catastrophic.

In the worst case, someone takes over your Gmail and now has access to your other online accounts via password reset. In a hopefully more likely scenario, you might simply want to change email providers without needing to also update all your online accounts and human contacts. Gmail is popular today, but remember Hotmail and Yahoo Mail?

By decoupling your email address from your email provider, you retain ownership of your own identity.

Why you should still use Gmail

Once you fully own your email address, the choice of email provider becomes less important. Gmail is still perfectly fine for the actual handling of email—it filters spam with surgical precision, it tends to have better features than competitors, and it costs $0.

Privacy-conscious people might balk at giving their emails to the world’s largest advertising company, who also happens to be a world leader in artificial intelligence. That’s a reasonable take, but a few counterpoints worth considering:

Why you shouldn’t worry about email privacy

Generally speaking, it’s a lost cause. Email was invented over half a century ago without any thought given to privacy or security—it’s the digital equivalent of postcards. Would you write your credit card info on a postcard, visible to your landlord and your nosy neighbors and who knows how many random postal workers? This is why your bank never emails you sensitive information. Instead, banks go to the trouble of building email-like communication channels on their own websites for customers.

If you really need email privacy because you’re a whistleblower or journalist then there’s PGP, but that’s hardly the normal use case for email. Extremely few people know how insecure email is, let alone care about it, let alone are willing to jump through user-unfriendly hoops like PGP or ProtonMail, let alone talk to people who also choose to jump those same hoops.

For the vast majority of ordinary people who just want their private messages with friends and family to actually be private, chat apps like Signal easily beat email. If Signal itself is too hard a sell (fair enough), WhatsApp and Google Messages are more popular alternatives that use the same end-to-end encryption technology created by Signal.


References:

  1. I have a friend who snagged fawm.org for his website, only to then spend several years battling a domain squatter for control of fawm.com. In the meantime, the latter domain housed a hardcore porn website.