Hi to all,

I've spent about 3 hours to try to remove the "Received: localhost" header from zimbra mails.
I've modified the amavis.conf.in adding two lines:

$insert_received_line = 0;
$allowed_added_header_fields{lc('Received')} = 0;

I've modified the postftix_header_checks.in with

/^Received: from localhost/ IGNORE
/^Received: from localhost.* by FQ\.D\.N/ IGNORE

But I cannot succeded.
The mod in amavis.conf did a part of the trick, because it removed the amavisd part, but I'm stuck with the other part.
This is an example of a mail:

Code:
Delivered-To: MYMAIL
Received: by 10.68.125.34 with SMTP id mn2csp186802pbb;
        Tue, 15 Jan 2013 15:06:41 -0800 (PST)
X-Received: by 10.50.91.168 with SMTP id cf8mr3309322igb.20.1358291201293;
        Tue, 15 Jan 2013 15:06:41 -0800 (PST)
Return-Path: <ORIGINATINGMAIL>
Received: from FQDN (FQDN. [IP])
        by mx.google.com with ESMTP id wx9si5687547igb.20.2013.01.15.15.06.38;
        Tue, 15 Jan 2013 15:06:39 -0800 (PST)
Received-SPF: pass (google.com: domain of ORIGINATINGMAIL designates IP as permitted sender) client-ip=IP;
Authentication-Results: mx.google.com;
       spf=pass (google.com: domain of ORIGINATINGMAIL designates IP as permitted sender) smtp.mail=ORIGINATINGMAIL;
       dkim=pass header.i=@ORIGINATINGDOMAIN
Received: from localhost (localhost [127.0.0.1])
	by FQDNit (Postfix) with ESMTP id 51AB6321927
	for <MYMAIL>; Wed, 16 Jan 2013 00:07:24 +0100 (CET)
X-Virus-Scanned: amavisd-new at DOMAIN
Received: from localhost (localhost [127.0.0.1])
	by FQDN (Postfix) with ESMTP id B2134321926
	for <MYMAIL>; Wed, 16 Jan 2013 00:07:23 +0100 (CET)
DKIM-Filter: OpenDKIM Filter v2.7.1 FQDN B2134321926
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=DOMAIN;
	s=1F3A6370-42ED-11E2-ABFE-A5E20191D087; t=1358291243;
	bh=PS8W1bl9ClumuLdvbhvxwc+izFwmhzDXK0/6xzb2OtA=;
	h=Date:From:To:Message-ID:Subject:MIME-Version:Content-Type:
	 Content-Transfer-Encoding;
	b=d1qmKbI2McHuwrIee1qihb7qYvXv2ByQUxNd0wj95R2+fu3u9MXC0+2bQEwRzBw4t
	 kwdXTrWuMVmtqMRK/V/lQZ4VpADjbF6NtsM0lpPZpa/pNnOrRSIj4t2mry10swGL9T
	 9kMCIQoprL6V6hgnXxTBHlFZaY6tGyrWqPA3tkb0=
X-Virus-Scanned: amavisd-new at DOMAIN
Received: from FQDN (FQDN [IP])
	by FQDN (Postfix) with ESMTP id 2A61732190B
	for <MYMAIL>; Wed, 16 Jan 2013 00:07:23 +0100 (CET)
Date: Wed, 16 Jan 2013 00:07:21 +0100 (CET)
I've stripped many informations but I think that the code is clear.
Anyone can help me?

Thanks