我已经设置了Postfix并创build了映射到gmail帐户的别名。 当我从我自己的(谷歌邮箱)帐户发送邮件时,邮件会通过邮件发送,但是如果外部的人邮寄给我,Google将不会接受来自我的服务器的邮件。 日志东西包含这个:
Aug 20 13:47:09 Ubuntu-1204-precise-64-minimal postfix/smtpd[8249]: connect from mailout.example.com[1.1.1.1] Aug 20 13:47:09 Ubuntu-1204-precise-64-minimal postfix/smtpd[8249]: DB399E3318: client=mailout.example.com[1.1.1.1] Aug 20 13:47:09 Ubuntu-1204-precise-64-minimal postfix/cleanup[8253]: DB399E3318: message-id=<015e01ce9d9a$f988a750$ec99f5f0$@dk> Aug 20 13:47:09 Ubuntu-1204-precise-64-minimal postfix/qmgr[8230]: DB399E3318: from=<[email protected]>, size=3813, nrcpt=1 (queue active) Aug 20 13:47:09 Ubuntu-1204-precise-64-minimal postfix/smtpd[8249]: disconnect from mailout.example.com[1.1.1.1] Aug 20 13:47:10 Ubuntu-1204-precise-64-minimal postfix/smtp[8255]: DB399E3318: to=<[email protected]>, orig_to=<[email protected]>, relay=gmail-smtp-in.l.google.com[2a00:1450:4010:c04::1b]:25, delay=1.1, delays=0.22/0/0.14/0.76, dsn=5.7.1, status=bounced (host gmail-smtp-in.l.google.com[2a00:1450:4010:c04::1b] said: 550-5.7.1 [2a01:4f8:d12:11c2::2 16] The sender does not meet basic ipv6 550-5.7.1 sending guidelines of authentication and rdns resolution of sending 550-5.7.1 ip. Please review 550 5.7.1 https://support.google.com/mail/answer/81126for more information. qh9si1111170lbb.172 - gsmtp (in reply to end of DATA command))
有关部分似乎是:
发件人不符合发送550-5.7.1 ip的基本ipv6 550-5.7.1发送validation准则和rdnsparsing。 请查阅550 5.7.1 https://support.google.com/mail/answer/81126了解更多信息。
任何想法如何我可以解决这个问题?
在通过邮件,我发现以下标题:
Received-SPF: neutral (google.com: 1.1.1.1 is neither permitted nor denied by best guess record for domain of [email protected]) client-ip=1.1.1.1; Authentication-Results: mx.google.com; spf=neutral (google.com: 1.1.1.1 is neither permitted nor denied by best guess record for domain of [email protected]) [email protected]
现在,好奇的是,Google似乎正在评估我的服务器与原始发件人的SPF。 这是第三方,所以我无法控制自己的SPF。 如果我正确地解释这个,Google认为我的服务器是消息的来源。 这可能是问题的关键吗?
它看起来像我有这样的问题: 为什么SPF被validation对我的邮件服务器的IP而不是发件人的IP?
所以我通过安装pfix-srs并为我的邮件服务器设置一个spflogging来解决spf问题。 我遵循这个指南(必须手动安装一些软件包,因为它们不适用于Ubuntu): http : //blog.phusion.nl/2012/09/10/mail-in-2012-from-an-admins-透视/
这似乎解决了spf问题(邮件现在通过spf),但唉,邮件仍然是从一些发件人下降。 我现在试图设置rdns条目,看看是否解决。 一旦知道,我会回到这里。
有效。 总之,我做了什么来解决这个问题是:
pfix-srs 。 v=spf1 ip4:1.1.1.1 ip6:abcd:abc:123:4567::8 ~all ) Google提供的链接很好地解释了这一点。 你应该查看Google在那里列出的要求列表,并检查是否满足其中的每个要求,如果不满足,则修复该要求。
我认为最基本的是这些:
如果你满足这三个要求,你至less应该被接受。 下一步是避免垃圾邮件文件夹,这可能有点困难。 在很大程度上取决于用户是否将您的电子邮件标记为垃圾邮件,以及Google支持链接https://support.google.com/mail/answer/81126中介绍的其他一些详细信息。