Setting up OpenDKIM to work via unix sockets, in Arch Linux


I want to make OpenDKIM work via unix socket. I’ve read the instructions in the wiki and they haven’t worked for me:

# /etc/opendkim/opendkim.conf


# (1) Socket "local:/var/spool/postfix/opendkim/opendkim.sock"
# (2) Socket local:/run/opendkim/opendkim.sock
# (3) Socket local:/var/spool/postfix/var/run/opendkim/opendkim.sock

Socket                  inet:8891@localhost # only this works

but I don’t want to use network sockets.

(1) -> OpenDKIM Filter: unknown socket type "local"; Unable to create listening socket on conn "local"; smfi_opensocket() failed

(2) -> Unable to bind to port local:/run/opendkim/opendkim.sock: No such file or directory; Unable to create listening socket on conn local:/run/opendkim/opendkim.sock

(3) -> Unable to bind to port local:/var/spool/postfix/var/run/opendkim/opendkim.sock: No such file or directory; Unable to create listening socket on conn local:/var/spool/postfix/var/run/opendkim/opendkim.sock

Do I have to create a file for a unix socket first? But that’s not been mentioned in the wiki of ArchLinux at all. Or how should it be fixed?