From ArchWiki
Latest comment: 10 February 2020 by Fordprefect in topic /etc/tmpfiles.d versus RuntimeDirectory

opendkim:postfix versus opendkim:mail

Under the Security section, the specified groups don’t match for the opendkim.service file and chown opendkim:mail /run/opendkim. Is this intentional? --Acid reign (talk) 14:08, 5 September 2017 (UTC)Reply[reply]

In my service file it sais User=opendkim Group=mail, /run/opendkim is also owned by opendkim:mail. However, the group in the unit regulates the access of the daemon, while the group setting of the runtime file regulates the access for other users (opendkim already has rwx). In principle this could be used to grant other processes access to the runtime, but I doubt that this makes sense here. If noone objects I would change the wiki to mention the group mail in both places. Fordprefect (talk) 19:16, 6 September 2017 (UTC)Reply[reply]

/etc/tmpfiles.d versus RuntimeDirectory

The guide as it currently stands tells users to create a file in /etc/tmpfiles.d that essentially creates the /run/opendkim directory with systemd. But according to the tmpfiles.d manpage:

System daemons frequently require private runtime directories below /run to place communication sockets and similar in. For these, consider declaring them in their unit files using RuntimeDirectory= (see systemd.exec(5) for details), if this is feasible.

I created a RuntimeDirectory=opendkim in the service file, and thus far it works. According to the man page this is better. Plus then it's two files to edit instead of 1. (talk) 01:49, 21 July 2014 (UTC)Reply[reply]

Currently there is no mention of /etc/tmpfiles.d on the page, but part of the instructions still direct the user to use local files under /run. It took me a while to figure out while OpenDKIM was not starting after a reboot. For consistency, please consider adding the line d /run/opendkim 0700 opendkim mail - to /usr/lib/tmpfiles.d/opendkim.conf (should I file a bug?) or teach the user to add that line to a file like /etc/tmpfiles.d/opendkim. Catalin.Francu (talk) 09:12, 8 February 2020 (UTC)Reply[reply]
Added a bug about it, will adapt wiki according to maintainer decision. Fordprefect (talk) 12:57, 10 February 2020 (UTC)Reply[reply]