Testsuite: move dsearch-dependent testcase
[exim.git] / test / confs / 0375
1 # Exim test configuration 0375
2
3 .include DIR/aux-var/std_conf_prefix
4
5 primary_hostname = myhost.test.ex
6
7 # ----- Main settings -----
8
9 domainlist local_domains = test.ex : *.test.ex
10 log_selector = +return_path_on_delivery
11 remote_max_parallel = 1
12
13
14 # ----- Routers -----
15
16 begin routers
17
18 u1:
19 driver = accept
20 local_parts = ^a\\d
21 transport = ut1
22 errors_to =
23 unseen
24
25 ut2:
26 driver = accept
27 local_parts = ^b\\d
28 transport = ut2
29 errors_to = ""
30 unseen
31
32 ut3:
33 driver = accept
34 local_parts = ^c\\d
35 transport = ut3
36 errors_to =
37 unseen
38
39 ut4:
40 driver = accept
41 local_parts = ^d\\d
42 transport = ut4
43 errors_to =
44 unseen
45
46 ut5:
47 driver = accept
48 local_parts = ^e\\d
49 transport = ut5
50 unseen
51
52 ut6:
53 driver = accept
54 local_parts = ^f\\d
55 address_data = $sender_address
56 transport = ut6
57 errors_to =
58 unseen
59
60 ut7:
61 driver = accept
62 local_parts = ^g\\d
63 address_data = $bad expansion
64 transport = ut6
65 errors_to =
66 unseen
67 disable_logging
68
69 ut8:
70 driver = accept
71 local_parts = ^h\\d
72 transport = ut1
73 errors_to = ${if eq{0}{1}{x@y}fail}
74 unseen
75
76 real:
77 driver = accept
78 transport = real
79
80
81 # ----- Transports -----
82
83 begin transports
84
85 # Successful local transport
86 ut1:
87 driver = appendfile
88 file = DIR/test-mail/${bless:$local_part}-u
89 user = CALLER
90 return_path_add
91 envelope_to_add
92 disable_logging
93
94 # Hard unsuccessful local transport
95
96 ut2:
97 driver = pipe
98 command = /non/existent/file
99 user = CALLER
100 disable_logging
101
102 # Soft unsuccessful local transport
103
104 ut3:
105 driver = pipe
106 command = /non/existent/file
107 temp_errors = *
108 user = CALLER
109 disable_logging
110
111 # Remote transport - all types
112
113 ut4:
114 driver = smtp
115 hosts = 127.0.0.1
116 port = PORT_S
117 hosts_try_fastopen = :
118 allow_localhost
119 max_rcpt = 1
120 disable_logging
121
122 # Another remote transport with return_path set empty
123
124 ut5:
125 driver = smtp
126 hosts = 127.0.0.1
127 port = PORT_S
128 hosts_try_fastopen = :
129 allow_localhost
130 max_rcpt = 1
131 disable_logging
132 return_path =
133
134 # Another remote transport with return_path reinstating original
135
136 ut6:
137 driver = smtp
138 hosts = 127.0.0.1
139 port = PORT_S
140 hosts_try_fastopen = :
141 allow_localhost
142 max_rcpt = 1
143 disable_logging
144 return_path = $address_data
145
146 # Real delivery
147 real:
148 driver = appendfile
149 file = DIR/test-mail/${bless:$local_part}
150 user = CALLER
151 return_path_add
152 envelope_to_add
153
154
155 # ----- Retry -----
156
157
158 begin retry
159
160 * * F,5d,1d
161
162
163 # End