Added log selector +smtp_no_mail to log when no MAIL is issued (for
[exim.git] / test / scripts / 9400-local_scan / 9400
CommitLineData
59371ea7
PH
1# local_scan() miscellaneous tests
2exim -odi -bs
3mail from:<x@y>
4rcpt to:<userx@test.ex>
5data
6Testing, testing
7.
8quit
9****
10exim -odi -bs
11mail from:<test-local-scan@y>
12rcpt to:<userx@test.ex>
13data
14Testing, testing
15.
16quit
17****
18exim -odi -bs
19mail from:<test-local-scan@y>
20rcpt to:<userx@test.ex>
21data
22local-scan: reject
23Testing, testing
24.
25quit
26****
27exim -odi -bs
28mail from:<test-local-scan@y>
29rcpt to:<userx@test.ex>
30data
31local-scan: reject this message isn't wanted
32Testing, testing
33.
34quit
35****
36exim -odi -bs
37mail from:<test-local-scan@y>
38rcpt to:<userx@test.ex>
39data
40local-scan: reject this message isn't wanted
41 and we tell it on two lines
42Testing, testing
43.
44quit
45****
46exim -odi -bs
47mail from:<test-local-scan@y>
48rcpt to:<userx@test.ex>
49data
50local-scan: tempreject
51Testing, testing
52.
53quit
54****
55exim -odi -bs
56mail from:<test-local-scan@y>
57rcpt to:<userx@test.ex>
58data
59local-scan: tempreject this message isn't wanted just now
60Testing, testing
61.
62quit
63****
64exim -odi -bs
65mail from:<test-local-scan@y>
66rcpt to:<userx@test.ex>
67data
68local-scan: sendto
69Testing, testing
70.
71quit
72****
73exim -odi -bs
74mail from:<test-local-scan@y>
75rcpt to:<userx@test.ex>
76data
77local-scan: sendto usery@test.ex
78Testing, testing, was originally to userx.
79.
80quit
81****
82exim -odi -bs
83mail from:<test-local-scan@y>
84rcpt to:<userx@test.ex>
85data
86local-scan: sendto *this is a blackhole message*
87Testing, testing, was originally to userx.
88.
89quit
90****
911
92exim -odi -f test-local-scan@y userx@test.ex
93local-scan: reject this message isn't wanted
94Testing, testing, local message (1)
95.
96****
97exim -odi -oee -f test-local-scan@y userx@test.ex
98local-scan: reject this message isn't wanted
99Testing, testing, local message (2)
100.
101****
1021
103exim -odi -oep -f test-local-scan@y userx@test.ex
104local-scan: reject this message isn't wanted
105Testing, testing, local message (3)
106.
107****
108exim -odi -bs
109mail from:<test-local-scan@y>
110rcpt to:<userx@test.ex>
111data
112local-scan: accept A=orses b=mutton
113Testing, testing
114.
115quit
116****
1171
118exim -odi -bs
119mail from:<test-local-scan@y>
120rcpt to:<userx@test.ex>
121data
122local-scan:timeout
123test test
124.
125quit
126****
1271
128exim -odi -oep -f test-local-scan@y userx@test.ex
129local-scan: timeout
130test test
131.
132****
133exim -odi -bs
134mail from:<test-local-scan@y>
135rcpt to:<userx@test.ex>
136data
137local-scan: sendto bounce@test.ex exbounce@test.ex
138Testing, testing, was originally to userx.
139Sent to bounce@test.ex; bounce should go to exbounce.
140.
141quit
142****
1432
144exim -odi -bS
145mail from:<test-local-scan@y>
146rcpt to:<userx@test.ex>
147data
148local-scan: reject not wanted -bS
149Testing, testing
150.
151quit
152****
153exim -odi -bs
154mail from:<test-local-scan@y>
155rcpt to:<userx@test.ex>
156data
157local-scan: accept A=orses b=mutton
158 c=forthighlanders
159 some newlines in here
160Testing, testing
161.
162quit
163****
164exim -odi -N -d-all+receive -bs
165mail from:<test-local-scan@y>
166rcpt to:<userx@test.ex>
167data
168.
169quit
170****
171exim -odi -N -d-all+local_scan -bs
172mail from:<test-local-scan@y>
173rcpt to:<userx@test.ex>
174data
175.
176quit
177****
1782
179exim -odi -bS
180mail from:<test-local-scan@y>
181rcpt to:<userx@test.ex>
182data
183local-scan: reject_nologhdr not wanted -bS
184Testing, testing
185.
186quit
187****
188exim -odi -bs
189mail from:<test-local-scan@y>
190rcpt to:<userx@test.ex>
191data
192local-scan: tempreject_nologhdr
193Testing, testing
194.
195quit
196****
197exim -odi -bs
198mail from:<test-local-scan@y>
199rcpt to:<userx@test.ex>
200data
201local-scan: accept_expand sender=$sender_address
202Testing, testing
203.
204mail from:<test-local-scan@y>
205rcpt to:<userx@test.ex>
206data
207local-scan: accept_expand sender=$rhubarb
208Testing, testing
209.
210quit
211****
212exim -bP local_scan
213****
214exim -odi -bs
215mail from:<test-local-scan@y>
216rcpt to:<userx@test.ex>
217data
218local-scan: accept_freeze
219Testing, testing
220.
221mail from:<test-local-scan@y>
222rcpt to:<userx@test.ex>
223data
224local-scan: accept_queue
225Testing, testing
226.
227quit
228****
229exim -bp
230****
231exim -d-all+local_scan -bh 1.2.3.4
232mail from:<test-local-scan@y>
233rcpt to:<userx@test.ex>
234data
235local-scan: accept_freeze
236Testing, testing
237.
238quit
239****
240exim -d-all+local_scan -bh 1.2.3.4
241mail from:<test-local-scan@y>
242rcpt to:<userx@test.ex>
243data
244local-scan: accept_test_lists
245Testing, testing
246.
247quit
248****
2491
250exim -d-all+local_scan -odi -bs
251mail from:<test-local-scan@y>
252rcpt to:<userx@test.ex>
253data
254local-scan: crash
255Testing, testing
256.
257quit
258****
259ls DIR/spool/input
260exim -odq -bs
261mail from:<test-local-scan@y>
262rcpt to:<userx@test.ex>
263data
264local-scan: sendto unqualified
265Testing, testing, was originally to userx.
266Sent to unqualified address
267.
268quit
269****
270exim -bp
271****
272exim -M $msg3
273****
274exim -odi -bs
275mail from:<test-local-scan@y>
276rcpt to:<userx@test.ex>
277data
278local-scan: header_remove 2 remove-me
279remove-me: this is the first one
280remove-me : this is the second one
281remove-me : this is the third one
282
283Testing, testing
284.
285quit
286****
287exim -odi -bs
288mail from:<test-local-scan@y>
289rcpt to:<userx@test.ex>
290data
291local-scan: header_remove 0 remove-me
292remove-me: this is the first one
293remove-me : this is the second one
294remove-me : this is the third one
295
296Testing, testing
297.
298quit
299****
300exim -odi -bs
301mail from:<test-local-scan@y>
302rcpt to:<userx@test.ex>
303data
304local-scan: header_add_at_position TT received X-new: added
305
306Testing, testing
307.
308quit
309****
310exim -odi -bs
311mail from:<test-local-scan@y>
312rcpt to:<userx@test.ex>
313data
314local-scan: header_add_at_position FT received X-new: added
315
316Testing, testing
317.
318quit
319****
320exim -odi -bs
321mail from:<test-local-scan@y>
322rcpt to:<userx@test.ex>
323data
324local-scan: header_add_at_position FT From X-new: added
325
326Testing, testing
327.
328quit
329****
330exim -odi -bs
331mail from:<test-local-scan@y>
332rcpt to:<userx@test.ex>
333data
334local-scan: header_add_at_position FT Non-exist X-new: added
335
336Testing, testing
337.
338quit
339****
340exim -odi -bs
341mail from:<test-local-scan@y>
342rcpt to:<userx@test.ex>
343data
344local-scan: remove userx@test.ex
345
346Testing, testing
347.
348quit
349****
350exim -odi -bs
351mail from:<test-local-scan@y>
352rcpt to:<userx@test.ex>
353data
354local-scan: remove abcd@test.ex
355
356Testing, testing
357.
358quit
359****
360no_msglog_check