Domain-Name-System

opendkim 僅在託管伺服器上為 1 個區域簽名

  • March 17, 2015

我正在實施 opendkim,但我只能讓它簽署 1 個區域。即使兩個域的密鑰/簽名/文件相同,tld 也無法簽名。

我的.conf:

cat /usr/local/etc/mail/opendkim.conf

LogWhy                 yes
Syslog                  yes
SyslogSuccess           yes

Canonicalization        relaxed/simple

Socket                  inet:8891@107.191.60.48
MilterDebug             5
ReportAddress           postmaster@e-mailer.com
SendReports             yes

InternalHosts           file:/usr/local/etc/TrustedHostList.txt
SigningTable            refile:/var/db/opendkim/dkim-signtable
KeyTable                file:/var/db/opendkim/dkim-keytable

簽約表:

cat /var/db/opendkim/dkim-signtable
*@nyctelecomm.com nycmap
*@e-mailer.com emailmap

鍵表轉到相同的鍵:

cat /var/db/opendkim/dkim-keytable
emailmap e-mail.com:default:/var/db/opendkim/keys/e-mailer.com.key
nycmap nyccomm.com:default:/var/db/opendkim/keys/e-mailer.com.key

來自 port25.com 的回复:

----------------------------------------------------------
DKIM check details:
----------------------------------------------------------
Result:         permerror (key "default._domainkey.e-mail.com" doesn't exist)
ID(s) verified: 
Canonicalized Headers:
   from:"user"'20'<user@e-mailer.com>'0D''0A'
   to:<check-auth@verifier.port25.com>'0D''0A'
   subject:'0D''0A'
   date:Mon,'20'16'20'Mar'20'2015'20'16:53:33'20'-0400'0D''0A'
   dkim-signature:v=1;'20'a=rsa-sha256;'20'c=relaxed/simple;'20'd=ex-mail.com;'20's=default;'20't=1426539201;'20'bh=MhPgNzFR7ZDrllybqjf7Ky1x0INMPJ5OEWy00nl+zGI=;'20'h=From:To:Subject:Date;'20'b=

就像-> 伺服器故障

如何讓 opendkim 簽署我的兩個域而不是一個域?

嘗試在您的密鑰文件中更改ex-mail.com為。ex-mailer.com

引用自:https://serverfault.com/questions/675947