Hi,
>>
>> 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
>>
>
> smtpd (listener) is not smtp (client).

Ops, my mistake.

 -o smtpd_header_checks=regexp:/path/header_checks


>
> 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.


[]'s


-- 
Eduardo Júnior
GNU/Linux user #423272

:wq

Reply via email to