robin.wakefi...@ubs.com:
> Hi,
> 
> We have a number of lookups that are performed against all incoming messages.
> 
> smtpd_recipient_restrictions applies a FILTER based on the recipient address
> header_checks applies a FILTER based on the contents of the header lines
> 
> If the recipient address FILTER is triggered, is there any way of
> preventing the header_checks filter from being applied, and
> effectively overriding the 1st FILTER?  The only thing I can think
> of is to have 2 separate instances, but I would like to try and
> avoid this if possible, or put the messages on HOLD if the recipient
> address is triggered.

The precedence is not configurable. With multiple FILTER actions
(regardless of their origin) the last one takes effect.

header_checks are not meant to be a super-precise feature,
so this is unlikely to change.

The control that you need may be better implemented with for example
amavisd policy banks.

        Wietse

Reply via email to