Jinnrry / PMail

Private EMail Server
GNU General Public License v2.0
1.45k stars 133 forks source link

gmail邮件发送不出去,报PTR错误 #181

Closed bwb0101 closed 2 months ago

bwb0101 commented 2 months ago

完整性要求 / Integrity requirements

版本

2.6.2

描述

日志: [info][2024-07-31 16:43:50][675d4b6e66a9f9469c0e8cf2430c70b0][/home/runner/work/PMail/PMail/server/controllers/email/send.go:58]发送邮件 [error][2024-07-31 16:43:53][675d4b6e66a9f9469c0e8cf2430c70b0][/home/runner/work/PMail/PMail/server/utils/send/send.go:207][0xc000038520] 邮件投递失败550 5.7.25 [2401:3400:8000:1::69] The IP address sending this message does not 5.7.25 have a PTR record setup, or the corresponding forward DNS entry does 5.7.25 not match the sending IP. As a policy, Gmail does not accept 5.7.25 messages from IPs with missing PTR records. For more information, go 5.7.25 to 5.7.25 https://support.google.com/a?p=sender-guidelines-ip 5.7.25 To learn more about Gmail requirements for bulk senders, visit 5.7.25 https://support.google.com/a?p=sender-guidelines. d9443c01a7336-1fed7ee81f0si149452475ad.272 - gsmtp

域名配置: image

重现方式

发送邮件到gmail

服务端配置



服务端日志



Jinnrry commented 2 months ago

DNS的记录写的ipv4地址,但是发件用的是ipv6地址,两个记录匹配不上

Jinnrry commented 2 months ago

https://powerdmarc.com/zh/spf-record-lookup/

你可以用这个工具检查你的spf记录设置,你用ipv6的话需要把你的ipv6地址加上去,或者限制只用ipv4地址通信

bwb0101 commented 2 months ago

配置上没有指定ip设置吧?

bwb0101 commented 2 months ago

机器有ipv4和ipv6,但pmail优先用了ipv6,不知咋回事

Jinnrry commented 2 months ago

目前没有强制ipv4的选项,你在spf记录里面加上你的v6地址把

bwb0101 commented 2 months ago

行,我明天试试