You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@spamassassin.apache.org by Christian Dysthe <cd...@gmail.com> on 2013/07/15 00:15:46 UTC
Errors when processing mail.
Hi,
I am very new to Spamassassin and trying to have it work with the
Citadel mail server which has support for spamassassin. I'm running
Spamassassin 3.3.2-2ubuntu1 on Ubuntu Server Edtion 12.04 LTS x64. The
entries I get in the mail.log when mail is being delivered are:
Jul 14 16:52:21 concerto spamd[7687]: plugin: eval failed: bayes: (in
learn) locker: safe_lock: cannot create tmp lockfile
/nonexistent/.spamassassin/bayes.lock.concerto.XXXXXXXX.com.7687 for
/nonexistent/.spamassassin/bayes.lock: No such file or directory
Jul 14 16:52:21 concerto spamd[7687]: spamd: clean message (-0.7/5.0)
for (unknown):65534 in 0.2 seconds, 1496 bytes.
Jul 14 16:52:21 concerto spamd[7687]: spamd: result: . 0 -
FREEMAIL_FROM,MSGID_FROM_MTA_HEADER,RCVD_IN_DNSWL_LOW,SPF_PASS,T_DKIM_INVALID
scantime=
0.2,size=1496,user=(unknown),uid=65534,required_score=5.0,rhost=localhost,raddr=127.0.0.1,rport=43706,mid=<CAC=A-n=0YVpf2O4ubUCW7gVqYFputLKHOzoDFp
U-h2a94uF7cA@mail.gmail.com>,autolearn=unavailable
Jul 14 16:52:21 concerto spamd[7686]: prefork: child states: II
Could someone point me in the right direction so I can solve this
issue, or these issues even?
Thank you in advance.
--
//Christian
Re: Errors when processing mail.
Posted by Benny Pedersen <me...@junc.eu>.
Jeremy McSpadden skrev den 2013-07-15 02:07:
>> /nonexistent/.spamassassin/bayes.lock: No such file or directory
cd ~user_name_spamd_runs_as
works ?, ok .spamassassin creates prefs files in $(HOME)/.spamassassin/
as default so here it might be that /nonexistent/ is in /etc/passwd as
homedir for that user ?
the error is to not use non exists home dirs for spamd user
the dir can be set in local.cf, but the user running spamd must have
write access to it
is $HOME)/.spamassassin/user_prefs existing ?, if it does delete it,
and edit local.cf where bayes_path is set to a dir spamd can write to,
remember child dirs using parents dirs permission
i could be wroung but imho i remember this from when i did not use sql
bayes
Re: Errors when processing mail.
Posted by Jeremy McSpadden <je...@fluxlabs.net>.
Check as to why this directory/file doesn't exist or change paths.
--
Jeremy McSpadden
Flux Labs, Inc | http://www.fluxlabs.net<http://www.fluxlabs.net/> | Endless Solutions
Office : 850-250-5590x101<tel:850-250-5590;101> | Cell : 850-890-2543<tel:850-890-2543> | Fax : 850-254-2955<tel:850-254-2955>
On Jul 14, 2013, at 5:16 PM, "Christian Dysthe" <cd...@gmail.com>> wrote:
/nonexistent/.spamassassin/bayes.lock: No such file or directory
Re: Errors when processing mail.
Posted by Dave Funk <db...@engineering.uiowa.edu>.
On Sun, 14 Jul 2013, Christian Dysthe wrote:
> Hi,
>
> I am very new to Spamassassin and trying to have it work with the
> Citadel mail server which has support for spamassassin. I'm running
> Spamassassin 3.3.2-2ubuntu1 on Ubuntu Server Edtion 12.04 LTS x64. The
> entries I get in the mail.log when mail is being delivered are:
>
> Jul 14 16:52:21 concerto spamd[7687]: plugin: eval failed: bayes: (in
> learn) locker: safe_lock: cannot create tmp lockfile
> /nonexistent/.spamassassin/bayes.lock.concerto.XXXXXXXX.com.7687 for
> /nonexistent/.spamassassin/bayes.lock: No such file or directory
> Jul 14 16:52:21 concerto spamd[7687]: spamd: clean message (-0.7/5.0)
> for (unknown):65534 in 0.2 seconds, 1496 bytes.
> Jul 14 16:52:21 concerto spamd[7687]: spamd: result: . 0 -
> FREEMAIL_FROM,MSGID_FROM_MTA_HEADER,RCVD_IN_DNSWL_LOW,SPF_PASS,T_DKIM_INVALID
> scantime=
> 0.2,size=1496,user=(unknown),uid=65534,required_score=5.0,rhost=localhost,raddr=127.0.0.1,rport=43706,mid=<CAC=A-n=0YVpf2O4ubUCW7gVqYFputLKHOzoDFp
> U-h2a94uF7cA@mail.gmail.com>,autolearn=unavailable
> Jul 14 16:52:21 concerto spamd[7686]: prefork: child states: II
>
> Could someone point me in the right direction so I can solve this
> issue, or these issues even?
The error indicates that the Bayes component of your spamassassin
cannot create the lock file "/nonexistent/.spamassassin/bayes.lock.concerto.XXXXXXXX.com.7687"
First order of business, what do you get when you do a "ls -ld /nonexistent/.spamassassin"
Does that directory exist? What are its ownership and permissions?
Is it writable by the UID that your spamd is running under?
Bottom line, the spamassassin Bayes module needs a writable working
directory. Your error messages imply that the directory that your
spamassassin configuration is telling your Bayes to use (that
"/nonexistent/.spamassassin" thing) has issues.
So either you need to fix that directory or fix your configuration to
tell it where the directory it -should- be using is.
I don't know that "Citadel" kit, you may be better off finding some
discussion list which is specifically about it. Just guessing by
that directory name ("/nonexistent/") it's something that you need
to explicitly create and change your configuration to point to.
--
Dave Funk University of Iowa
<dbfunk (at) engineering.uiowa.edu> College of Engineering
319/335-5751 FAX: 319/384-0549 1256 Seamans Center
Sys_admin/Postmaster/cell_admin Iowa City, IA 52242-1527
#include <std_disclaimer.h>
Better is not better, 'standard' is better. B{