# Exim test configuration 0410

.include DIR/aux-var/std_conf_prefix


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

primary_hostname = mail.test.ex
qualify_domain = test.ex

acl_smtp_rcpt = rcpt


# ----- ACL -----

begin ACL

rcpt:
  accept verify = recipient
         verify = sender
         condition = ${if eq {$address_data}{ADDRESS_DATA_STRING}{yes}{no}}
         condition = ${if eq {$sender_address_data}{SENDER_ADDRESS_DATA_STRING}{yes}{no}}


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

begin routers

r1:
  driver = redirect
  local_parts = orig
  data = child@test.ex

r2:
  driver = accept
  local_parts = child
  address_data = ADDRESS_DATA_STRING
  transport = t1

r3:
  driver = accept
  local_parts = oksender
  address_data = SENDER_ADDRESS_DATA_STRING
  transport = t1


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

begin transports

t1:
  driver = appendfile
  file = /dev/null
  user = CALLER


# End