I've never had a use for the -u option for sa-learn myself. I just use "su amavis -c sa-learn" instead. However, I believe that if you are going to use "-u", you also need to specify the prefspath and the dbpath.

Austin Weidner wrote:

I think you missed my point. I am trying to launch sa-learn from root. Two
reasons, one I don't want spamd to have shell access, and two I am writing a
script.

If anyone else knows why this feature doesn't work, please let me know!

-----Original Message-----
From: Thomas Kinghorn [MTNNS -Rosebank] [mailto:[EMAIL PROTECTED] Sent: Monday, February 14, 2005 4:45 AM
To: Austin Weidner
Subject: RE: Does sa-learn -u <username> WORK?!


Login as root su - spamd
sa-learn.....



-----Original Message-----
From: Austin Weidner [mailto:[EMAIL PROTECTED] Sent: 14 February 2005 11:00 AM
To: users@spamassassin.apache.org
Subject: Does sa-learn -u <username> WORK?!


My spamassassin is running as user spamd

If I try to do a:

sa-learn -u spamd --dump magic

Just to see what is happening, I get:

ERROR: Bayes dump returned error, please re-run with -D for more
information

After doing the -D, I can see that it is still thinking it is root.

If I login to spamd and then run sa-learn --dump magic, everything is
fine.

Anyone know how to fix this?




Reply via email to