OPENDKIM Filter reporting KeyTable entry for 'DOMAIN' corrupt and error loading key 'domain'
Posted on 2013-01-24
Installed OPENDKIM on Centos 6 running with Sendmail.
I seem to get inthe mail logs the following error message when I attempt to send a DKIM header out. Error message in mail log :-
Jan 24 16:18:04 mail-02 opendkim: KeyTable entry for 'extsmtp003' corrupt
Jan 24 16:18:04 mail-02 opendkim: r0OGI4p4006092: error loading key 'extsmtp003'
Jan 24 16:18:04 mail-02 sendmail: r0OGI4p4006092: Milter: data, reject=451 4.3.2 Please try again later
I have re-generated the key using opendkim-genkey as required and attempted to send a mail out that matches the KeyTable file i.e. the FROM address. I have modified the "KeyFile" to look at a simple txt file with just some random txt in and it comes up with the same error message. So I am pretty sure its not the PRIVATE key but possibly permissions.
Permission are set as :-
-rwxrwxrwx 1 opendkim opendkim 51 Jan 24 16:16 KeyTable
drwxrwxrwx 2 opendkim opendkim 4096 Jan 24 16:02 private
-rw-r--r-- 1 root root 115 Jan 15 15:44 returnpath.php
-rwxrwxrwx 1 opendkim opendkim 25 Jan 24 14:53 SigningTable
-rwxrwxrwx 1 opendkim opendkim 75 Jan 22 13:22 TrustedHosts
Contents if the keytable are as below :-
Appreciate if I am missing something .