Postfix + DKIM



After following the DKIM I cannot start the opendkim service. Log sais:

opendkim[24368]: /etc/postfix/dkim.key: open(): Permission denied

If I change the dkim.key file permissions from 600 to 644 the message changes to

opendkim[24283]: /etc/postfix/dkim.key: key data is not secure

… which seems logical.

File was written and service started as root.

Anyone an idea about what’s going wrong here?


OK, what I found so far is that it does appear to work after:

chown opendkim /etc/postfix/dkim.key

but I’m not sure if this is the right way to go…