Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am using an autoreply router, based on a common recipe floating on the net:


  driver = redirect
  domains =
  debug_print = "R: autoreply for $user"
  reply_transport = vacation_reply
  require_files = /home/share/autoreply.txt
  file = /home/share/autoreply.txt
  user = Debian-exim
  group = Debian-exim


  debug_print = "T: vacation reply for $local_part@domain"
  driver = autoreply
  file = /home/share/autoreply.txt
  from = $
  to = $sender_address
  subject = "Re: $h_subject"
  text = "Automatic reply\n\n"


# Exim filter
if ($h_subject: does not contain "SPAM?" and personal) then
 expand file /home/share/autoreply.txt.txt
 to $reply_address
 from $local_part\@$domain
 subject "Autoreply...[Re: $h_subject:]"

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

share|improve this question
Data is incomplete. Exim behaviour depends on the routers order and you have to show all of them that precede autoreply router. Also, as for me, in case you have used dovecot as LDA, it is much better to use dovecot's sieve/managesieve for autoreply/vacation functionality. – Kondybas Dec 23 '13 at 4:13
@Kondybas Is there something else in the preceding routers I should be looking for? Everything else in the routers is vanilla Debian if that is useful. – Paul Dec 23 '13 at 4:47
First, change $user to the $local_part in the router. Then move up autoreply router in the list, just after routers that sends messages to the outer space. – Kondybas Dec 23 '13 at 6:19

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.