【问题标题】:Apply dkim when sending from x@domain1.com via domain2.com从 x@domain1.com 通过 domain2.com 发送时应用 dkim
【发布时间】:2015-04-10 07:04:22
【问题描述】:

在 mailchimp 中,我通过 mailchimp 网关从我的 gmail 帐户发送,并且电子邮件已签署 spf 和 dkim。但是我有自己的 smtp 网关,当我通过 myserver.com 从 gmail 或其他电子邮件帐户发送时,只应用 spf?

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

有什么想法吗?

Authentication-Results: mx.google.com;
spf=pass (google.com: domain of bounce-mc.us7_22204859.801345-EMAILADDRESS=gmail.com@mail71.atl51.rsgsv.net designates 205.201.135.71 as permitted sender) smtp.mail=bounce-mc.us7_22204859.801345-EMAILADDRESS=gmail.com@mail71.atl51.rsgsv.net;
dkim=pass header.i=@mail71.atl51.rsgsv.net

【问题讨论】:

    标签: php email smtp spf dkim


    【解决方案1】:

    如果我理解这个问题,您正在尝试将 DKIM 签名添加到从 yourdomain.com 发送的 gmail 地址...

    我认为这行不通,因为 yourdomain.com 没有用于签名邮件的 gmail 私钥。

    【讨论】:

      【解决方案2】:

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

      【讨论】:

      • 在这种情况下,您可以使用 phpmailer 创建消息,使用 php mailer 为消息添加 DKIM 签名,然后使用 phpmailer 通过您的 postfix MTA 发送消息。
      猜你喜欢
      • 1970-01-01
      • 2019-08-20
      • 2021-10-21
      • 1970-01-01
      • 2017-04-13
      • 2013-06-13
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多