[exim] vacation / first_delivery question

Top Page
Delete this message
Reply to this message
Author: V. T. Mueller
Date:  
To: exim-users
Subject: [exim] vacation / first_delivery question
Hello,


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

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:

"first_delivery

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?

The FAQ doesn't have anything related, so any hint is greatly
appreciated.

TIA,
vt

# Check if vacation is set
vacation_reply:
   domains = "${lookup mysql {MYSQL_VACATIONQUERY}{$value}}"
   driver = manualroute
   route_data = "${lookup mysql {MYSQL_VACATIONQUERY}{$value}}"
   condition = "${if and { \
     {!eq {$header_precedence:}{list}} \
     {!eq {$header_precedence:}{bulk}} \
     {!eq {$header_precedence:}{junk}} \
#    {eq {$header_to:}{$header_envelope-to:}} \
# envelope-to ist erst bei local_delivery vorhanden
   }{1}{0}}"
   transport = vacation_delivery
   unseen = true