In the process of testing my new toaster, I noticed the following lines in '/var/log/maillog'.

  Sep  1 21:43:16 s6 spamd[19967]: spamd: setuid to clamscan succeeded
Sep 1 21:43:16 s6 spamd[19967]: spamd: creating default_prefs: //.spamassassin/user_prefs Sep 1 21:43:16 s6 spamd[19967]: spamd: failed to create readable default_prefs: //.spamassassin/user_prefs

I figured out that the home directory for `clamscan` was '/', and as there was no existing directory '.spamassassin' in '/', it seemed reasonable enough that it wouldn't be able to write to it.

So I changed the home directory for `clamscan` to `/home/vpopmail`, created a directory `.spamassassin` in that directory, and made sure `clamscan` had ownership and write permission on the `.spamassassin` directory.

No dice. It continued to report that it was failing to create a readable prefs file (but this time at the new location, showing that changing the home directory had worked).

So I created an empty preference file and gave `clamscan` ownership over it, on the theory that if there was a file there, it might shut up about not being able to create the file.

Didn't help.

OK, so maybe it's lying about 'setuid', and it's not running as `clamscan` at all. I removed the empty file, and made the `.spamassassin` directory world-writable, just to see if it would create a file and which user it would do so as.

Failed again.

As far as I can see that exhausts all the possible reasons why spamd wouldn't be able to create a preference file, and it is continuing to fail simply out of malice.

Anyone have any ideas how I can fix this?

Thanks,

Angus


---------------------------------------------------------------------
To unsubscribe, e-mail: qmailtoaster-list-unsubscr...@qmailtoaster.com
For additional commands, e-mail: qmailtoaster-list-h...@qmailtoaster.com

Reply via email to