Issues with OpenDKIM

I spent the better part of two days trying everything under the sun to get OpenDKIM to work on our server. Finally found the solution.

No matter what I changed, OpenDKIM would not listen on port 8891. Finally, I discovered that in the opendkim.service file it was not loading it to 8891, but to a sock file.

[html]ExecStart=/usr/sbin/opendkim -P /var/run/opendkim/ -p local:/var/run/opendkim/opendkim.sock[/html]

It needed to be changed to:

[html]ExecStart=/usr/sbin/opendkim -P /var/run/opendkim/ -p inet:8891[/html]

Restart OpenDKIM and Postfix and you should be up and running again.

Leave a Comment