我有IP 1.1.1.1上的 somedomain.com
我使用Outlook连接到mail.somedomain.com发送/接收邮件
所以我的DNSloggingsomedomain.com是典型的:
www.somedomain.com >>> A >>> 1.1.1.1 somedomain.com >>> A >>> 1.1.1.1 somedomain.com >>> MX >>> mail.somedomain.com mail.somedomain.com >>> A >>> 1.1.1.1
但是我也从另一个 domain.com和IP 2.2.2.2上的另一台服务器发送了一些邮件(直接使用PHP邮件function)
我试图使用微软向导build立SPFlogging(旧的开放SPF向导不再工作)
向导创build的SPF是这样的:
v=spf1 a mx ip4:1.1.1.1 mx:mail.somedomain.com ip4:2.2.2.2 -all
但是当我从2.2.2.2发送邮件时收到一些邮件 : SPF Failed - not authorized message
你知道这种情况下正确的SPF价值吗?
编辑1:如明斯歌问我张贴SPF失败的消息
This message was created automatically by mail delivery software. A message that you sent could not be delivered to one or more of its recipients. This is a permanent error. The following address(es) failed: [email protected] SMTP error from remote mail server after MAIL FROM:<[email protected]> SIZE=120379: host imp-3.mail.tiscali.it [213.205.33.247]: 550 5.1.0 <[email protected]> SPF Failed - not authorized ------ This is a copy of the message, including all the headers. ------ ------ The body of the message is 116808 characters long; only the first ------ 106496 or so are included here. Return-path: <[email protected]> Received: from mild by server081.mildfred.com with local (Exim 4.77) (envelope-from <[email protected]>) id 1SRRp1-001a8D-8Z; Mon, 07 May 2012 13:34:07 -0400 To: <[email protected]> Subject: ...
编辑2 :正如我从IP 2.2.2.2发送邮件 nickgrim正确注意到我使用somedomain.com(这是在IP 1.1.1.1)上的地址发送它们 。 我这样做的原因是,如果邮件因任何原因被拒绝(发生这种情况),我会在现有地址<[email protected]>上收到通知。
首先,正确的SPFlogging为您的域名somedomain.com是…
somedomain.com. IN TXT "v=spf1 mx ip4:2.2.2.2 -all"
这意味着您只能从您的邮件服务器(定义在MXlogging中) mail.somedomain.com或IP地址为2.2.2.2的主机发送邮件。
邮件交易时,这些邮件应该有“HELO”或“MAIL FROM”身份的somedomain.com 。
Marco,你会显示授权失败返回的邮件头吗?
你说2.2.2.2发送的一些邮件不通过SPFvalidation,对吗? 你的2.2.2.2服务器的位置有多个上网线路吗? 传出邮件stream量可能会通过另一个互联网线路传送,因此可能会传出另一个IP地址。
而且,你的SPFlogging是不必要的复杂的。 所有必要的将是v=spf1 mx ip4:2.2.2.2 -all 。 需要列出从您的域发出邮件的每个IP的一个实例。
Marco,FWIW – 现在我发现http://www.unlocktheinbox.com/spfwizard/是一个非常棒的SPF向导(仅仅为了将来的知识),并且是一切与DNS / Email相关的大量资源。
他们也有一个伟大的DNSloggingtesting工具。 每当我做出改变,我总是发送一封testing邮件到[email protected]来validationlogging。 这让我省了更多的时间,而不是我所愿意承认的。
我看过一个早期的评论,指出只有“部分”的电子邮件被封锁,你说的方式是否准确,还是全部被封锁? 作为评论的结果你做了什么?