To use Google Workspace email with your domain, you need to configure specific DNS records in your domain's DNS zone. This guide will provide you with all the information to ensure your email service is set up correctly.
Step 1 – Preparations
Before setting up your DNS records, follow these steps:
Identify where your DNS zone is managed:
If your domain is pointing to Hostinger by nameservers, refer to this guide: How to manage DNS records.
If your domain is pointing elsewhere, update your DNS records on the platform where your domain is managed.
Remove any existing MX, SPF, DKIM, and DMARC records that point to other email services. Conflicting records can cause delivery issues.
Optional: Split email delivery. If you want to use both Hostinger Email and Google Workspace for the same domain, you can sett up split email delivery.
Incorrectly configured DNS records, especially when multiple email services are involved, can lead to routing issues, preventing email delivery or receipt.
Step 2 – Add MX records
MX (Mail Exchange) records route your email to Google Workspace servers. The required values depend on when you signed up for Google Workspace.
Before April 2023, use the following values:
Priority | Host | Value (Mail server) | TTL |
1 | @ | aspmx.l.google.com | 3600 |
5 | @ | alt1.aspmx.l.google.com | 3600 |
5 | @ | alt2.aspmx.l.google.com | 3600 |
10 | @ | alt3.aspmx.l.google.com | 3600 |
10 | @ | alt4.aspmx.l.google.com | 3600 |
After April 2023, only add this MX record:
Priority | Host | Value (Mail server) | TTL |
1 | @ | smtp.google.com | 3600 |
For more details, refer to Google Workspace MX record values.
Step 3 – Add SPF record
SPF (Sender Policy Framework) records help verify that emails sent from your domain are legitimate. Add the following TXT record:
Type | Host | Value (target) | TTL |
TXT | @ | v=spf1 include:_spf.google.com ~all | 3600 |
You can find more information in this article: Set up SPF - Google Workspace.
Step 4 – Add DKIM and DMARC records
To improve email security and reduce spam, it is strongly recommended to configure DKIM (DomainKeys Identified Mail) and DMARC (Domain-based Message Authentication, Reporting, and Conformance) records.
Set up DKIM: follow this official guide.
Set up DMARC: refer to this guide.
After making these changes, allow a few hours for DNS propagation. Once completed, your Google Workspace email will function seamlessly.