2015-02-10 95 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私鑰來簽署消息。

相關問題