# Exim test configuration 0166

exim_path = EXIM_PATH
host_lookup_order = bydns
rfc1413_query_timeout = 0s
spool_directory = DIR/spool
log_file_path = DIR/spool/log/%slog
gecos_pattern = ""
gecos_name = CALLER_NAME

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

domainlist local_domains = test.ex
qualify_domain = test.ex


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

begin routers

alias:
  driver = redirect
  allow_defer
  data = ${lookup{$local_part}lsearch{DIR/aux-fixed/TESTNUM.aliases}}
  headers_add = X-Delivered-To: $local_part@$domain
  retry_use_local_part

user:
  driver = accept
  headers_add = X-Delivered-To: $local_part@$domain
  retry_use_local_part
  transport = local_delivery


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

begin transports

local_delivery:
  driver = appendfile
  envelope_to_add
  file = DIR/test-mail/$local_part
  user = CALLER


# End