On Saturday 11 November 2006 22:49, Michael Scheidell wrote:

> What happens with this:
>    user=${recipient} argv=/usr/bin/spamc -e /usr/sbin/sendmail -oi -f
> ${sender} > ${recipient}

Does not work. But I found that postfix knows serveral variables for each 
incoming mail, one of them being the local user (without domain extension) 
the mail is being delivered to. This can be used to run spamc as the desired 
user:

spamassassin    unix     -      n       n       -       -       pipe
   user=nobody argv=/usr/bin/spamc -u $user -e /usr/sbin/sendmail -oi -f 
${sender} ${recipient}

-- 
YT,
Michael

Reply via email to