opendkim.sock Permission denied

  • I do not know why, but after any reconfiguration I have to manually reset priviliges


    chmod 766 /var/spool/postfix/opendkim/opendkim.sock


    and for the keys:


    chmod -R 700 /etc/opendkim/keys


    This solves it.