1 # Exim test configuration 4620
3 .include DIR/aux-var/std_conf_prefix
7 # ----- Main settings -----
11 domainlist local_domains = test.ex
12 domainlist remotesite_domains = remote.ex
14 log_selector = +all_parents +received_recipients +return_path_on_delivery
24 condition = ${if eq {$sender_host_address}{127.0.0.1}}
25 data = :fail: account disabled
30 domains = +local_domains
32 route_list = test.ex 127.0.0.1::PORT_S
34 transport = to_external
39 domains = !+local_domains
40 route_list = remote.ex 127.0.0.1::PORT_S
42 transport = ${if eq {$local_part@$domain} {$original_local_part@$original_domain} \
43 {to_external} {forwarded_external}}
49 domains = +local_domains
50 # detect inbound bounces which are SRS'd, and decode them
51 condition = ${if inbound_srs {$local_part} {SRS_SECRET}}
57 domains = +local_domains
58 # detect inbound bounces which look SRS'd but are invalid
59 condition = ${if inbound_srs {$local_part} {}}
61 data = :fail: Invalid SRS recipient address
66 local_parts = redirect
67 data = remote_user@remote.ex
71 transport = appendfile
74 # ----- Transports -----
84 return_path = ${srs_encode {SRS_SECRET} {$return_path} {$original_domain}}
89 file = DIR/test-mail/${bless:$local_part}