- MX Record: An MX record specifies the mail exchange servers for your domain. In this case, you want to direct email traffic to Google's mail servers. Add the following MX record to your domain's DNS configuration:
RECORD PRIORITY ASPMX.L.GOOGLE.COM. 1 ALT1.ASPMX.L.GOOGLE.COM. 5 ALT2.ASPMX.L.GOOGLE.COM. 5 ALT3.ASPMX.L.GOOGLE.COM. 10 ALT4.ASPMX.L.GOOGLE.COM. 10
- SPF Record: SPF record specifies which IP addresses are allowed to send email on behalf of your domain. You need to create a TXT record with the following value:
v=spf1 include:_spf.google.com ~all
- DMARC Record: DMARC record is used to specify policies for how email receivers should handle messages that fail SPF or DKIM checks. To create a DMARC record, add the following TXT record to your domain's DNS configuration:
v=DMARC1; p=none; rua=mailto:email@example.com
Make sure to replace "yourdomain.com" with your actual domain name.
By configuring these three DNS records, you can receive email from Gmail as an email provider and ensure that your messages are authenticated and not marked as spam.