Page 1 of 2
Cannot write to /qmail/.spamassassin/user_pref
Posted: Thu Sep 01, 2005 5:54 pm
by breun
I find this sequence a lot in my maillog. I found other people having similar problems, but no solution yet:
Sep 1 10:22:07 host spamd[3590]: connection from localhost [127.0.0.1] at port
41013
Sep 1 10:22:07 host spamd[3590]: Creating default_prefs [/qmail/.spamassassin/u
ser_prefs]
Sep 1 10:22:07 host spamd[3590]: Cannot write to /qmail/.spamassassin/user_pref
s: No such file or directory
Sep 1 10:22:07 host spamd[3590]: Couldn't create readable default_prefs for [/q
mail/.spamassassin/user_prefs]
Other people usually have /root/.spamassassin/user_pref there though. Of course there is no /qmail/ on my system, but I wonder why spamd would trying to create prefs there.
Posted: Fri Sep 02, 2005 9:38 am
by scott
Yeah thats definitely wrong, I reckon the path has been mucked around with in a not-so-good way. I'll see if I can throw an exception into atomic-psa to catch conditions like that.
Posted: Fri Sep 02, 2005 10:03 am
by breun
I'm kinda confused now. Is there something I can/should do?
Posted: Tue Sep 20, 2005 8:22 am
by scott
make sure /etc/sysconfig/spamassassin has -H /var/qmail set in it. Then restart spamd
Posted: Tue Sep 20, 2005 8:41 am
by breun
My /etc/sysconfig/spamassassin reads (I never edited it myself):
Options to spamd
SPAMDOPTIONS="-d -u qmailq -c -H /var/qmail"
(vim tells me this file is in dos format?)
Posted: Tue Sep 20, 2005 11:51 am
by scott
thats fine, but you can always dos2unix that file if it annoys you
Posted: Tue Sep 20, 2005 11:56 am
by breun
Ok, but so I had -H /var/qmail set in /etc/sysconfig/spamassassin, but still I get these errors with /qmail. Any idea?
Posted: Tue Sep 20, 2005 4:56 pm
by scott
You'll have to debug that one on your own I reckon, sounds like you have some instance of spamd running that isnt reading the spamassassin file.
Posted: Wed Sep 21, 2005 5:18 am
by breun
I wouldn't know how to debug this. I just installed your spamassassin art rpm for FC3 and did service spamassassin start and then installed the qmail-scanner art rpm for FC3.
Posted: Thu Sep 29, 2005 2:58 pm
by breun
Just installed a fresh FC3 server and I'm seeing the same error. Somehow /qmail is used instead of /var/qmail, while /etc/sysconfig/spamassassin really has (the default) /var/qmail.
spamd[5695]: mkdir /root/.spamassassin: Permission denied at /usr/lib/perl5/vendor_perl/5.8.5/Mail/SpamAssassin.pm line 1467
spamd[5695]: config: cannot write to /qmail/.spamassassin/user_prefs: No such file or directory
spamd[5695]: spamd: failed to create readable default_prefs: /qmail/.spamassassin/user_prefs
brink spamd[5695]: mkdir /qmail: Permission denied at /usr/lib/perl5/vendor_perl/5.8.5/Mail/SpamAssassin.pm line 1467
spamd[5695]: locker: safe_lock: cannot create tmp lockfile /qmail/.spamassassin/auto-whitelist.lock.<hostname snipped here>.5695 for /qmail/.spamassassin/auto-whitelist.lock: No such file or directory
spamd[5695]: auto-whitelist: open of auto-whitelist file failed: locker: safe_lock: cannot create tmp lockfile /qmail/.spamassassin/auto-whitelist.lock.<hostname snipped here>.5695 for /qmail/.spamassassin/auto-whitelist.lock: No such file or directory
spamd[5695]: Can't call method "finish" on an undefined value at /usr/lib/perl5/vendor_perl/5.8.5/Mail/SpamAssassin/Plugin/AWL.pm line 397, <GEN11> line 12.
However, I believe spamassassin is working...
Posted: Thu Sep 29, 2005 5:15 pm
by scott
Yeah thats not a critical error or anything, worst case, if youre not using mysql with SA, awl and bayes wont work. I can't duplicate this on my systems so I suspect its not something specifically core to SA, it might be a mix of psa-spamassassin (which I dont use) causing it.
Posted: Thu Sep 29, 2005 5:52 pm
by breun
I don't have psa-spamassassin on my servers.
Posted: Thu Sep 29, 2005 9:46 pm
by scott
OK that helps a bit, I'll see what I can do
Posted: Fri Jan 20, 2006 8:16 am
by breun
I recently built another fresh FC3 server and I get the same errors on that box. Any new ideas?
Posted: Sun Jan 22, 2006 7:30 am
by electronicfur
FYI I have the same problem on clean FC3 and the ART spamassassin and qmail-scanner packages.
Havent managed to figure it out yet either.
Cheers,
EF.