Google Cloud DNS邮件MX记录配置求助:已切换DNS但无法收信
Hey Chris, let's get your incoming mail sorted out since you can send but not receive—this is almost always an MX record configuration issue after a DNS migration. Here's exactly what you need to do in Google Cloud DNS:
Step 1: Access Your Google Cloud DNS Zone
Head directly into your Google Cloud DNS zone for mydomainname. Once you’re there, look for the Add record set button and click it to start configuring your MX records.
Step 2: Set Up Correct MX Record Values
MX records rely on specific priority numbers and target mail servers. If you’re using Google Workspace (the most common pairing with Google DNS), use these exact values (note the trailing dots—they’re critical for proper DNS resolution):
- Priority
1:ASPMX.L.GOOGLE.COM. - Priority
5:ALT1.ASPMX.L.GOOGLE.COM. - Priority
5:ALT2.ASPMX.L.GOOGLE.COM. - Priority
10:ALT3.ASPMX.L.GOOGLE.COM. - Priority
10:ALT4.ASPMX.L.GOOGLE.COM.
For each record set:
- Name: Leave it blank or enter
@to apply to your root domain. - Type: Select
MXfrom the dropdown menu. - TTL: Set to
300(5 minutes) temporarily to speed up propagation—you can increase it to86400(1 day) once everything works. - MX Data: Input the priority first, followed by the target server (don’t skip that trailing dot!).
Step 3: Remove Conflicting Old Records
Scan your existing DNS records in the zone and delete any old MX records from GoDaddy or other previous providers. Having conflicting MX entries will confuse incoming mail servers and block delivery.
Step 4: Verify Record Propagation
Wait 5-10 minutes for the new records to propagate, then run the command dig yourdomain.com MX in your terminal to check if the correct MX entries show up. You should see all the records you just added with their proper priorities.
Step 5: Rule Out Other Quick Fixes
- If you’re not using Google Workspace, confirm the exact MX values with your email service provider—they’ll give you the right priority and target combinations.
- Double-check that you haven’t accidentally set up any DNS records (like a CNAME on the root domain) that might override MX functionality.
- Ensure your domain isn’t listed on any DNS blocklists (though this is less likely since you can send mail successfully).
Once you’ve completed these steps, send a test email from an external account (e.g., Gmail, Yahoo) to your domain’s email address—you should receive it within a few minutes if everything is configured correctly.
内容的提问来源于stack exchange,提问作者Chris G.

