![我无法从我的服务器向 Gmail 地址发送电子邮件](https://linux22.com/image/509074/%E6%88%91%E6%97%A0%E6%B3%95%E4%BB%8E%E6%88%91%E7%9A%84%E6%9C%8D%E5%8A%A1%E5%99%A8%E5%90%91%20Gmail%20%E5%9C%B0%E5%9D%80%E5%8F%91%E9%80%81%E7%94%B5%E5%AD%90%E9%82%AE%E4%BB%B6.png)
我使用的是 postfix,并且已设置 spf、dkim 和 domainkeys。我可以将电子邮件发送到 Yahoo,但不能发送到 gmail。以下是发送到 Yahoo 的电子邮件的标题。Yahoo 将该电子邮件报告为域密钥已验证。
X-Apparently-To: brianegge at yahoo.com via 68.142.206.167; Sat, 20 Mar 2010 05:29:19 -0700
Return-Path: <domains at theeggeadventure.com>
X-YahooFilteredBulk: 67.207.137.114
X-YMailISG: x7_Rl9EWLDuugoqPcORhih0FeQMOaIIpz4qfuu9ttx1xbo3uKI2kz.CLUy2cJ1BTtHAwuJtrsGRsveHIx.Dx95avNGlPPGWy_cSpnEwWLXGxBciO.YgtSQxdURQiWLCLvbHej0QPjQIHFjAFjdeGhJd2Y8NgTW1wcExq45Sb7LMlOGvtGMjSQuc8QazwXUxpZrQbIxgSQUTmzQO1x30xaZ2Us6TQTab7Wpya6OgAX.emKOM3phfS5kfhYj9FLQ.qi32sFNWnAoFdVK596OTP2F63PAJOVM5qPsM2jIAbJylIBmnj94LO7hOVr3KOS6XLtCPRn2Oe
X-Originating-IP: [67.207.137.114]
Authentication-Results: mta1055.mail.mud.yahoo.com from=theeggeadventure.com; domainkeys=pass (ok); from=theeggeadventure.com; dkim=pass (ok)
Received: from 127.0.0.1 (EHLO mail.theeggeadventure.com) (67.207.137.114) by mta1055.mail.mud.yahoo.com with SMTP; Sat, 20 Mar 2010 05:29:19 -0700
Received: by mail.theeggeadventure.com (Postfix, from userid 1003) id BB5B01C16A4; Sat, 20 Mar 2010 12:29:16 +0000 (UTC)
DomainKey-Signature: a=rsa-sha1; s=2010; d=theeggeadventure.com; c=simple; q=dns; b=JHbK9VhqyQTfpQFqaXxJrKpEG9h9H0IZ0LdWoBooJEA7hv3SYWmFUtyE247EuwoaG gzApKJ1DuRhwESZ7PswrbzuaUL8poAUO8LmMvZ+OqnDolgNSJUYWu0FcO+fe3H4m9ZD grkj0xMpHw+uFjXV4plKO+sa8olJXJAmP+9cMEo=
X-DKIM: Sendmail DKIM Filter v2.8.2 mail.theeggeadventure.com BB5B01C16A4
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=theeggeadventure.com; s=2010; t=1269088156; bh=bUlMldcnzFCmCmNT8qjpRl6fiY1YyjiZiC9jhCXASOw=; h=Subject:To:Message-Id:Date:From; b=EVNolTlh4Gch5/HIrrHaRQvcApl7wkB42gB44NsPcLZD2QrhuOvnhanhnEB4UbV0e A+3dAOjhX7LKzgGrn11jXNTiEjNX1vQDsX3HyG0fNra73aWiGTzr1nHJfnuEJ7Ph0j 5tp0HRL5jjikD1XJcvmsYzTpT22mxuz60HXYRB1s=
Subject: cron
To: <brianegge at yahoo.com>
X-Mailer: mail (GNU Mailutils 1.2)
Message-Id: <[email protected]>
Date: Sat, 20 Mar 2010 12:29:16 +0000 (UTC)
From: This sender is DomainKeys verified [email protected] (domains) View contact details
Content-Length: 818
当我发送到 Gmail 时,我在服务器日志中看到以下内容,但该邮件甚至没有到达我的垃圾邮件文件夹。
Mar 20 12:59:12 Everest postfix/pickup[27802]: C81C61C16A4: uid=1000 from=<egge>
Mar 20 12:59:12 Everest postfix/cleanup[27847]: C81C61C16A4: message-id=<[email protected]>
Mar 20 12:59:13 Everest postfix/qmgr[27801]: C81C61C16A4: from=<[email protected]>, size=2784, nrcpt=1 (queue active)
Mar 20 12:59:14 Everest postfix/smtp[27849]: C81C61C16A4: to=<brianegge at gmail.com>, relay=gmail-smtp-in.l.google.com[209.85.223.24]:25, delay=2.1, delays=0.39/0.28/0.13/1.3, dsn=2.0.0, status=sent (250 2.0.0 OK 1269089954 32si4566750iwn.51)
Mar 20 12:59:14 Everest postfix/qmgr[27801]: C81C61C16A4: removed
我已经发送电子邮件来测试服务,报告显示一切正常。我还检查了所有 RBL 列表,但我不在其中任何一个列表中。
答案1
我不确定这是否就是您的确切问题,但我遇到过类似的事情,就我而言,我可以通过为我的邮件服务器的 IP 设置反向 DNS 条目来解决这个问题。这样,接收 SMTP 服务器就可以验证从您的服务器 IP 发送的消息是否可以解析为与 SMTP 标头中的“发件人”地址相同的域名。(我可能在某些细节上错了。)
即使您还设置了 SPF 和 DomainKeys,Google 似乎对此特别挑剔。