我们正在开发一个电子邮件发送应用程序,我们允许我们的用户指定From:他们的电子邮件将从From:头。
假设我们的域是mydomain.com ,我们的客户域是clientdomain.com 。
所有电子邮件都从我们的IP地址发送,地址为@ mydomain.com,作为MAIL FROM 。 所有的邮件都是DKIM与我们的域名签署。 在mydomain.com上build立SPFlogging,只允许使用我们的IP地址,而我们的客户也在clientdomain.com上设置了SPFlogging,其IP地址允许在那里(不包括我们的IP地址)。 另请注意, clientdomain.com没有DMARClogging。
根据我读过的所有内容,SPF应该根据MAIL FROM命令(来自信封)中find的域进行validation,而不是From:头中的域。
我们的客户做了一个testing,并发送了一封电子邮件给自己,这个问题有什么关系?
我们还search了至less一个FROM标题地址不允许发送邮件,什么都没发现,这看起来像是一个非常罕见的错误。
这是我们第一次看到这个错误,而且我们对这个错误感到困惑,或者我们没有正确理解SPF,或者如果这个服务器做错了。
这是我们收到的重要部分的反弹信息的开始:
Hi. This is the qmail-send program at mailserver.mydomain.com. I'm afraid I wasn't able to deliver your message to the following addresses. This is a permanent error; I've given up. Sorry it didn't work out. <[email protected]>: xxx.xxx.xxx.xxx failed after I sent the message. Remote host said: 550 5.7.1 At least one FROM header address not allowed to send mail from yyy.yyy.yyy.yyy --- Below this line is a copy of the message. Return-Path: <n1cfbmy3zBZGX8Fz5o69Rp5FSgzV_h2PEXzK_I7dbLqTWbzuPL2iNrc-BAX2ba0h@mydomain.com> Received: (qmail 13643 invoked from network); 4 May 2015 15:42:13 -0000 Received: from otherserver.mydomain.com (HELO OTHERSERVER) (10.10.0.1) by anotherserver.mydomain.com with SMTP; 4 May 2015 15:42:13 -0000 From: "Client Name" <[email protected]> To: [email protected] ...