大网数据广告活动
服务器运维问答

Gmail does not accept mail from a new VPS server with PTR setup

· 52CE 我爱测

I have PTR records setup but I am not able to deliver mail to Gmail accounts: host gmail-smtp-in.l.google.com[2607:f8b0:4004:c08::1b] said: 550-5.7.25 [2a01:4ff:f0:a7b6::1] The IP address sending this message does not 550-5.7.25 …

问题原文

原帖链接 · pwz2000 · CC BY-SA 4.0

I have PTR records setup but I am not able to deliver mail to Gmail accounts:

host gmail-smtp-in.l.google.com[2607:f8b0:4004:c08::1b] said: 
550-5.7.25 [2a01:4ff:f0:a7b6::1] The IP address sending this message does not
550-5.7.25 have a PTR record setup, or the corresponding forward DNS entry does 
550-5.7.25 not point to the sending IP. As a policy, Gmail does not accept 
550-5.7.25 messages from IPs with missing PTR records. Please visit
550-5.7.25  https://support.google.com/mail/answer/81126#authentication for more 
550-5.7.25 information.
u1-20020ac87501000000b00315c38791casi6985465qtq.683 - gsmtp (in reply to end of DATA command)

Can someone please walk me through on how to setup my PTR records correctly. I am hosted on Hetzner Cloud and used Rainloop to create the email accounts.

已采纳解答

原帖链接 · Tomek · CC BY-SA 4.0

Your PTR record for IPv6 is setup correctly (and strictly speaking it seems to be no longer required by Gmail).

Saying that one hint is in the message Gmail sends to you:

or the corresponding forward DNS entry does 550-5.7.25 not point to the sending IP

Which is the case here:

tkepczyn-linux1:~> dig mail.saveneur.com aaaa +short
tkepczyn-linux1:~> 

There is no mapping from the mail.saveneur.com back to the IPv6 address.

Saying the above please also consider setting up SPF record. If it is missing this may be the real cause of this error. Unfortunately I cannot help with this as you haven't provided the sending domain name.

摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。

资料来源与适用范围

资料来源
Server Fault
适用范围
以原帖系统、软件版本与发布日期为准(2022-07-27)
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY-SA 4.0

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。