OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
Re: Error sending mail with Bogofilter and postfix

From: MisterM (mistermworldpilot.nl)
Date: Thu May 01 2003 - 04:13:48 CDT


Ari I did the folowing tests:

> 2) substitute a simpler filter.
>
> Instead of all the bogofilter invocations, put this in the filter:
>
> cat > /tmp/out.$$
>
> Inspect that file. Then add the filtering command(s) and compare.
> Then try piping the resulting file back into postfix with the sendmail
> command, just as you do in your filter script. This process should
> help you isolate which munging of your mail is making cyrus unhappy.

When I only use cat > /tmp/out.$$ in the script I get no error response and
no mail!

The message looks like this:

more out.19969
Received: from Stagepc2 (r233.intra.nlcom.nl [172.17.6.233])
        by easygate.michel.nlcom.nl (Postfix) with SMTP id 3C9F5146BB
        for <infomichel.nlcom.nl>; Thu, 1 May 2003 10:03:22 +0200 (CEST)
Message-ID: <03be01c30fb7$fe00c140$e90611acStagepc2>
Reply-To: "admin" <adminmichel.nlcom.nl>
From: "admin" <adminmichel.nlcom.nl>
To: <infomichel.nlcom.nl>
Subject: test
Date: Thu, 1 May 2003 10:02:19 +0200
MIME-Version: 1.0
Content-Type: multipart/alternative;
        boundary="----=_NextPart_000_03BB_01C30FC8.C0C15F40"
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 6.00.2800.1106
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106

This is a multi-part message in MIME format.

------=_NextPart_000_03BB_01C30FC8.C0C15F40
Content-Type: text/plain;
        charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

test
------=_NextPart_000_03BB_01C30FC8.C0C15F40
Content-Type: text/html;
        charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.2800.1141" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>test</FONT></DIV></BODY></HTML>

------=_NextPart_000_03BB_01C30FC8.C0C15F40--

When I only use $BOGOFILTER -p and cat > /tmp/out.$$ in the script I get no
error and no mail in the corosponding mailbox

The message look like this (the same as only with cat > /tmp/out.$$)

Same as above

When I test with $SENDMAIL -i or $SENDMAIL -i "$" in the script the mail is
delivered to receiving mailbox and de message created by cat > /tmp/out.$$
is empty.

When I test with $BOGODFILTER -p $SENDMAIL -i "$" in the script I get the
error folowing error back:

<infomichel.nlcom.nl>: data format error. Command output: info: Message has
no
    header/body separator _

but the message looks like the on above.

When I alter the script like this
$BOGOFILTER -p
$SENDMAIL -i "$"

The message is send and delivered wihout a prob and the out.xxxx is empty

It seems btw that cyrus isn't generating a log, the only thing I can find is
in the syslog or the mail log but the messages in there are the same as I
posted before

Again thanx 4 yout help

MisterM