... works great when it's *not* set to relay, but once I tell Postfix to relay mail to its final destination, amavisd & spamassassin quits adding the appropriate headers.
Full headers:
Return-Path: <
jnichols@exile.pbp.net>
Received: from test.pbp.net (unknown [192.168.10.41])
by mail.pbp.net (Postfix) with ESMTP id 4222711E0
for <
jnichols@matrixdatatech.com>; Sat, 6 Dec 2003 23:08:22 -0800 (PST)
Received: from localhost (localhost [127.0.0.1])
by test.pbp.net (Postfix) with ESMTP id 2EC783C389
for <
jnichols@matrixdatatech.com>; Sat, 6 Dec 2003 23:08:23 -0800 (PST)
Received: from test.pbp.net ([127.0.0.1])
by localhost (test [127.0.0.1]) (amavisd-new, port 10024) with LMTP
id 13600-01 for <
jnichols@matrixdatatech.com>;
Sat, 6 Dec 2003 23:08:22 -0800 (PST)
Received: from exile.pbp.net (unknown [63.192.52.209])
by test.pbp.net (Postfix) with ESMTP id 882DF392E6
for <
jnichols@matrixdatatech.com>; Sat, 6 Dec 2003 23:08:22 -0800 (PST)
Received: by exile.pbp.net (Postfix, from userid 1000)
id 0054622DF6; Sat, 6 Dec 2003 23:08:20 -0800 (PST)
To:
jnichols@matrixdatatech.com
Subject: junk
Message-Id: <
20031207070820.0054622DF6@exile.pbp.net>
Date: Sat, 6 Dec 2003 23:08:20 -0800 (PST)
From:
jnichols@exile.pbp.net (Jonathan Nichols)
X-Virus-Scanned: by amavisd-new at test.pbp.net
Subject: Test spam mail (GTUBE)
Message-ID: <
GTUBE1.1010101@example.net>
Date: Wed, 23 Jul 2003 23:30:00 +0200
From: Sender <
sender@example.net>
To: Recipient <
recipient@example.net>
-----
See? It adds the "X-Virus-Scanned" header before relaying it to the final destination.
Now, see what happens if I send to a "local" address. This is the *exact same* test spam sent from the same remote machine.
Return-Path: <
jnichols@exile.pbp.net>
X-Original-To:
jnichols@test.pbp.net
Delivered-To:
jnichols@test.pbp.net
Received: from localhost (localhost [127.0.0.1])
by test.pbp.net (Postfix) with ESMTP id 9F1A73C389
for <
jnichols@test.pbp.net>; Sat, 6 Dec 2003 23:12:07 -0800 (PST)
Received: from test.pbp.net ([127.0.0.1])
by localhost (test [127.0.0.1]) (amavisd-new, port 10024) with LMTP
id 13601-02 for <
jnichols@test.pbp.net>;
Sat, 6 Dec 2003 23:12:07 -0800 (PST)
Received: from exile.pbp.net (unknown [63.192.52.209])
by test.pbp.net (Postfix) with ESMTP id 623BA392E6
for <
jnichols@test.pbp.net>; Sat, 6 Dec 2003 23:12:07 -0800 (PST)
Received: by exile.pbp.net (Postfix, from userid 1000)
id D4EE822DF6; Sat, 6 Dec 2003 23:12:05 -0800 (PST)
To:
jnichols@test.pbp.net
Subject: ***SPAM*** junk
Message-Id: <
20031207071205.D4EE822DF6@exile.pbp.net>
Date: Sat, 6 Dec 2003 23:12:05 -0800 (PST)
From:
jnichols@exile.pbp.net (Jonathan Nichols)
X-Virus-Scanned: by amavisd-new at test.pbp.net
X-Spam-Status: Yes, hits=1000.0 tagged_above=-999.0 required=5.0 tests=GTUBE
X-Spam-Level: ********************************************************
X-Spam-Flag: YES
Subject: Test spam mail (GTUBE)
Message-ID: <
GTUBE1.1010101@example.net>
Date: Wed, 23 Jul 2003 23:30:00 +0200
From: Sender <
sender@example.net>
To: Recipient <
recipient@example.net>
------
It adds the headers!! But it will NOT add the headers/subject line when being sent to a "relayed" domain!!
It drives me nuts. My current solution is the amavis/anomy solution, but it is *not* scalable and quite easily overcome. The box scans & relays mail for about 15 domains at the present time.
Help?
