mail-filter/opendkim: new revision with a dedicated "opendkim" user.
authorMichael Orlitzky <mjo@gentoo.org>
Wed, 27 Mar 2019 14:36:32 +0000 (10:36 -0400)
committerMichael Orlitzky <mjo@gentoo.org>
Wed, 27 Mar 2019 17:18:05 +0000 (13:18 -0400)
commitbef349fb49583b1d4249af3f490d02db049066d5
tree63bb4f5574d8273d5206c448e24cda8da66a6279
parenta336c8fa9cccd520e99b136d54162a2ca3524274
mail-filter/opendkim: new revision with a dedicated "opendkim" user.

Prior to this revision, the OpenDKIM daemon would run as the "milter"
user, which is a username shared by a few other related packages.
However, that user has the ability to read your private DKIM signing
keys, and no other services should have access to those. Thus, sharing
the user account creates a security risk. In the new revision, a
dedicated "opendkim" user is created for the OpenDKIM daemon. The
configuration, OpenRC service script, and systemd service files have
all been updated with the new user name.

In addition, the permissions on /var/lib/opendkim have been tightened
so members of the "opendkim" group can only read it by default. The
daemon does not need to modify your keys, in particular, and should
not be able to. One downside to this is that the "Statistics"
configuration directive that was enabled by default with USE=berkdb
will no longer work out-of-the-box. It will still work, but the
administrator will need to grant write access to the file that he
designates for the statistics data. But since it won't work without
some extra fiddling, it has been removed from the configuration file
that we install.

An ewarn notifies users who are upgrading of the account name change.

Closes: https://bugs.gentoo.org/629888
Signed-off-by: Michael Orlitzky <mjo@gentoo.org>
Package-Manager: Portage-2.3.62, Repoman-2.3.11
mail-filter/opendkim/files/opendkim-r2.service [new file with mode: 0644]
mail-filter/opendkim/files/opendkim.init.r4 [new file with mode: 0644]
mail-filter/opendkim/opendkim-2.10.3-r6.ebuild [moved from mail-filter/opendkim/opendkim-2.10.3-r5.ebuild with 83% similarity]