Autor: mauritz Fecha: A: exim-users Asunto: [exim] Vacation mail does not work if mail is forwarded to mailbox
Hi all,
I've been trying to setup a simple vacation autoresponder. The responder
works perfectly when we directly send a mail to the "vacation" mailbox. In
our particular case we make use of autoresponders for a testmail feature. We
have a central testmail mailbox (not the vacation mailbox) which when a mail
is sent to it, will forward the mail to another mailbox (in this case the
vacation mailbox), and upon autoresponse we can determine whether our mail
facility outside of our own primary server.
In my tests I am able to get a vacation / autoresponse mail returned when I
send a mail directly to the "vacation" mailbox, but when we send an email to
our testmail which then forwards the mail to the vacation mailbox, the mail
is received in the vacation mailbox but it appears that the Router is not
satisfied and "Transport" is never called. I have fiddled with this but
cannot figure out why this is happening. In both cases the mailbox which
sends the mail to the vacation mailbox is the same (my email address) and
from the exim logs there are nothing separating the 2 incoming mails, but
only 1 mail gets the vacation mail autoresponder.
I however know that this works as we have a couple of other mailboxes at
other providers (1 cPanel and 1 gmail) with autoresponders setup and those
mails arrive each time, so it's definitely something on my end.
Here is my config and sample logs from exim:
# ROUTER:
uservacation:
driver = redirect
hide_child_in_errmsg
ignore_eacces
ignore_enotdir
allow_filter
user = testmail
group = testmail
file = /home/$local_part/vacation.msg
require_files = /home/$local_part/vacation.msg
reply_transport = uservacation_transport
unseen
no_verify
# TRANSPORT:
uservacation_transport:
driver = autoreply
user = testmail
group = testmail
file = /home/$local_part/vacation.msg
file_expand
once = /home/$local_part/vacation.db
once_repeat = 1h
from = testmail@???
to = ${sender_address}
subject = "We have received your testmail!"
# LOGS FROM EXIM WHERE I MAILED TO THE VACATION MAILBOX DIRECTLY: