We have an autoreply router to handle vacation replies, and there's an
issue with aliases not working
vacation:
driver = accept
require_files = /home/${local_part}/.vacation.msg
senders = " ! ^.*-request@.*:\
! ^.*-bounces@.*:\
! ^.*-owner@.*:\
! ^.*-confirm@.*:\
! ^owner-.*@.*:\
! ^root@.*:\
! ^postmaster@.*:\
! ^listmaster@.*:\
! ^mailer-daemon@.*"
transport = vacation_transport
condition = ${if exists{/home/${local_part}/.vacation.msg} {yes}{no}}
unseen
vacation_transport:
driver = autoreply
file = /home/${local_part}/.vacation.msg
file_expand
once =
/usr/local/etc/exim/data/${local_part}.vacation.db
from = "$local_part <${local_part}@${domain}>"
to = $sender_address
subject = "[AutoReply] Re: \$h_subject:"
The problem is that ${local_part} is looking up with the alias, is there
a way to tell it to look up not the alias but the destination address?