I installed opendkim on centos 6.5. The problem is that i can't get emails sent by postfix to get signed. In /var/log/maillog i get no signing table match for test@mydomain.com
In Keytable i have
mydomain.com mydomain.com:email:/etc/opendkim/keys/mydomain.com/email.private
In Signing table i have
* mydomain.com
In trusted hosts i have
127.0.0.1
I have set sv as mode in opendkim.config and also refile for table files....
Any help please?
What's in your opendkim.conf?
Last edit: Amal Francis 2014-03-07
Try this:
opendkim -Q
Then at the prompt type:
refile:/etc/opendkim/SigningTable
test@mydomain.com/1
You should get back "mydomain.com". CTRL-D to exit. Then:
opendkim -Q
Then:
refile:/etc/opendkim/KeyTable
mydomain.com/3
You should get back "mydomain.com", "email", and "/etc/opendkim/keys/mydomain.com/email.private" on separate lines.
Last edit: Murray S. Kucherawy 2014-03-07
Okay... Let me try it...
Last edit: Amal Francis 2014-03-07
I get
opendkim: dkimf_db_get(): record not found
opendkim: enter 'query/n' where 'n' is number of fields to request
for test@mydomain.com/1
I think there's a bug in the code that loads refiles. Confirm that you have only a single space character between "mydomain.com" and the rest of the line, and no trailing spaces.
And the same for the single entry in your SigningTable.
I just check and its the same...
I just tried file: and it works perfect... So, i think as you said there is a bug in the refile...
Can you tar up your opendkim.conf, KeyTable, and SigningTable, and attach them? I don't need the private key.
Sure....
There are CR characters in your SigningTable. That would definitely trip the bug I found.
You are awesome... So, i am using windows on my pc.. I just tried editing with linux on vps and saving in non DOS format with LF and refile works perfect... Thanks... :)
v2.9.1 released.