# Exim test configuration 0291

exim_path = EXIM_PATH
host_lookup_order = bydns
primary_hostname = myhost.test.ex
rfc1413_query_timeout = 0s
spool_directory = DIR/spool
log_file_path = DIR/spool/log/%slog
gecos_pattern = ""
gecos_name = CALLER_NAME
trusted_users = CALLER

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


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

begin routers

# a=>b and b=>c
r1:
  driver = redirect
  domains = one
  data = ${if eq{$local_part}{a}{b}{${if eq{$local_part}{b}{c}}}}
  qualify_preserve_domain

# a=>b and b=>c, but not if generated by a
r2:
  driver = redirect
  domains = two
  data = ${if eq{$local_part}{a}{b}{${if eq{$local_part}{b}{c}}}}
  qualify_preserve_domain
  no_repeat_use

accept:
  driver = accept
  verify_only

# End