本文介绍了phpmailer使用dkim的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

限时删除!!

大家好,我已经用postfix和dkim milter配置了centos 6.5(plesk),如果我从webmail发送邮件,例如roundcube dkim pass,但是如果我尝试使用phpmailer发送一些电子邮件,则上一个版本会失败.我在那儿读过 http://dkim.worxware.com/没必要做其他操作,但没有无论如何都可以工作,所以我尝试使用页面底部的工具来创建私钥和公钥并设置另一个txt记录我已经尝试添加以下参数:

Hi guys i've already configure my centos 6.5 (plesk) with postfix and dkim milter and if i send mail from webmail in my case roundcube dkim pass but if i try to send some email with phpmailer last version fail.i've read there http://dkim.worxware.com/ that is not necessary do another operations but not work anyway so i try to use tools in the bottom of page to create private and public keys and set another txt recordi've already tried to add params like these:

$mail->DKIM_domain = 'dominio.it';
$mail->DKIM_private = 'class/.htkeyprivate';
$mail->DKIM_selector = 'phpmailer';
$mail->DKIM_passphrase = '1407195281';

dns中的txt记录也是正确的,我也试图使用dkim milter生成的现有和工作密钥,就像这样....

also txt record in dns are correct and i also tried to use existing and work key genereted by dkim milter like this....

$mail->DKIM_domain = 'dominio.it';
$mail->DKIM_private = 'class/default.private';
$mail->DKIM_selector = 'default';

使用我的工作(仅使用roundcube而不使用phpmailer)txt记录

with my working (only with roundcube not with phpmailer) txt record

default._domainkey.quotalo.it

default._domainkey.quotalo.it

TXT

V = DKIM1; G = *; K = RSA; P = MIGfMA0GCSqGSIb3DQEBAQ UAA4GNADCBiQKBgQCz2F9VF2 D2jFtlKPbjufdTBpF + 2Qraw8Tr20 dSkHcP7DGb0rMjZYeeK7ysmj2R Go75/HnPga2Xbjy87Hg/xIDMQIc Ep8cN9WsOkUe7Rzx/jIhdwnV5u alHwlx0hJQ16LwgGv1Xtt1iw + X7 + sDwRlZ Tq2tyq0cXYz34RvAy22 GRiwIDAQAB"

"v=DKIM1; g=*; k=rsa; p=MIGfMA0GCSqGSIb3DQEBAQ UAA4GNADCBiQKBgQCz2F9VF2 D2jFtlKPbjufdTBpF+2Qraw8Tr20 dSkHcP7DGb0rMjZYeeK7ysmj2R Go75/HnPga2Xbjy87Hg/xIDMQIc Ep8cN9WsOkUe7Rzx/jIhdwnV5u alHwlx0hJQ16LwgGv1Xtt1iw+X7 sDwRlZ+Tq2tyq0cXYz34RvAy22 GRiwIDAQAB"

但是问题是一样的....请帮助我,我已经尝试了一整天:-(

but problem is the same....please help me i've tried one entire day :-(

推荐答案

我已经通过添加解决$mail->Encoding = "base64";到phpmailer数组.

i've solved by adding$mail->Encoding = "base64";To phpmailer array.

这篇关于phpmailer使用dkim的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

1403页,肝出来的..

09-07 18:32