On 24-May-2002 at 09:15:03 Nigel Metheringham wrote: > Looking at the thread I can't easily tell how spamc was invoked in this > case... > The exim transport has:
driver = pipe command = /usr/local/exim/bin/exim -oMr spam-scanned -bS transport_filter = /usr/local/bin/spamc -f bsmtp = all home_directory = /tmp current_directory = /tmp user = exim group = mail no_return_path_add log_output return_fail_output prefix = suffix = As such I'm assuming that the exim user will call spamc - I assume exim has dropped its root privileges at this time. However, spamc invokes spamd (that's how it works isn't it?), and since spamd is running as root, the spamd man page says that it will change to the user that called it via spamc - the exim user in this case. As such the log file should show exim as using spamc and not 'unknown'. Hence my confusion :-) >> Oh have exim pass the username to "spamc -u ...", which might be easier. > But I shouldn't have to as far as I can see, spamd will do this for me (see above). > Depends how you invoke it - as in one run per user delivery or one run > per message. I invoke as one run per message (no matter how many users > its being delivered to), by a custom director/transport pair. In this > case spamc runs as user spamkill (a trusted user for exim so that the > reinject works OK). Its pretty hard to get exim to run things as root. > How do you run spamassassin per message with the directors/transports? Surely at this point exim is doing deliveries per recipient, the system filter will handle per message requirements. (I have that awful feeling that I'm asking something stupid here! :-) ) John. ------------------------------------------------------------------------ John Horne, University of Plymouth, UK Tel: +44 (0)1752 233914 E-mail: [EMAIL PROTECTED] PGP key available from public key servers _______________________________________________________________ Don't miss the 2002 Sprint PCS Application Developer's Conference August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm _______________________________________________ Spamassassin-talk mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/spamassassin-talk