# Exim test configuration 0016

.include DIR/aux-var/std_conf_prefix


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

qualify_domain = test.ex


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

begin routers

userforward:
  driver = redirect
  allow_filter
  user = CALLER
  local_parts = userx : CALLER
  file = DIR/aux-fixed/0016.filter.$local_part_data
  local_part_suffix = +*
  local_part_suffix_optional
  reply_transport = address_reply

localuser:
  driver = accept
  local_parts = userx : CALLER
  local_part_suffix = +*
  local_part_suffix_optional
  transport = local_delivery


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

begin transports

local_delivery:
  driver = appendfile
  user = CALLER
  delivery_date_add
  envelope_to_add
  headers_add = X-local_part: $local_part\n\
		X-local_part_suffix: $local_part_suffix\n\
		X-local_part_suffix_v: $local_part_suffix_v
  return_path_add
  file = DIR/test-mail/$local_part
  create_file = DIR/test-mail

address_reply:
  driver = autoreply

# End