1 # local_scan() miscellaneous tests
4 rcpt to:<userx@test.ex>
11 mail from:<test-local-scan@y>
12 rcpt to:<userx@test.ex>
19 mail from:<test-local-scan@y>
20 rcpt to:<userx@test.ex>
28 mail from:<test-local-scan@y>
29 rcpt to:<userx@test.ex>
31 local-scan: reject this message isn't wanted
37 mail from:<test-local-scan@y>
38 rcpt to:<userx@test.ex>
40 local-scan: reject this message isn't wanted
41 and we tell it on two lines
47 mail from:<test-local-scan@y>
48 rcpt to:<userx@test.ex>
50 local-scan: tempreject
56 mail from:<test-local-scan@y>
57 rcpt to:<userx@test.ex>
59 local-scan: tempreject this message isn't wanted just now
65 mail from:<test-local-scan@y>
66 rcpt to:<userx@test.ex>
74 mail from:<test-local-scan@y>
75 rcpt to:<userx@test.ex>
77 local-scan: sendto usery@test.ex
78 Testing, testing, was originally to userx.
83 mail from:<test-local-scan@y>
84 rcpt to:<userx@test.ex>
86 local-scan: sendto *this is a blackhole message*
87 Testing, testing, was originally to userx.
92 exim -odi -f test-local-scan@y userx@test.ex
93 local-scan: reject this message isn't wanted
94 Testing, testing, local message (1)
97 exim -odi -oee -f test-local-scan@y userx@test.ex
98 local-scan: reject this message isn't wanted
99 Testing, testing, local message (2)
103 exim -odi -oep -f test-local-scan@y userx@test.ex
104 local-scan: reject this message isn't wanted
105 Testing, testing, local message (3)
109 mail from:<test-local-scan@y>
110 rcpt to:<userx@test.ex>
112 local-scan: accept A=orses b=mutton
119 mail from:<test-local-scan@y>
120 rcpt to:<userx@test.ex>
128 exim -odi -oep -f test-local-scan@y userx@test.ex
134 mail from:<test-local-scan@y>
135 rcpt to:<userx@test.ex>
137 local-scan: sendto bounce@test.ex exbounce@test.ex
138 Testing, testing, was originally to userx.
139 Sent to bounce@test.ex; bounce should go to exbounce.
145 mail from:<test-local-scan@y>
146 rcpt to:<userx@test.ex>
148 local-scan: reject not wanted -bS
154 mail from:<test-local-scan@y>
155 rcpt to:<userx@test.ex>
157 local-scan: accept A=orses b=mutton
159 some newlines in here
164 exim -odi -N -d-all+receive -bs
165 mail from:<test-local-scan@y>
166 rcpt to:<userx@test.ex>
171 exim -odi -N -d-all+local_scan -bs
172 mail from:<test-local-scan@y>
173 rcpt to:<userx@test.ex>
180 mail from:<test-local-scan@y>
181 rcpt to:<userx@test.ex>
183 local-scan: reject_nologhdr not wanted -bS
189 mail from:<test-local-scan@y>
190 rcpt to:<userx@test.ex>
192 local-scan: tempreject_nologhdr
198 mail from:<test-local-scan@y>
199 rcpt to:<userx@test.ex>
201 local-scan: accept_expand sender=$sender_address
204 mail from:<test-local-scan@y>
205 rcpt to:<userx@test.ex>
207 local-scan: accept_expand sender=$rhubarb
215 mail from:<test-local-scan@y>
216 rcpt to:<userx@test.ex>
218 local-scan: accept_freeze
221 mail from:<test-local-scan@y>
222 rcpt to:<userx@test.ex>
224 local-scan: accept_queue
231 exim -d-all+local_scan -bh 1.2.3.4
232 mail from:<test-local-scan@y>
233 rcpt to:<userx@test.ex>
235 local-scan: accept_freeze
240 exim -d-all+local_scan -bh 1.2.3.4
241 mail from:<test-local-scan@y>
242 rcpt to:<userx@test.ex>
244 local-scan: accept_test_lists
250 exim -d-all+local_scan -odi -bs
251 mail from:<test-local-scan@y>
252 rcpt to:<userx@test.ex>
261 mail from:<test-local-scan@y>
262 rcpt to:<userx@test.ex>
264 local-scan: sendto unqualified
265 Testing, testing, was originally to userx.
266 Sent to unqualified address
275 mail from:<test-local-scan@y>
276 rcpt to:<userx@test.ex>
278 local-scan: header_remove 2 remove-me
279 remove-me: this is the first one
280 remove-me : this is the second one
281 remove-me : this is the third one
288 mail from:<test-local-scan@y>
289 rcpt to:<userx@test.ex>
291 local-scan: header_remove 0 remove-me
292 remove-me: this is the first one
293 remove-me : this is the second one
294 remove-me : this is the third one
301 mail from:<test-local-scan@y>
302 rcpt to:<userx@test.ex>
304 local-scan: header_add_at_position TT received X-new: added
311 mail from:<test-local-scan@y>
312 rcpt to:<userx@test.ex>
314 local-scan: header_add_at_position FT received X-new: added
321 mail from:<test-local-scan@y>
322 rcpt to:<userx@test.ex>
324 local-scan: header_add_at_position FT From X-new: added
331 mail from:<test-local-scan@y>
332 rcpt to:<userx@test.ex>
334 local-scan: header_add_at_position FT Non-exist X-new: added
341 mail from:<test-local-scan@y>
342 rcpt to:<userx@test.ex>
344 local-scan: remove userx@test.ex
351 mail from:<test-local-scan@y>
352 rcpt to:<userx@test.ex>
354 local-scan: remove abcd@test.ex