# Exim test configuration 0297

.include DIR/aux-var/std_conf_prefix

primary_hostname = myhost.test.ex

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

system_filter = DIR/aux-fixed/TESTNUM.Filter
system_filter_file_transport = ${if eq {$address_file}{/a/b/c}{tf1}{tf2}}
system_filter_directory_transport = ${if match{$address_file}{//\$}{td2}{td1}}
trusted_users = CALLER

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

begin routers

r1:
  driver = redirect
  data = $local_part
  file_transport = ${if eq {$address_file}{/a/b/c}{tf1}{tf2}}
  directory_transport = ${if match{$address_file}{//\$}{td2}{td1}}
  user = CALLER


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

begin transports

tf1:
  driver = appendfile
  user = CALLER

tf2:
  driver = appendfile
  user = CALLER

td1:
  driver = appendfile
  user = CALLER

td2:
  driver = appendfile
  user = CALLER

# End