Author: robert
Date: Sat Nov 17 00:22:00 2007
New Revision: 817

Modified:
   trunk/plugins/spamassassin

Log:
add new clamd_user parameter that sets the user we pass to clamd


Modified: trunk/plugins/spamassassin
==============================================================================
--- trunk/plugins/spamassassin  (original)
+++ trunk/plugins/spamassassin  Sat Nov 17 00:22:00 2007
@@ -59,6 +59,10 @@
 parameter 'rename') or have them removed (parameter 'drop'). If you know
 what you are doing, you can also leave them intact (parameter 'keep').
 
+=item spamd_user [username]
+
+The username to pass to spamd, if different from the user qpsmtpd runs as.
+
 =back
 
 With both of the first options the configuration line will look like the 
following
@@ -133,7 +137,7 @@
   SPAMD->autoflush(1);
   
   $transaction->body_resetpos;
-  my $username = getpwuid($>);
+  my $username = $self->{_args}->{spamd_user} || getpwuid($>);
 
   print SPAMD "SYMBOLS SPAMC/1.3" . CRLF;
   print SPAMD "User: $username" . CRLF;

Reply via email to