Commit | Line | Data |
---|---|---|
afda344b PH |
1 | # Exim test configuration 0375 |
2 | ||
d4dc049f JH |
3 | .include DIR/aux-var/std_conf_prefix |
4 | ||
afda344b | 5 | primary_hostname = myhost.test.ex |
afda344b PH |
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/$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 | allow_localhost | |
118 | max_rcpt = 1 | |
119 | disable_logging | |
120 | ||
121 | # Another remote transport with return_path set empty | |
122 | ||
123 | ut5: | |
124 | driver = smtp | |
125 | hosts = 127.0.0.1 | |
126 | port = PORT_S | |
127 | allow_localhost | |
128 | max_rcpt = 1 | |
129 | disable_logging | |
130 | return_path = | |
131 | ||
132 | # Another remote transport with return_path reinstating original | |
133 | ||
134 | ut6: | |
135 | driver = smtp | |
136 | hosts = 127.0.0.1 | |
137 | port = PORT_S | |
138 | allow_localhost | |
139 | max_rcpt = 1 | |
140 | disable_logging | |
141 | return_path = $address_data | |
142 | ||
143 | # Real delivery | |
144 | real: | |
145 | driver = appendfile | |
146 | file = DIR/test-mail/$local_part | |
147 | user = CALLER | |
148 | return_path_add | |
149 | envelope_to_add | |
150 | ||
151 | ||
152 | # ----- Retry ----- | |
153 | ||
154 | ||
155 | begin retry | |
156 | ||
157 | * * F,5d,1d | |
158 | ||
159 | ||
160 | # End |