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