On Wed, 27 Mar 2002, Maurits Bloos wrote:
>> From: dman [mailto:[EMAIL PROTECTED]]
>> On Wed, Mar 27, 2002 at 01:58:45PM +0100, Maurits Bloos wrote:
>> | 
>> | And how do I do that with postfix as the 'in-between-hop' to my
>> | (yuk) M$ Exchange Server (yuk). Most of the messages are a couple
>> | of MB (images/eps/tiff & stuff) Messages of 6MB+ is standard here
>> | :-)
>> 
>> Use spamc/spamd.  If a message is too large, spamc assumes it isn't
>> spam and returns immediately.  The default level of "too large" is
>> 250K, IIRC.
>
> Does anyone have a spamc/spamd config/script for the postfix
> content_filter stuff. I searched the archive but I couldn't find hints
> on how to implement this ...

Mine has the following configuration in Postfix:

smtp      inet  n       -       -       -       -       smtpd
  -o content_filter=spam:
spam      unix  -       n       n       -       -       pipe
  flags=Rq user=mailfilter argv=/home/mailfilter/spam-filter ${user} -f ${sender} -- 
${recipient}

Then I use the following script to run the code:

#!/bin/busybox sh
#
# Process mail through SpamAssassin, adding the results, then feed it back into
# the PostFix process.
user="$1"
shift

exec spamc -u "${user}" | /usr/sbin/sendmail -i $@

        Daniel

-- 
Confidence comes not from always being right but from not fearing to be wrong. 
        -- Peter T. Mcintyre

Reply via email to