[Exim] bogofilter - Exim filter help needed

Páxina inicial
Borrar esta mensaxe
Responder a esta mensaxe
Autor: Brandon Martus
Data:  
Para: exim-users
Asunto: [Exim] bogofilter - Exim filter help needed
Hi,

I have my Exim filter file set up as follows:

# Exim filter

if error_message then finish endif

if $header_to: is "registerspam@???"
then
pipe "/home/pubarso/bin/bogofilter -d /home/pubarso/.bogofilter -s"
elif $header_to: is "registernonspam@???"
then
pipe "/home/pubarso/bin/bogofilter -d /home/pubarso/.bogofilter -n"
elif $header_to: is "spam@???"
then
pipe "/home/pubarso/bin/bogofilter -d /home/pubarso/.bogofilter -S"
elif $header_to: is "nonspam@???"
then
pipe "/home/pubarso/bin/bogofilter -d /home/pubarso/.bogofilter -N"
else
pipe "/home/pubarso/bin/bogofilter -u -e -p -d /home/pubarso/.bogofilter"
endif


Now, Exim does run incoming mail through the 'else' clause, and adds this
header:
X-Bogosity: No, tests=bogofilter, spamicity=0.000000, version=0.8.0

BUT -- the mail is then bounced, and thats where the problem is ..
I've tried adding " > /dev/null 2>&1" to the end of the command, to
surpress the output
but that doesn't make sense .. because the mail has to be modified (w/new
header) and then
sent to the correct mailbox.

Anyway, any help would be greatly appreciated.
Below is the bounced e-mail, so you can see whats happening on that end..

Is there something I have to add to my Exim filter?

Thanks in advance,
Brandon





------- BOUNCED EMAIL BELOW ---------


From MAILER-DAEMON Wed Nov 20 07:17:37 2002
Return-path: <>
Envelope-to: mister@???
Delivery-date: Wed, 20 Nov 2002 07:17:37 -0700
Received: from root by liberty.network.net with local (Exim 3.36 #1)
id 18EVfd-0006hl-00
for mister@???; Wed, 20 Nov 2002 07:17:37 -0700
X-Failed-Recipients: mister@???
From: Mail Delivery System <Mailer-Daemon@???>
To: mister@???
Subject: Mail delivery failed: returning message to sender
Message-Id: <E18EVfd-0006hl-00@???>
Date: Wed, 20 Nov 2002 07:17:37 -0700

This message was created automatically by mail delivery software (Exim).

A message that you sent could not be delivered to one or more of its
recipients. This is a permanent error. The following address(es) failed:

   pipe to |/home/domain/bin/bogofilter -u -e -p -d /home/domain/.bogofilter
     generated by mister@???


The following text was generated during the delivery attempt:

------ pipe to |/home/domain/bin/bogofilter -u -e -p -d
/home/domain/.bogofilter
        generated by mister@??? ------


>From mister@??? Wed Nov 20 07:17:37 2002

Received: from darooga.chimesnet.com ([63.211.16.3] helo=cans.domain.com)
by liberty.network.net with esmtp (Exim 3.36 #1)
id 18EVfd-0006h0-00
for mister@???; Wed, 20 Nov 2002 07:17:37 -0700
Message-Id: <5.1.1.6.0.20021120091720.00b62a10@???>
X-Sender: mister@???
X-Mailer: QUALCOMM Windows Eudora Version 5.1.1
Date: Wed, 20 Nov 2002 09:17:28 -0500
To: mister@???
From: Brandon Martus <mister@???>
Subject: test1234
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"; format=flowed
X-Bogosity: No, tests=bogofilter, spamicity=0.000000, version=0.8.0

test4321



------ This is a copy of the message, including all the headers. ------

Return-path: <mister@???>
Received: from darooga.chimesnet.com ([63.211.16.3] helo=cans.domain.com)
by liberty.network.net with esmtp (Exim 3.36 #1)
id 18EVfd-0006h0-00
for mister@???; Wed, 20 Nov 2002 07:17:37 -0700
Message-Id: <5.1.1.6.0.20021120091720.00b62a10@???>
X-Sender: mister@???
X-Mailer: QUALCOMM Windows Eudora Version 5.1.1
Date: Wed, 20 Nov 2002 09:17:28 -0500
To: mister@???
From: Brandon Martus <mister@???>
Subject: test1234
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"; format=flowed

test4321