- android - 多次调用 OnPrimaryClipChangedListener
- android - 无法更新 RecyclerView 中的 TextView 字段
- android.database.CursorIndexOutOfBoundsException : Index 0 requested, 光标大小为 0
- android - 使用 AppCompat 时,我们是否需要明确指定其 UI 组件(Spinner、EditText)颜色
我正在使用 open-dkim 和 phpmailer 来签署我的外发邮件,我安装了我的 key ,并显示为有效,并且邮件脚本正在运行,但我遇到一个 openSSL 错误,它阻碍了这个过程:
Warning: openssl_sign() [function.openssl-sign]: supplied key param cannot be coerced into a private key in /usr/share/php/class.phpmailer.php on line 2221
我对 openssl 一无所知,但我的第一个想法是这个域没有安装 SSL,所以 DKIM 可能需要它?如果是这样,是像往常一样安装新的 SSL 一样简单,还是我必须以某种方式将公钥/私钥与 SSL 相关联?
谢谢
如果需要,完整的脚本:
<?
require_once("class.phpmailer.php");
$mailer = new PHPMailer();
$mailer->IsSMTP();
$mailer->Host = 'mail.domain.com';
$mailer->SMTPAuth = true;
$mailer->Username = 'info@domain.com';
$mailer->Password = 'pass';
$mailer->FromName = 'info@domain.com';
$mailer->From = 'info@domain.com';
$mailer->AddAddress('test@gmail.com','first last');
$mailer->Subject = 'Testing DKIM';
$mailer->DKIM_domain = 'domain.com';
$mailer->DKIM_private = 'private.txt';
$mailer->DKIM_selector = 'default'; //this effects what you put in your DNS record
$mailer->DKIM_passphrase = '';
$mailer->Body = 'this is just an email test';
if(!$mailer->Send())
{
echo "Message was not sent";
echo "Mailer Error: " . $mailer->ErrorInfo;
exit;
} else {
echo "Message Sent!";
}
?>
最佳答案
答案分为两部分:
1) 不,您显然不需要安装传统 SSL 即可使用 DKIM
2) 我的错误是由于从添加了额外字符的 RTF 文档中复制了我的私钥。我将它复制到 Dreamweaver 中,去掉了多余的字符,现在我从我的服务器收到了签名电子邮件
关于ssl - 我是否需要安装 SSL 才能实现 DKIM,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15296158/
我将 Google Apps 用于我的域 jkltech.in,我想用 DKIM key 签署我的电子邮件,因为我在我的网站上使用 Google App Engine。 我已向我的 DNS 提供商注册
我们正在为我们的时事通讯使用外部服务,这需要在我们的域中进行以下 DKIM 设置 gipote.dk : _domainkey.gipote.dk. 43200 IN TXT "o=~" d
我有两个单独的 DKIM 记录,它们使用相同的选择器。 一个是使用“k1”作为选择器的 MailChimp,另一个是我还没有发现它的用途的旧记录。 有没有办法使用相同的选择器在同一个 DKIM 记录中
我有几个发送电子邮件的云应用程序。每个应用程序都设置了 DKIM。 例如: cloud app 1 : k=rsa; t=s; p=MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQ
请解释 DomainKeys 与 DKIM 之间的差异 最佳答案 DomainKeys Identified Mail (DKIM) 是 Yahoo DomainKeys 的后继者。与 DomainK
关闭。这个问题是off-topic .它目前不接受答案。 想改进这个问题吗? Update the question所以它是on-topic用于堆栈溢出。 关闭 10 年前。 Improve thi
关闭。这个问题是off-topic .它目前不接受答案。 想改进这个问题吗? Update the question所以它是on-topic用于堆栈溢出。 关闭 10 年前。 Improve th
我正在尝试使用 C++ 和 OpenSSL 编写电子邮件客户端应用程序。当我通过此应用程序检查和发送电子邮件时,Gmail 和 Yahoo 都在我的电子邮件标题中显示错误.. Gmail 显示 >“d
问题: 我正在使用带有 Postfix 的 OpenDKIM。该邮件使用以下代码在 PHP 中生成,然后使用 mail() 发送: // message $message = "--$hash".P
我正在尝试使用 DKIM header 向 gmail(或任何其他电子邮件提供商)发送一封非常简单的电子邮件。 gmail中的结果是:dkim=neutral(body hash没有验证) 我假设正文
我一直无法找到答案,所以如果之前有人问过这个问题,请原谅我。 我正在与非营利组织合作,他们拥有一个用于非营利帐户的谷歌工作区。我正在努力设置我们的 SPF/DKIM/DMARC 记录,除了一种情况外,
DKIM 支持两种规范化方案:轻松和简单。前者更为宽松,允许中间邮件者在有限程度上修改电子邮件。 我能找到的唯一数据是 survey of implementations这表明绝大多数电子邮件发件人对
我正在使用 PHPMailer 发送邮件,并希望在邮件中附加 DKIM 签名。我在申请之前遇到了问题this patch 。现在我可以将成功签名的邮件发送到 isnotspam.com。 我已成功签署
我为我的公司配置了一个新的电子邮件服务器,我们在 theplanet.com 上使用云服务器,在 bluehost.com 上使用共享主机,我使用 iredmail 配置服务器,一切正常,但是当我尝试
我正在编写一个 C# DKIM 验证器,遇到了一个我无法解决的问题。现在我正在计算正文哈希,如 Section 3.7 Computing the Message Hashes 中所述。 .我正在使用
我正在尝试使用 Phoneix 和 Amazon SES 发送电子邮件,使用 bamboo 和 bamboo_ses。我已经在 Amazon SES 上验证了电子邮件和域,并将(相同的)DKIM 记录
我正在尝试使用 swift 邮件程序设置 DKIM header 。问题是当我检查 Gmail 中的电子邮件时,DKIM 状态为“FAIL”。根据https://mxtoolbox.com和其他一些工
我们最近为我们的域实现了 DMARC 记录: “v=DMARC1;p=隔离;pct=100;rua=mailto:me@mydomain.com” (隔离 100% 未经身份验证的电子邮件并将汇总报告
我正在为我的 MailChimp 事件配置 DKIM。 除了选中“验证此事件”复选框以使我的域识别 MailChimp 之外,我还需要做什么?为此,我需要在我的机器上安装 openDKIM 吗? 最佳
我使用 mandrill 发送使用 javamail 创建的电子邮件。当我尝试使用用户的发件人地址从我们的应用程序发送电子邮件时,DKIM 签名包含我们从未分配且不存在的电子邮件地址。当我在不使用 m
我是一名优秀的程序员,十分优秀!