tro*_*skn 9 postfix google spf
我已经设置了 Postfix 并创建了一个映射到 Gmail 帐户的别名。当我从我自己的一个(谷歌邮件)帐户发送邮件时,它会通过,但如果来自外部的人给我发邮件,谷歌将不会接受来自我服务器的邮件。日志内容包含以下内容:
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=<test@example.com>, 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=<example@gmail.com>, orig_to=<example@mydomain.com>, 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))
Run Code Online (Sandbox Code Playgroud)
相关部分似乎是:
发送方不满足基本的 ipv6 550-5.7.1 发送认证准则和发送 550-5.7.1 ip 的 rdns 解析。请查看 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 sender@example.com) 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 sender@example.com) smtp.mail=sender@example.com
Run Code Online (Sandbox Code Playgroud)
现在,奇怪的是 Google 似乎正在根据原始发件人的 SPF 评估我的服务器。这是第三方,所以我无法控制他们的 SPF。如果我正确解释了这一点,Google 会认为我的服务器是消息的来源。这也许是问题的症结所在?
看起来我遇到了同样的问题:为什么要根据我的邮件服务器的 IP 而不是发件人的 IP 验证 SPF?
所以我通过pfix-srs
为我的邮件服务器安装和设置 spf 记录来解决 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 支持链接https://support.google.com/mail/answer/81126中描述的一些其他详细信息。
归档时间: |
|
查看次数: |
15916 次 |
最近记录: |