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