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