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

Bug 40368

Summary: Spamd failed to create readable default_prefs
Product: Gentoo Linux Reporter: Jean Sebastien Bruneau <flatline>
Component: New packagesAssignee: Net-Mail Packages <net-mail+disabled>
Status: RESOLVED WORKSFORME    
Severity: minor    
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Jean Sebastien Bruneau 2004-02-04 06:05:50 UTC
When using qmail,qmail-scanner and spamassasin installed from portage, spamd will not be able to create default_prefs.

Ex:

Feb  4 06:54:32 onix spamd[1530]: connection from localhost [127.0.0.1] at port 33148
Feb  4 06:54:32 onix spamd[9864]: info: setuid to qmailq succeeded
Feb  4 06:54:32 onix spamd[9864]: Creating default_prefs [/var/qmail/.spamassassin/user_prefs]
Feb  4 06:54:32 onix spamd[9864]: Cannot write to /var/qmail/.spamassassin/user_prefs: No such file or directory
Feb  4 06:54:32 onix spamd[9864]: Couldn't create readable default_prefs for [/var/qmail/.spamassassin/user_prefs] 

This happen because spamd change his uid to qmailq witch have a homedir of  /var/qmail.


Reproducible: Always
Steps to Reproduce:
1.emerge qmail spamassasin and qmail-scanner
2.
3.




this can be fixed by creating the directory /var/qmail/.spamassasin and 
changing the owner to qmailq
Comment 1 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2004-02-04 17:33:23 UTC
i use all of these 100% fine and there is and should not be any /var/qmail/.spamasssassin/

what's in your spamd local.cf file, and where do you have qmail-scanner running from?
Comment 2 Malte S. Stretz 2004-08-12 03:49:45 UTC
There were some permission problems in previous versions of spamd, might be fixed with that (can't judge as there was no version number given).

Also in this case you probably want to use one of the switches -x or -u.