今天我注意到 Gmail 将从我的服务器收到的所有邮件发送到垃圾邮件文件夹。我检查了邮件标题,发现以下内容:
Authentication-Results: mx.google.com;
spf=neutral (google.com: 2001:4ba0:cafe:........ is neither permitted nor denied by best guess record for domain of root@myserver.com) smtp.mail=root@myserver.com
Run Code Online (Sandbox Code Playgroud)
因此,看起来 Sendmail 是从 IPv4 的 IP6 地址发送邮件,并且没有 IPv6 的 SPF 和 PTR 记录。如何强制 Sendmail 从 IPv4 发送邮件?
谢谢。
sendmail ×1