On Sat, Jan 26, 2002 at 04:40:44PM -0500, Duncan Findlay wrote: | On Sat, Jan 26, 2002 at 08:02:40PM +0000, Bryan Ross wrote: | > Hi, | > | > Just finished getting SpamAssassin/Razor working with Courier-MTA, | > everything seems to work okay, except my virtual hosting setup seems to | > cause problems with user-preferences and the whitelist facility. | > | > My maildirs are stored in /mail/<domain>/<user>/Maildir, and are all owned | > by the 'mail' user/group. Incidently, the mail user has homedir '/mail'. | > | > So, I have the 'spamd' daemon running as user 'mail', and I use courier's | > filtering capabilities to run all incoming mail through 'spamc'. | > | > My problems come when I try to access files in the User's home | > directories, either for a per-user configuration file, or a per-user | > whitelist. Basically, 'spamd' tries to write to /mail/.spammassassin/* - | > the home directory of the 'mail' user. Im assuming it's looking up its | > homedirectory from the password file, and getting the wrong answer. | > | > Courier sets $HOME to the home directory of the recipient, so is there a | > way I can get 'spamd' to use that instead? | > | | I have a similar problem. I run spamd as root, and until now, didn't have a | .spamassassin dir, so the auto whitelist rule thing didn't work. | | Should spamd either a) make the dir, or b) use a tmp dir or other user | config dir.
spamd should use $HOME/.spamassassin for the $HOME of the $USER that spamc is run as. (this is what 1.5 does) I dislike apps creating their own config in my home directory. This caused a number of problems when I set up spamassassin because it was run by the MTA (user='mail') and not as the user the mail is addressed to. IMO if the user's config can't be found, ignore it. If the system config can't be found, then warn about it. -D -- Do not be afraid of those who kill the body but cannot kill the soul. Rather be afraid of the One who can destroy both soul and body in hell. Matthew 10:28 _______________________________________________ Spamassassin-talk mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/spamassassin-talk