Why am I no longer receiving email after adding my domain to Vercel?

When adding a custom domain to your project and changing the Nameservers of the domain to use Vercel's one, you may need to add MX records to ensure you continue to receive emails.

By adding MX records, you are providing mail services with instructions for where to send emails sent to your domain. Your domain registrar or mail provider will be able to provide you with a list of records that needs to be added.

DNS Preset

You can use the DNS UI to add a preset for common mail services.

The preset dropdown in the DNS UI.
The preset dropdown in the DNS UI.

If your email provider is not in the list of presets, you can proceed to next section where we will discuss adding records manually.

Adding DNS Records

While the DNS UI does have a preset for Google Workspace, it will serve as an example in this article. You can consult the documentation for Google Workspace here

First you need to insert the MX records related to your service:

Adding a MX record to your domain.
Adding a MX record to your domain.

You will likely need to repeat this step multiple times, depending on the number of records your provider requires you to add.

The second step is to verify the domain. Google Workspace is requiring a TXT record so we can verify the domain.

Adding a TXT record to your domain.
Adding a TXT record to your domain.

In this case, the TXT should be in the root domain and that is why the 'name' field is empty. You need to check the required arguments with your mail provider.

NOTE: It can take a few minutes for the added records to become globally available.

Couldn't find the guide you need?