# Exim test configuration 0135

.include DIR/aux-var/std_conf_prefix


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

domainlist local_domains = test.ex

qualify_domain = test.ex
ignore_bounce_errors_after = 0s
admin_groups = CALLERGROUP
remote_max_parallel = 1


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

begin routers

default:
  driver = manualroute
  domains = ! +local_domains
  route_list = "known.ex V4NET.0.0.0 byname;\
                *        V4NET.0.0.1 byname"
  transport = smtp
  no_more

null:
  driver = redirect
  allow_defer
  condition = ${if eq {$sender_address}{}{yes}{no}}
  data = :blackhole:
  retry_use_local_part

smart:
  driver = accept
  retry_use_local_part
  transport = local_delivery


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

begin transports

smtp:
  driver = smtp
  hosts_try_fastopen =	:
  connect_timeout = 1s

local_delivery:
  driver = appendfile
  file = DIR/test-mail/$local_part
  create_file = DIR/test-mail
  quota = 20
  user = CALLER


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

# Note that these retry rules are not sensible! However, they serve to make
# Exim behave as required in order to run this test. It does not normally make
# sense to have the time limit on the second rule shorter than the first,
# because that means the second rule will never actually be used for retries.
# However, Exim uses the time limit on the final rule to check for the ultimate
# address retry, so what we have here is a total kludge!

begin retry

d@test.ex quota  F,1d,15m;  F,7s,1s
*         quota  F,1h,10s;  F,1s,1s
known.ex  *      F,1h,10s;  F,1s,1s
special   *      F,30d,1h
*         *      F,1d,15m;  F,8s,1s


# End