Mailing List Archive

User to run sa-learn
Hi,

which user should I use to run sa-learn and to make it learn spam?

Bye and thanks,
Werner.
Re: User to run sa-learn [ In reply to ]
At 01:25 PM 2/25/2004, Werner Schalk wrote:
>Hi,
>
>which user should I use to run sa-learn and to make it learn spam?

Which user do you use to run spamassassin to check if email is spam?
Re: User to run sa-learn [ In reply to ]
Hi Matt,

ps aux | grep spam comes up with these results

root 15171 0.0 1.7 16348 8684 ? S Feb03
2:27 /usr/local/bin/spamd -d -c
qmailq 648 0.0 0.1 2028 904 ? S 20:44 0:00 sh
-c /usr/local/bin/spamc -f
< /var/spool/qmailscan/working/new/server1077738278455642
qmailq 649 0.0 0.1 1916 588 ? S 20:44
0:00 /usr/local/bin/spamc -f
qmailq 650 0.3 2.2 16652 11588 ? S 20:44
0:00 /usr/local/bin/spamd -d -c

So is qmailq or root the appropriate user to run sa-learn as?

Bye and thanks,
Werner.
Re: User to run sa-learn [ In reply to ]
At 01:43 PM 2/25/2004, Werner Schalk wrote:
>qmailq 650 0.3 2.2 16652 11588 ? S 20:44
>0:00 /usr/local/bin/spamd -d -c
>
>So is qmailq or root the appropriate user to run sa-learn as?

qmailq ...

spamd, when run as root, will setuid itself to the uid of the spamc caller
before scanning mail.. This is what you can see above.