Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 127562

Summary: mail-filter/spampd should setup a spampd user and group
Product: Gentoo Linux Reporter: James Cloos <cloos>
Component: Current packagesAssignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it <maintainer-needed>
Status: CONFIRMED ---    
Severity: enhancement CC: net-mail+disabled
Priority: High    
Version: 2006.0   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description James Cloos 2006-03-25 13:13:08 UTC
spampd should add a spampd user and group, $HOME should likely be /var/lib/spampd and shell /bin/false.

cf debian's config:

http://packages.debian.org/testing/mail/spampd
Comment 1 Benny Pedersen 2013-03-29 18:27:15 UTC
it also needs openrc fixes, but it might be enough to resolve this bug here, current initrc does not work with default spampd run as mail, on shutdown "cant unlink spampd.pid"

but spampd still works with 3.3.2 spamassassin, needs testing with 3.4.x when its out in portage
Comment 2 Nick Soveiko 2022-02-17 19:11:30 UTC
(In reply to Benny Pedersen from comment #1)
> it also needs openrc fixes, but it might be enough to resolve this bug here,
> current initrc does not work with default spampd run as mail, on shutdown
> "cant unlink spampd.pid"

this is an easy fix, create /etc/tmpfiles.d/spampd.conf with one line as follows
--------------------------------
d /run/spampd 755 mail mail
--------------------------------

and adjust /etc/conf.d/spampd as
SPAMPD_OPTS="[...] --pid /run/spampd/spampd.pid"

albeit, this should probably be done by the ebuild