# Exim test configuration 0104

.include DIR/aux-var/std_conf_prefix


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

acl_smtp_rcpt = check_recipient
acl_smtp_data = check_message

domainlist local_domains = test.ex : n.t
qualify_domain = test.ex


# ----- Rewrite -----

begin rewrite

a.b@p.q     yyy@test.ex

# End


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

begin routers

lookuphost:
  driver = dnslookup
  domains = ! +local_domains
  transport = appendfile
  widen_domains = test.ex
  no_more

all:
  driver = accept
  retry_use_local_part
  transport = appendfile


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

begin transports

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


# End