# Exim test configuration 0029

.include DIR/aux-var/std_conf_prefix

primary_hostname = myhost.test.ex

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

acl_smtp_rcpt = check_rcpt


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

begin acl

check_rcpt:
  require  verify = sender
           verify = sender=\
                    ${if eq {$sender_address_domain}{test.ex}\
                    {$sender_address_local_part@abc.test.ex}\
                    {$sender_address}}
  accept


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

begin routers

r1:
  driver = accept
  domains = test.ex : xyz.test.ex
  transport = t1

r2:
  driver = accept
  domains = abc.test.ex
  local_parts = ok
  transport = t1


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

begin transports

t1:
  driver = appendfile
  file = /dev/null

# End