I am implementing opendkim but I can only get it to sign for 1 zone. The tld is failing to sign even though it is the same key/signature/file for both domains.

my .conf:

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

LogWhy                 yes
Syslog                  yes
SyslogSuccess           yes

Canonicalization        relaxed/simple

Socket                  inet:8891@
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

signing table:

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

key table going to the same key:

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

response from port25.com:

DKIM check details:
Result:         permerror (key "default._domainkey.e-mail.com" doesn't exist)
ID(s) verified: 
Canonicalized Headers:

just like -> server fault

How do I get opendkim to sign both of my domains and not just one?

  • You have both ex-mail.com and exmail-er.com in your key table. Is that what you intended? – Paul Mar 17 '15 at 0:18
  • @Paul dang, I don't know how I missed that. Post it as an answer and I will click the button – mine Mar 17 '15 at 0:23
  • Just as an FYI, Stack Exchange has a feature where posting a link to question within a given Q&A site will be displayed as the question title with link. – Paul Mar 17 '15 at 0:39
  • Cheers!!!!!!!!! – mine Mar 17 '15 at 1:24

Try changing ex-mail.com to ex-mailer.com in your key file.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.