I am using an autoreply router, based on a common recipe floating on the net:
Router:
uservacation:
driver = redirect
allow_filter
domains = domain.com
hide_child_in_errmsg
debug_print = "R: autoreply for $user"
reply_transport = vacation_reply
no_verify
require_files = /home/share/autoreply.txt
file = /home/share/autoreply.txt
user = Debian-exim
group = Debian-exim
unseen
Transport:
vacation_reply:
debug_print = "T: vacation reply for $local_part@domain"
driver = autoreply
file = /home/share/autoreply.txt
file_expand
from = [email protected]
to = $sender_address
subject = "Re: $h_subject"
text = "Automatic reply\n\n"
Autoreply:
# Exim filter
if ($h_subject: does not contain "SPAM?" and personal) then
mail
expand file /home/share/autoreply.txt.txt
to $reply_address
from $local_part\@$domain
subject "Autoreply...[Re: $h_subject:]"
endif
This works well for most users, however one user has an alias in /etc/aliases which is processed by a system_aliases
router before the autoreply.
If the email is sent to the alias, then the autoreply doesn't trigger. I cannot figure out why, as the router above doesn't seem to care whether the local_part matches a system username.
Any ideas? (By the way, I realise I am doubling up some of the elements there as I have tried different approaches).
0 Answers