Red Hat Bugzilla – Bug 184319
Spamassassin and SELinux
Last modified: 2007-11-30 17:11:26 EST
Description of problem:
As described in SpamAssassin's man page, the program must create user_prefs in
$HOME/.spamassassin, where $HOME is the homedirectory of the user spamassassin
is run under.
When spamc is invoked from Postfix's master.cf file (as described at
http://wiki.apache.org/spamassassin/IntegratedSpamdInPostfix) and SELinux is
enabled, Spamassassin can't create user_prefs file in /home/someuser, even if
"someuser" was created on purpose.
Version-Release number of selected component (if applicable):
(stock Fedora Core 4 + updates March 06, 2006)
Steps to Reproduce:
1. Invoke Spamassassin as a filter, from Postfix, as described in
http://wiki.apache.org/spamassassin/IntegratedSpamdInPostfix, with SELinux
enabled. Postfix users should be virtual users.
The process can't write user_prefs under /home/someuser.
A predefined system user should be created when installing Spamassassin (by the
rpm), with an appropiate, FHS-compliant homedirectory, in order to provide a
place to create user_prefs, when Postfix users are virtual users and SELinux is
Spamassassin docs should indicate the correct way to proceed/configure in such
I believe this is fixed in FC5 now. I don't know if we are able to backport
this for a FC4 update.
Sorry, we will not backport this to FC4.