My set up is:
- Fedora Core 5
- Postfix 2.2.8-1.2
- Spamassassin 3.1.3-1.fc5
- Procmail 3.22-16.2.1
- Fetchmail 6.3.4-0.fc5.1

I use fetchmail to get mail from all my different ISP mailboxes. These
then get delivered on my local machine by postfix which calls procmail
in main.cf like this:

mailbox_command = /usr/bin/procmail -Y -a $DOMAIN -d $LOGNAME

I have a number of procmail recipes which deliver mail to different
mbox files depending on certain rules. This works fine until I include
this recipe to pass the mail through spamassassin:

DROPPRIVS=yes
:0 E f w: spamassassin.lock
* < 256000
| /usr/bin/spamassassin

# If the score is 5.00 or more (indicated by number of Rs) put it in
Spam folder.
:0
* ^X-Spam-Level: RRRRR
$MAILDBROOT/Spam
DROPPRIVS=no

When I use this recipe I find that mail that ISN'T spam gets its mail
headers inserted into the body of the email, and the email subject
gets blanked out. Mail that IS spam doesn't seem to get corrupted, for
some reason. Here's what a corrupted message looks like:

**** EMAIL START ****
From nobody  Sun Aug  6 15:23:05 2006
Return-Path: <[EMAIL PROTECTED]>
X-Original-To: [EMAIL PROTECTED]
Delivered-To: [EMAIL PROTECTED]
Received: from mail.optusnet.com.au (ash.blah.home [127.0.0.1])
by ash.blah.home (Postfix) with ESMTP id AD768968B8
for <[EMAIL PROTECTED]>; Sun,  6 Aug 2006 15:23:05 +1000 (EST)
Received: from web39703.mail.mud.yahoo.com
(web39703.mail.mud.yahoo.com [209.191.106.49])
by mail03.syd.optusnet.com.au (8.12.11/8.12.11) with SMTP id k765MbrL018230
for <[EMAIL PROTECTED]>; Sun, 6 Aug 2006 15:22:38 +1000
Received: (qmail 43037 invoked by uid 60001); 6 Aug 2006 05:22:36 -0000
DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws;
 s=s1024; d=yahoo.com.au;
 
h=Message-ID:Received:Date:From:Subject:To:MIME-Version:Content-Type:Content-Transfer-Encoding;
 
b=m6FKD7TWYQfRe8cFlH43UCiASc1nwk8qSuIGhxT+Y1WBFX4Q7sFtr/u7dXvWmL/NDq9IS6yoLuIYxfSf7hQ27brx0fmBVgpXD/MLpQP5Jta2wO0wFDLDXW5zP80lZx8qFB7moTiK0Mj3+90PUBc+2Z+2tGQMHg/jahSnY2NZJXQ=
;
Message-ID: <[EMAIL PROTECTED]>
Received: from [99.107.15.28] by web39703.mail.mud.yahoo.com via HTTP;
Sun, 06 Aug 2006 15:22:36 EST
Date: Sun, 6 Aug 2006 15:22:36 +1000 (EST)
From: Phill Edwards <[EMAIL PROTECTED]>
Subject: test 5
To: Phill Edwards <[EMAIL PROTECTED]>
MIME-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit

test 5

Send instant messages to your online friends http://au.messenger.yahoo.com
**** EMAIL END ****

It has to be something that spamassassin is doing this to the non-spam
emails because when I remove the spamassassin recipe the emails don't
get corrupted. Does anyone know how I can fix this? I can't use
spamassassin while this is going on :(

Thaks in advance,
Phill Edwards

Reply via email to