OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
Re: Postfix setting? or Spam Assassin?

From: mouss (usebsdfree.fr)
Date: Wed Nov 01 2006 - 10:27:18 CST


Alan Fullmer wrote:
> Thanks. That puts me on the right path.
>
> I did forget to post my script:
>
> #!/bin/bash
> /usr/bin/spamc -f -u "$4" | /usr/sbin/sendmail -i "$"
> exit $?
>

You are filtering one message, using the first recipient ($4). as a
result, the message will have one score (corresponding to the first user).

use
spamassassin_destination_recipient_limit = 1

so that the message is "split" by postfix (one recipient at a time)
before using the spamassassin transport.