# Exim test configuration 0285

.include DIR/aux-var/std_conf_prefix

primary_hostname = myhost.test.ex

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

qualify_domain = test.ex
remote_max_parallel = 1


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

begin routers

bounces:
  driver = redirect
  senders = :
  data = :blackhole:

all:
  driver = manualroute
  route_list = * 127.0.0.1 byname
  self = send
  transport = ${if eq {$domain}{test.ex} {smtp}{magic_smtp}}


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

begin transports

smtp:
  driver =	smtp
  port =	PORT_S
  hosts_try_fastopen = :
  max_rcpt = 	2
  connection_max_messages = 3

magic_smtp:
  driver =	smtp
  port =	PORT_S
  hosts_try_fastopen = :
  max_rcpt = 	${if match {$domain}{magic(\\d+)} {$1} {2}}
  connection_max_messages = 3


# ----- Retry -----


begin retry

* * F,1h,10m


# End
