Eduardo Júnior wrote:
I have two daemons smtp, one to incoming messages, other to outgoing mesages.
So, in master.cf I did that:

 -o smtp_header_checks=regexp:/path/header_checks

Good. That should do the trick.


checks_headers:
^Received: from amavis IGNORE
...
proper form would be
/^Received: from amavis/  IGNORE

but you should really make it more specific than this so it only matches
YOUR headers, and not everyone who uses amavis.


This was just an example.
This match MUST all the line or just the beginning?
It's 'cause the line that i want to remove is long, something like that:

Received: from [IP] (unknown [IP])      (using TLSv1 with cipher
DHE-RSA-AES256-SHA (256/256 bits))      (No client certificate
requested)      by myserver (Postfix) with ESMTPSA id 333333    for
<u...@mydomain.com>; Thu, 13 Aug 2009 14:23:48 -0300 (BRT)


You'll need to read up on constructing regular expressions, then test your expression with
postmap -q "input string" regexp:/path/header_checks
For testing with postmap, "input string" should not have any line feeds.

Google has a wealth of information on constructing regular expressions.

  -- Noel Jones

Reply via email to