On Thursday, August 13, 2009 at 22:18 CEST,
     Eduardo Júnior <ihtrau...@gmail.com> wrote:

> > smtpd (listener) is not smtp (client).
>
> Ops, my mistake.
>
>  -o smtpd_header_checks=regexp:/path/header_checks

There is no such configuration parameter. To have different header
checks for different smtpd(8) listeners you need to define multiple
cleanup(8) services with different header_checks values and arbiter
between the services with the cleanup_service_name parameter.

> > Again, isn't required any aditional configuration than
> > header_checks.
> >
> > You need a regular expression to match exactly with local amavis
> > server.
> >
> > You can test with postmap:
> >
> > postmap -q - regexp:/path/header_checks < /path/to/sample-message
>
> I did that. Created some regular expressions and if a regexp matches
> with all the message or part of it, the rule was actived.
> Like that:
>
> /^Received: from \[[0-9]+(\.[0-9]+){3}\]/     IGNORE
>
> If my header is Received: from [192.168.1.32] the rule is actived
> If my header is Received: from [192.168.1.32] (unknown [192.168.1.32])
> ..... the rule is actived too.
>
> And this isn't a match exactly.

No, so you need to craft a more precise expression. The look of the
Received: header you want to remove is very well-known, so it should
be quite easy to craft a suitable expression.

-- 
Magnus Bäck
mag...@dsek.lth.se

Reply via email to