Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 40368 - Spamd failed to create readable default_prefs
Summary: Spamd failed to create readable default_prefs
Status: RESOLVED WORKSFORME
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High minor (vote)
Assignee: Net-Mail Packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-02-04 06:05 UTC by Jean Sebastien Bruneau
Modified: 2004-08-12 03:49 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.