使用Nodemailer结合Outlook账号发送邮件至Gmail失败的问题求助
Troubleshooting Gmail Not Receiving Emails from Outlook (via Nodemailer or Manual Send)
I've run into a nearly identical issue before—Gmail refusing to accept emails from my Outlook account, even when I sent them manually! Here are the practical fixes that worked for me and other devs in the community:
1. Audit Outlook's Anti-Spam Settings
- Head to your Outlook account settings > Mail > Junk Email > Safe Senders and add
@gmail.comto the list. This stops Outlook from flagging Gmail-bound emails as outbound spam before they even leave your account. - Double-check the Blocked Senders list too—make sure you didn’t accidentally add Gmail domains or your target Gmail address here by mistake.
2. Dig into Gmail's Custom Filter Rules
Just checking the spam folder isn’t enough—Gmail’s filters might be hiding emails elsewhere:
- Go to Gmail Settings > See all settings > Filters and Blocked Addresses. Look for any rules targeting your Outlook sender address that could auto-delete, archive, or move emails to a non-inbox folder. Delete or adjust these rules if you find any.
3. Verify SPF/DKIM/DMARC Authentication Records
Gmail is strict about email authentication—missing or misconfigured records will get your email rejected:
- If you’re using a custom domain linked to Outlook, confirm your domain has valid SPF, DKIM, and DMARC records. You can use free online checkers (no external links needed—just search for "SPF checker" in your browser) to validate these.
- For default
@outlook.com/@hotmail.comaddresses, Microsoft usually handles these records, but it’s still worth verifying to rule out any edge-case misconfigurations.
4. Check Outlook's Delivery Reports for Error Clues
This is the fastest way to pinpoint why Gmail is blocking your emails:
- In Outlook, find the sent email, right-click it > View Message Trace. Look for error codes or direct feedback from Gmail (like
550 5.7.1which indicates a rejection due to security policies). These codes will tell you exactly what’s going wrong.
5. Simplify Your Email Content to Test Filters
Overly complex content or trigger words might trigger Gmail’s aggressive filters:
- Send a test email with a plain subject (e.g., "Test Email") and minimal text (e.g., "Hello, this is a quick test"). If this goes through, gradually reintroduce elements from your original email to isolate what’s causing the block.
6. Check for Gmail Blacklisting or Receiving Limits
- If all else fails, your Outlook address might be on Gmail’s temporary or permanent blacklist. You can submit a removal request through Gmail’s official support channels.
- Also, rule out receiving limits—while rare for personal accounts, sending a high volume of emails in a short window can trigger temporary restrictions on Gmail’s end.
内容的提问来源于stack exchange,提问作者Shomy
相关产品推荐
相关产品推荐

