# Exim test configuration 0046

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

message_id_header_domain = test.ex
qualify_domain = test.ex
# Omit Received: so as to keep the header size fixed
received_header_text =
trusted_users = CALLER


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

begin routers

forwardfile:
  driver = redirect
  allow_filter
  check_local_user
  file = DIR/aux-fixed/TESTNUM.filter.$local_part

localuser:
  driver = accept
  local_parts = userx
  transport = local_delivery


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

begin transports

local_delivery:
  driver = appendfile
  envelope_to_add
  file = DIR/test-mail/$local_part
  headers_add = "X-size: $message_size\n\
                 X-body-size: $message_body_size\n\
                 X-body: $message_body\n\
                 X-tail: $message_body_end\n\
                 X-local-user: uid=$local_user_uid gid=$local_user_gid"
  return_path_add
  user = CALLER

# End