Testsuite: make "client" util TLS variants more similar
[users/jgh/exim.git] / test / confs / 4620
1 # Exim test configuration 4620
2
3 .include DIR/aux-var/std_conf_prefix
4
5 SRS_SECRET = mysecret
6
7 # ----- Main settings -----
8
9 acl_smtp_rcpt = accept
10
11 domainlist local_domains = test.ex
12 domainlist remotesite_domains = remote.ex
13
14 log_selector = +all_parents +received_recipients
15 queue_only
16
17 # ----- Routers -----
18
19 begin routers
20
21 remote_bouncer:
22   driver =      redirect
23   condition =   ${if eq {$sender_host_address}{127.0.0.1}}
24   data =        :fail: account disabled
25   allow_fail
26
27 external:
28   driver =      manualroute
29   domains =     !+local_domains
30   route_list =  remote.ex       127.0.0.1::PORT_S
31   self =        send
32   transport =   ${if eq {$local_part@$domain} {$original_local_part@$original_domain} \
33                         {to_external} {forwarded_external}}
34
35 inbound_srs:
36   driver =      redirect
37   senders =     :
38   domains =     +local_domains
39   # detect inbound bounces which are SRS'd, and decode them
40   condition =   ${if inbound_srs {$local_part} {SRS_SECRET}}
41   data =        $srs_recipient
42
43 inbound_srs_failure:
44   driver =      redirect
45   senders =     :
46   domains =     +local_domains
47   # detect inbound bounces which look SRS'd but are invalid
48   condition =   ${if inbound_srs {$local_part} {}}
49   allow_fail
50   data =        :fail: Invalid SRS recipient address
51
52
53 local_redirect:
54   driver =      redirect
55   local_parts = redirect
56   data =        remote_user@remote.ex
57
58 local:
59   driver =      accept
60   transport =   appendfile
61
62
63 # ----- Transports -----
64
65 begin transports
66
67 to_external:
68   driver =      smtp
69
70 forwarded_external:
71   driver =      smtp
72   max_rcpt =    1
73   return_path = ${srs_encode {SRS_SECRET} {$return_path} {$original_domain}}
74
75
76 appendfile:
77   driver =      appendfile
78   file =        DIR/test-mail/${bless:$local_part}
79   user =        CALLER
80
81 # ----- Retry -----
82
83 begin retry
84
85 * * F,5d,1d
86
87 # End