![Gmail 未检测到来自 vultr 服务器的 PTR 记录](https://linux22.com/image/784184/Gmail%20%E6%9C%AA%E6%A3%80%E6%B5%8B%E5%88%B0%E6%9D%A5%E8%87%AA%20vultr%20%E6%9C%8D%E5%8A%A1%E5%99%A8%E7%9A%84%20PTR%20%E8%AE%B0%E5%BD%95.png)
我在 vultr VM 上运行了一个 SMTP 服务器。我已将 rDNS 设置为指向我的邮件域名mail.idimitrov.dev
。DNS 设置指向 ipv4 和 ipv6 上的该机器,mail.idimitrov.dev
并指向 上的 github 页面idimitrov.dev
。
当我仅向 Gmail 发送电子邮件时,它告诉我没有 PTR 记录。
| host gmail-smtp-in.l.google.com [2a00:1450:4013:c07::1b]
| SMTP error from remote mail server after pipelined end of data:
| 550-5.7.25 [2001:19f0:6c01:2f25:399c:6832:fa7c:c123] The IP address sending this
| 550-5.7.25 message does not have a PTR record setup, or the corresponding
| 550-5.7.25 forward DNS entry does not point to the sending IP. As a policy,
| 550-5.7.25 Gmail does not accept messages from IPs with missing PTR records.
| 550-5.7.25 Please visit
| 550-5.7.25 https://support.google.com/mail/answer/81126#ip-practices for more
| 550 5.7.25 information. fl6-20020a1709072a8600b008b466a03af6si17950149ejc.3 - gsmtp
其他邮件提供商则不是这种情况。
我更改了 rDNS 设置以指向idimitrov.dev
并再次测试。结果相同。
以下是该命令的输出dig
:
~ ─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── at 08:55:53
❯ dig -x 209.250.239.243
; <<>> DiG 9.18.12 <<>> -x 209.250.239.243
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 64879
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 1
;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 1232
; COOKIE: 96ded523f01fcbcb0100000063f70e07b977d3b949d3c8d8 (good)
;; QUESTION SECTION:
;243.239.250.209.in-addr.arpa. IN PTR
;; ANSWER SECTION:
243.239.250.209.in-addr.arpa. 3321 IN PTR idimitrov.dev.
;; Query time: 0 msec
;; SERVER: 192.168.0.1#53(192.168.0.1) (UDP)
;; WHEN: Thu Feb 23 08:56:07 EET 2023
;; MSG SIZE rcvd: 112
~ ─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── at 08:56:07
❯ dig -x 2001:19f0:6c01:2f25:5400:04ff:fe48:12ba
; <<>> DiG 9.18.12 <<>> -x 2001:19f0:6c01:2f25:5400:04ff:fe48:12ba
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 32491
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 1
;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 1232
; COOKIE: 82062aa836133bb70100000063f70e0a54a88c9478150aaa (good)
;; QUESTION SECTION:
;a.b.2.1.8.4.e.f.f.f.4.0.0.0.4.5.5.2.f.2.1.0.c.6.0.f.9.1.1.0.0.2.ip6.arpa. IN PTR
;; ANSWER SECTION:
a.b.2.1.8.4.e.f.f.f.4.0.0.0.4.5.5.2.f.2.1.0.c.6.0.f.9.1.1.0.0.2.ip6.arpa. 3445 IN PTR idimitrov.dev.
;; Query time: 0 msec
;; SERVER: 192.168.0.1#53(192.168.0.1) (UDP)
;; WHEN: Thu Feb 23 08:56:10 EET 2023
;; MSG SIZE rcvd: 156
它表明我已经为 ipv4 和 ipv6 设置了 rDNS。
为什么谷歌这么说呢?