Re: [exim] Routing based on added headers.

Top Page
Delete this message
Reply to this message
Author: Jeremy Harris
Date:  
To: exim-users @ exim. org
Subject: Re: [exim] Routing based on added headers.
Tom Marazita wrote:
> I have a number of simple aliases via a redirect router, a la
> an /etc/aliases file. I'd like to be able to have a
> "Precedence: junk" header added to some of these so they can
> be considered as junk.
>
> The goal would be so that later routing via autoresponders
> could ignore the message (for example, so a vacation response
> would not be generated).
>
> I can't just add the Precedence: header in the redirect router
> since section 43.16 of the docs says the added headers will not be
> available
> to later routers.


If you're not already using $address_data for something else,
you could set it based on a lookup, in an early dummy redirect
router (with data = "", so it declines - but address_data= is
still actioned). Then your later routers can test it.

- Jeremy