I recently installed OpenDKIM for the first time and I am having problems that produce the following error:
key data is not secure: / is writeable and owned by uid 1000 which is not the executing uid (986) or the superuser
The key directory and all key files are owned by root:opendkim with perms 0750. the opendkim user ahs only the opendkim group assigned to it.
I notice that if I restart opendkim the message stops appearing, then after some time, usually during high levels of outgoing traffic, the message starts showing up for every outgoing email, until I restart opendkim.
I am using opendkim with postfix and only for outgoing emails. The server is used to deliver newsletters and opt-in advertising vie email.
Fully updated CentOS 7
Postfix 2.10.1
I am having a very similar problem:
Aug 12 09:29:49 localhost opendkim[10955]: mail._domainkey.theget.io: key data is not secure: opendkim is in group 0 which has multiple users (e.g., "ubuntu")
Aug 12 09:29:49 localhost opendkim[10955]: 7DD8143DB4: error loading key 'mail._domainkey.theget.io'
Checking reveals that opendkim and the cited ubuntu (me, on AWS) have no groups in common. chowned and chmoded to give opendkim sole ownership/access - opendkim is the only member of the opendkim group.
Also, testkey returns this:
Googled these msgs to death but no help - 2:30 in teh am yawn
Thanks so much for your kind help!
Ron