我有两个网站托pipe在同一台服务器上。 我已经build立了第一个网站和相应的电子邮件服务器后,我build立了第二个网站。 这是更多的DNS问题。 第一台服务器长期以来一直无故障运行,其SPFlogging检查结果也很好,而且我发送的邮件没有问题。 我使用apache虚拟主机设置了第二台Web服务器,并使用iRedAdmin设置了第二个电子邮件域。 问题似乎在于我的SPFlogging,每当我从第二个域发送邮件时,它就被标记为垃圾邮件。 我已经使用原始的邮件服务器作为它的MX,但是我从来没有在同一个IP地址上做过两个电子邮件服务器,我不确定是否会把它弄糟。
以下是两个供参考的SPFlogging(主机名模糊处理):
这工作正常:
v=spf1 a mx a:server1.com mx:mail.server1.com ip4:xxxx ~all
这不起作用:
v=spf1 a mx a:server2.com mx:mail.server1.com ip4:xxxx ~all
和想法? 就邮件而言,服务器2只是server1的前端。 您可以将邮件发送到[email protected],但它会通过server1.com上的iredmail服务器进行路由。
任何洞察力将不胜感激,因为我需要我的消息,以防止被标记为垃圾邮件。
Received-SPF: neutral (google.com: xxxx is neither permitted nor denied by best guess record for domain of [email protected]) client-ip=xxxx;
好。 我不在乎你们是否知道我的IP地址,我只需要知道Gmail为什么把这个发送到垃圾邮件文件夹。 根据邮件中的标题,通过SPFtesting等。
Delivered-To: [email protected] Received: by 10.58.206.18 with SMTP id lk18csp38915vec; Fri, 22 Feb 2013 11:17:09 -0800 (PST) X-Received: by 10.68.203.100 with SMTP id kp4mr4779507pbc.186.1361560628737; Fri, 22 Feb 2013 11:17:08 -0800 (PST) Return-Path: <[email protected]> Received: from signtelligence.com ([198.71.84.238]) by mx.google.com with ESMTP id d10si3813292paz.55.2013.02.22.11.17.08; Fri, 22 Feb 2013 11:17:08 -0800 (PST) Received-SPF: pass (google.com: domain of [email protected] designates 198.71.84.238 as permitted sender) client-ip=198.71.84.238; Authentication-Results: mx.google.com; spf=pass (google.com: domain of [email protected] designates 198.71.84.238 as permitted sender) [email protected] Received: from localhost (localhost.localdomain [127.0.0.1]) by signtelligence.com (Postfix) with ESMTP id DD33E5362890 for <[email protected]>; Fri, 22 Feb 2013 23:17:07 +0400 (MSK) X-Virus-Scanned: Debian amavisd-new at signtelligence.com Received: from signtelligence.com ([127.0.0.1]) by localhost (signtelligence.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id NhgKkX5jwSBC for <[email protected]>; Fri, 22 Feb 2013 23:17:07 +0400 (MSK) Received: from claygarland.com (localhost.localdomain [127.0.0.1]) by signtelligence.com (Postfix) with ESMTPA id 76033536288F for <[email protected]>; Fri, 22 Feb 2013 23:17:06 +0400 (MSK) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Date: Fri, 22 Feb 2013 14:17:06 -0500 From: [email protected] To: <[email protected]> Subject: It's been a long time. Message-ID: <[email protected]> X-Sender: [email protected] User-Agent: RoundCube WebMail Hey. I just wanted to say hello. It's been a long time since we've talked. My new phone number is (xxx) xxx-xxxx. Give me a ring! Peace, Clay
首先,你的logging似乎有冗余的语法。
我在猜测,因为我们确实需要正确的域名和知识产权来确定任何事情。
v=spf1 a mx a:server1.com mx:mail.server1.com ip4:192.168.1.254 ~all
如果上面的SPF是server1.com的SPF,
v=spf1 a ~all
是同义词
v=spf1 a:server1.com ~all
而且,如果192.168.1.254是MXlogging的Alogging的IP,那么它也是多余的。
在一个侧面说明,我希望192.168.1.254是一个混淆的IP …你的SPF不应该在其中列出不可路由的IP。
因此,假设您使用两个域中的server1.com上的MXlogging发送电子邮件,则您的SPFlogging将如下所示;
在server1.com上;
v=spf1 +mx ~all
在server2.com上;
v=spf1 +mx:server1.com ~all
最重要的是,如果两个域都具有相同的MXlogging,则可以在两个域上使用相同的SPF。
在server1.com和server2.com上
v=spf1 +mx ~all
mx前面的+确保结果是通过而不是中立的结果。 特别是因为你使用软失败 (〜全部)
最后,我build议你阅读OpenSPF语法文档 。
我认为你误解了SPFlogging的工作原理。 这里有你所拥有的细节。
a:server1.com :如果发送服务器的IPparsing为server1.com,则允许该机器发送邮件。
mx:mail.server1.com :获取域mail.server1.com的MXlogging。 如果其中任何一个(可能有多个)parsing为发送服务器的IP,则允许该机器发送邮件。
ip4:192.168.1.254 :允许此IP为该域发送邮件。
所以,假设你在这里只有一台机器,如果第二个域的SPFlogging与第一个域相同,它应该可以工作。 即
v=spf1 a mx a:server1.com mx:mail.server1.com ip4:192.168.1.254 ~all
虽然,您可以根据IP如何解决这个问题来简化:
v=spf1 aa:server1.com ip4:192.168.1.254 ~all
另一件要检查的是你有一个正确的PTRlogging设置。 无论服务器从哪个IP发送,都应该有一个反向查找logging,无论服务器HELO自己如何。
祝你好运!