# Exim test configuration 5050

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

localuser:
  driver = accept
  local_part_prefix = bsmtp_ : mmdf_ : mbx_
  local_part_prefix_optional
  retry_use_local_part
  transport = ${local_part_prefix}local_delivery


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

begin transports

local_delivery:
  driver = appendfile
  delivery_date_add
  envelope_to_add
  file = DIR/test-mail/$local_part
  file_format = "From       : local_delivery :\
                 *mbx*\r\n  : mbx_local_delivery :\
                 tpmissing  : tpmissing"
  return_path_add
  user = CALLER

bsmtp_local_delivery:
  driver = appendfile
  batch_max = 100
  use_bsmtp
  delivery_date_add
  envelope_to_add
  file = DIR/test-mail/$local_part
  return_path_add
  user = CALLER

mbx_local_delivery:
  driver = appendfile
  check_string =
  delivery_date_add
  envelope_to_add
  file = DIR/test-mail/$local_part
  mbx_format
  message_prefix =
  return_path_add
  message_suffix =
  user = CALLER


# ----- Retry -----

begin retry

* * F,2d,2d

# End