2015-02-10 96 views
0

在mailchimp中,我通过mailchimp网关从我的Gmail帐户发送邮件,并且邮件被签名为spf和dkim。但我有我自己的smtp网关,当我通过myserver.com从gmail或其他电子邮件帐户发送时,只有spf被应用?通过domain2.com从[email protected]发送邮件时应用dkim

Ps:dkim也适用,但前提是我的电子邮件发送与发送域位于同一个域。

有什么想法?  

Authentication-Results: mx.google.com; 
spf=pass (google.com: domain of [email protected]1.rsgsv.net designates 205.201.135.71 as permitted sender) [email protected]ail71.atl51.rsgsv.net; 
dkim=pass [email protected] 

回答

0

我看到你在你的问题中标记了php和phpmailer。如果您使用的是phpmailer - phpmailer支持DKIM签名,您可以使用它来为从任何域发送的消息添加DKIM签名(当然,在该域的DNS中创建了DKIM记录)。一个例子见Send mail in phpmailer using DKIM Keys

+0

嗨,谢谢你的回复。我正在使用postfix作为MTA – Adrian 2015-02-10 15:12:07

+0

在这种情况下,您可以使用phpmailer创建消息,使用php邮件程序向消息添加DKIM签名,然后使用phpmailer通过您的postfix MTA发送消息。 – mti2935 2015-02-10 19:09:08

0

如果我理解的问题,你想一个DKIM签名添加到从yourdomain.com发送Gmail地址...

我不认为这是去工作,为yourdomain.com做没有gmail私钥来签署消息。

相关问题