Developer Spin

Navigate back to the homepage

How to Send Email with Domain through GSuite

Drew Bredvick
November 20th, 2019 · 2 min read

Sending email with Domains

In order to send emails with a custom domain, we need to:

  1. Buy the domain
  2. Purchase email hosting
  3. Configure DNS records on the domain

We will focus on steps two and three in this post. This post assumes you are using a domain purchased through and have now CLI access configured.

You might be asking yourself:

Why can’t we just use Zeit (or other domain provider) for emails? Do I really need to pay more money?

The answer is yes, you do need to buy hosting. Namecheap actually has a pretty good description of why you need email hosting. Think of it as the same thing as website hosting, except for your emails.

Enter GSuite

GSuite is an alright product for sending emails from custom domains. To be clear, this tool is geared at enterprise businesses, so the UX leaves something to be desired.

Step One

Sign up for GSuite 💰💸

Step Two

Confirm you own the domain.

In GSuite admin, go to Manage Domains. Click Add A Domain or Domain Alias.

To verify you own the domain, you will need to set a TXT record on your domain’s DNS settings.

With Zeit’s now, it looks like the following:

List out your domains

1now dns ls

Using Google’s verification code, run the following command


Press Validate in GSuite and Google will try to confirm you own the domain. It may take some time before this works, be patient.

Step Three

Setup MX records.

After you prove you own the domain, it’s time to start forwarding along emails to Google.

This is also done via DNS records on your domain. Run each of these in your CLI.

1now dns add @ MX ASPMX.L.GOOGLE.COM 1
2now dns add @ MX ALT1.ASPMX.L.GOOGLE.COM 5
3now dns add @ MX ALT2.ASPMX.L.GOOGLE.COM 5
4now dns add @ MX ALT3.ASPMX.L.GOOGLE.COM 10
5now dns add @ MX ALT4.ASPMX.L.GOOGLE.COM 10

Verify the MX records with GSuite.

Step Four

Configure Gmail and GSuite.

Now, head over to Gmail.

Click on the settings gear, Accounts, and then “Add another email address”.

Enter in your new email and select “Treat as an alias”.

You may see the error:

Functionality not enabled. You must send emails through SMTP servers when you send as However, this functionality is not available for your account. Please contact your domain administrator for more information.

To fix this error, hop over to the Gmail settings in GSuite for End User Access and enable “Allow per-user outbound gateways”.

gmail setting in GSuite

Wait a few minutes and add the email address again in Gmail to resolve this issue.

Happy Emailing

If you want to test out your new email, send me an email from your new account at

Get my newsletter

I'll send my latest post right before I publish it here. Unsubscribe at any time.

More articles from Drew Bredvick

Notes on Naval's Money

I listened to Naval Ravikant's Twitter thread turned podcast about the concept of wealth creation nearly 30 times. Here are the takeaways.

September 6th, 2019 · 5 min read

Should I Buy This House?

You know, I'm really not sure. Let's do the math.

July 27th, 2019 · 2 min read
© 2019–2020 Drew Bredvick
Link to $ to $ to $ to $