List Info

Thread: problems with spamassassin, can't create user_prefs file




problems with spamassassin, can't create user_prefs file
country flaguser name
Canada
2007-02-19 04:01:18
My apologies for so many posts, really stupid I am.

Can anybody tell me why it is happening?

When I run this script
/var/amavisd/maia/scripts/process-quarantine.pl --learn I
end up with an
error:

config: cannot write to
/var/amavis/.spamassassin/user_prefs: No such file
or directory config: failed to create default user
preference file
/var/amavis/.spamassassin/user_prefs
bayes: expire_old_tokens: locker: safe_lock: cannot create
tmp lockfile
/var/amavisd/.spamassassin/bayes/.lock.spamfilter2.w3media.n
et.76663 for
/var/amavisd/.spamassassin/bayes/.lock: No such file or
directory


I don't understand why it tries to write it to amavis
directory. I don't
have amavis, I have amavisd. And looked through all possible
configuration
files, namely local.cf (in spamassassin folder),
amavisd.conf and maia.conf.

Where's the wrong path.

Appreciate your response

Sincerely
Eugene

_______________________________________________
Maia-users mailing list
Maia-usersrenaissoft.com
http://www.renaissoft.com/mailman/listinfo/maia-users

Re: problems with spamassassin, can't create user_prefs file
country flaguser name
Italy
2007-02-19 04:26:59
> When I run this script
> /var/amavisd/maia/scripts/process-quarantine.pl --learn
I end up with an
> error:
>
> config: cannot write to
/var/amavis/.spamassassin/user_prefs: No such file
> or directory config: failed to create default user
preference file
> /var/amavis/.spamassassin/user_prefs
> bayes: expire_old_tokens: locker: safe_lock: cannot
create tmp lockfile
>
/var/amavisd/.spamassassin/bayes/.lock.spamfilter2.w3media.n
et.76663 for
> /var/amavisd/.spamassassin/bayes/.lock: No such file or
directory
>
>
Do you run the script as user amavis ? if so check it's home
dir, probably
is /var/amavisd.
(finger amavis will do the trick)

When process quarantine starts it load some spamassassin
class for the
learning tasks, and
so it needs to write learning's data onto the home dir by
default .

For this reason it seems that user amavis has not the rights
to write on
the dir /var/amavisd

Bye,
Davide

_______________________________________________
Maia-users mailing list
Maia-usersrenaissoft.com
http://www.renaissoft.com/mailman/listinfo/maia-users

Re: problems with spamassassin, can't create user_prefs file
country flaguser name
United States
2007-02-19 11:12:43
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1


On Feb 19, 2007, at 4:01 AM, Eugene Pefti wrote:

> My apologies for so many posts, really stupid I am.
>
> Can anybody tell me why it is happening?
>
> When I run this script
> /var/amavisd/maia/scripts/process-quarantine.pl --learn
I end up  
> with an
> error:
>
> config: cannot write to
/var/amavis/.spamassassin/user_prefs: No  
> such file
> or directory config: failed to create default user
preference file
> /var/amavis/.spamassassin/user_prefs
> bayes: expire_old_tokens: locker: safe_lock: cannot
create tmp  
> lockfile
>
/var/amavisd/.spamassassin/bayes/.lock.spamfilter2.w3media.n
et. 
> 76663 for
> /var/amavisd/.spamassassin/bayes/.lock: No such file or
directory
>
>
> I don't understand why it tries to write it to amavis
directory. I  
> don't
> have amavis, I have amavisd. And looked through all
possible  
> configuration
> files, namely local.cf (in spamassassin folder),
amavisd.conf and  
> maia.conf.

Spamassassin tries to write some preferences to the home
directory of  
the user running it...  check your etc/password file.

Probably, that user does not have write access to the
/var/amavis  
directory.  Probably should own it, actually.




David Morton
Maia Mailguard http://www.maiamailguard
.com
mortondadgrmm.net



-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Darwin)

iD8DBQFF2dqOUy30ODPkzl0RAqknAJ9V4r+NYW39F7XljfZusflEQNv8gACg
l32P
3ORrCFsAJDs/QBqYW2gCX34=
=sCxo
-----END PGP SIGNATURE-----
_______________________________________________
Maia-users mailing list
Maia-usersrenaissoft.com
http://www.renaissoft.com/mailman/listinfo/maia-users

[1-3]

about | contact  Other archives ( Real Estate discussion Medical topics )