Hi I am trying to setup OpenDKIM, but it keeps complaining it cannot access the keyfile. I have double checked permissions and ownership, which is set to user opendkim & group opendkim with rw access. I have disabled selinux to rule out an selinux issue. I have reinstalled the package many times. Don't know where to look! Any ideas?
Error message: ''' opendkim[691895]: can't load key from /etc/opendkim/keys/schots.xyz/20200308.private: Permission denied '''
Output ps -l:
[root@anakin schots.xyz]# ps -l 471283
F S UID PID PPID C PRI NI ADDR SZ WCHAN TTY TIME CMD
1 S 981 471283 1 0 80 0 - 47289 poll_s ? 0:00 /usr/sbin/opendkim -x /etc/opendkim.conf -P /run/opendkim/opendkim.pid
Output ls -ld /etc/opendkim:
[root@anakin schots.xyz]# ls -ld /etc/opendkim
drwxr-xr-x. 3 root opendkim 154 Mar 4 15:28 /etc/opendkim
Output ls -ld /etc/opendkim/keys:
[root@anakin schots.xyz]# ls -ld /etc/opendkim/keys
drw-------. 3 opendkim opendkim 68 Mar 4 15:28 /etc/opendkim/keys
Output ls -ld /etc/opendkim/keys/schots.xyz:
[root@anakin schots.xyz]# ls -ld /etc/opendkim/keys/schots.xyz
drw-------. 2 opendkim opendkim 50 Mar 4 15:10 /etc/opendkim/keys/schots.xyz
Output ls -ld /etc/opendkim/keys/schots.xyz/20200308.private:
[root@anakin schots.xyz]# ls -ld /etc/opendkim/keys/schots.xyz/20200308.private
-rw-------. 1 opendkim opendkim 1679 Mar 4 15:10 /etc/opendkim/keys/schots.xyz/20200308.private