OpenDKIM邮件头:temperror

我刚刚安装并configuration了OpenDKIM,在我的服务器上使用Postfix和Dovecot。 我可以发送电子邮件到另一个帐户,但是当我检查标题时,我发现这个:

dkim=temperror (no key for signature) 

这里是我所做的最重要的configuration(实际上,我遵循DigitalOcean的这个教程 )。 我的服务器正在运行Ubuntu 14.04(x86)。

事实上,我该如何纠正这个错误呢? (该行告诉我,邮件没有被validation)。


文件:/etc/opendkim.conf(fragment)

 AutoRestart Yes AutoRestartRate 10/1h UMask 002 Syslog yes SyslogSuccess Yes LogWhy Yes Canonicalization relaxed/simple ExternalIgnoreList refile:/etc/opendkim/TrustedHosts InternalHosts refile:/etc/opendkim/TrustedHosts KeyTable refile:/etc/opendkim/KeyTable SigningTable refile:/etc/opendkim/SigningTable Mode sv PidFile /var/run/opendkim/opendkim.pid SignatureAlgorithm rsa-sha256 UserID opendkim:opendkim Socket inet:12301@localhost 

文件:/ etc / opendkim / TrustedHosts

 127.0.0.1 localhost 192.168.0.1/24 *.fjweb.club 

文件:/ etc / opendkim / KeyTable

 1115._domainkey.fjweb.club fjweb.club:1115:/etc/opendkim/keys/fjweb.club/1115.private 

文件:/ etc / opendkim / SigningTable

 *@fjweb.club 1115._domainkey.fjweb.club 

文件:/ etc / default / opendkim

 SOCKET="inet:12301@localhost" 

文件:/etc/postfix/main.cf

 milter_protocol = 2 milter_default_action = accept smtpd_milters = inet:localhost:12301 non_smtpd_milters = inet:localhost:12301 

我终于find了这个问题,可能很愚蠢,但我会把它留在这里,所以任何人都可以先检查一下:

请记得仔细检查一下,不要在TXTlogging的主机值旁边添加域

我的意思是这样的:OpenDKIM需要一个TXTlogging(检查域名的DNS设置)才能成功地签名电子邮件。 检查它的“名称”(或“主机”)列:这应该是default._domainkey不是 default._domainkey.yourdomain.bla