Re: [exim] vacation / first_delivery question

Startseite
Nachricht löschen
Nachricht beantworten
Autor: Philip Hazel
Datum:  
To: V. T. Mueller
CC: exim-users
Betreff: Re: [exim] vacation / first_delivery question
On Fri, 6 May 2005, V. T. Mueller wrote:

> Is there a way in which vacation messages are only sent if header_to and
> envelope_to are identical? E. g. not to send vacation messages for adresses
> that are the result of aliasing (=have been processed by another router
> already).


1. You could add a header in "another router" and test for it in the
vacation router.

2. You could test for the presence of "$local_part@$domain" in the To:
header and make that a condition of your vacation router. Something
like:

condition = ${if match{$h_to:}{${rxquote:$local_part@$domain}}}

> I wonder if "first_delivery" would be an option to use, but the docs don't
> make clear in which regard "delivery" is exactly meant:


Ah, sorry, that's a misunderstanding. In this context, "delivery" means
"a process that is trying to deliver the message". The value of
"first_delivery" becomes FALSE only if there are delays in delivering to
some of the recipients, and a message has to wait on the queue and be
tried again later.

> This condition, which has no data, is true during a message's first delivery
> attempt. It is false during any subsequent delivery attempts."
>
> So is a router processing a message a delivery attempt?


A router processes an address, not a message. An operating system
process runs an Exim delivery process, which makes a "delivery attempt"
on a message - this involves tryint to deliver to all the as-yet-
undelivered addresses.


-- 
Philip Hazel            University of Cambridge Computing Service,
ph10@???      Cambridge, England. Phone: +44 1223 334714.
Get the Exim 4 book:    http://www.uit.co.uk/exim-book