# Exim test configuration 0140

.include DIR/aux-var/std_conf_prefix


# ----- Main settings -----

qualify_domain = test.ex


# ----- Routers -----

begin routers

caller:
  driver = accept
  local_parts = CALLER
  retry_use_local_part
  transport = local_delivery

reply:
  driver = accept
  retry_use_local_part
  senders = !
  transport = ${if eq {reply1}{$local_part} {reply1}{reply2}}


# ----- Transports -----

begin transports

reply1:
  driver = autoreply
  text = "Test auto reply to $h_subject:\nthis is another line"
  to = Reply Person <$sender_address>
  user = EXIMUSER

reply2:
  driver = autoreply
  subject = "Re: $h_subject:"
  to = $reply_address
  user = EXIMUSER

local_delivery:
  driver = appendfile
  delivery_date_add
  envelope_to_add
  file = DIR/test-mail/${bless:$local_part}
  return_path_add
  user = CALLER


# End