Sendmail 拒绝使用 opendkim 提供的 DKIM 签署邮件

Sendmail 拒绝使用 opendkim 提供的 DKIM 签署邮件

我在 ubuntu 14.04 上安装了 sendmail 和 opendkim,并且想要配置 DKIM。

不幸的是,sendmail 拒绝使用 DKIM 签署外发电子邮件。尽管它之前已经这样做了,但我对其进行了注释,因为我必须等待 DNS 条目列出 TXT 记录。现在我取消了注释,重建了 sendmail 配置并重新启动了 sendmail 和 opendkim,但 mail-tester.com 声称这些消息未签名。

以下是 sendmail.mc 的条目:

INPUT_MAIL_FILTER(`opendkim', `S=local:/var/run/opendkim/opendkim.sock')dnl

检查插座:

/etc/mail$ ll /var/run/opendkim/opendkim.sock 
srwxrwxr-x 1 opendkim opendkim 0 Jan  9 03:07 /var/run/opendkim/opendkim.sock=

这些是来自 mail.log 的 log_level 15 的日志条目

sm-mta[26489]: NOQUEUE: connect from localhost.localdomain [127.0.0.1]
AUTH: available mech=DIGEST-MD5 NTLM CRAM-MD5 PLAIN LOGIN ANONYMOUS, allowed mech=EXTERNAL GSSAPI KERBEROS_V4 DIGEST-MD5 CRAM-MD5
Milter (opendkim): init success to negotiate
Milter: connect to filters
milter=opendkim, action=connect, continue
--- 220 my-server-adress ESMTP Sendmail 8.14.4/8.14.4/Debian-4.1ubuntu1; Tue, 12 Jan 2016 17:35:35 +0100; (No UCE/UBE) logging access from: localhost.localdomain(OK)-localhost.localdomain [127.0.0.1]
<-- EHLO my-server-adress
--- 250-my-server-adress Hello localhost.localdomain [127.0.0.1], pleased to meet you
--- 250-ENHANCEDSTATUSCODES
--- 250-PIPELINING
--- 250-EXPN
--- 250-VERB
--- 250-8BITMIME
--- 250-SIZE
--- 250-DSN
--- 250-ETRN
--- 250-AUTH DIGEST-MD5 CRAM-MD5
--- 250-DELIVERBY
--- 250 HELP
<-- MAIL From:<my-sender-email> SIZE=6179 AUTH=my-sender-email
ruleset=trust_auth, arg1=my-sender-email, relay=localhost.localdomain [127.0.0.1], reject=550 5.7.1 <my-sender-email>... not authenticated
Milter: sender: <my-sender-email>
milter=opendkim, action=mail, continue
--- 250 2.1.0 <my-sender-email>... Sender ok
<-- RCPT To:<recipient-email-adress
Milter: rcpts: <recipient-email-adress
milter=opendkim, action=rcpt, continue
--- 250 2.1.5 <recipient-email-adress... Recipient ok
<-- DATA
--- 354 Enter mail, end with "." on a line by itself
from=<my-sender-email>, size=6272, class=0, nrcpts=1, msgid=<[email protected]>, proto=ESMTP, daemon=MTA, relay=localhost.localdomain [127.0.0.1]
milter=opendkim, action=header, continue
message repeated 10 times: [ milter=opendkim, action=header, continue]
milter=opendkim, action=eoh, continue
milter=opendkim, action=body, continue
Milter insert (1): header: DKIM-Signature:  v=1; a=rsa-sha256; c=simple/simple; d=findix.com; s=dkim;\n\tt=1452616535; bh=lL6Nxp+zwlmTE0SjCbctUgyFK/k+y3VgD/s/9XraXGU=;\n\th=To:Subject:Date:From:From;\n\tb=BJAqA5Cp/Koy67VAQ7KVDN6RXeu1P9imkRxprNn/uInAK6PCLDsGZGzr05S4oM4qs\n\t GONufC0GLu/eZYUNKBHoVfSkC6e5x99erbufkSGfLVrHlxCpRCRplr7P9lOwc1+3pF\n\t ImvRO2d+Gy2+OqFPydAb77blcxTsNb82VMS9HgwE=
Milter accept: message
poststats: /var/lib/sendmail/sendmail.st: No such file or directory
--- 250 2.0.0 u0CGZZpo026489 Message accepted for delivery

Mail.err 没有显示任何问题。我还能检查什么才能让它运行?提前感谢您的帮助。

相关内容