1 # fast-ramp continued-delivery queue run
2 # Exim test configuration 0999
4 # This feature has testability problems, because it results in
5 # parallel processing of the queue by two concurrent processes
6 # - the daemon, having been notified by the manual "-qq" process
7 # once a sufficient list for the destination has been built, and
8 # the aforementioned "-qq" process once it completes the first phase.
9 # We don't really want to add yet another testsuite-only option to
10 # force the latter to not be done.
11 # So the best we can do is check that at least some deliveries were
14 exim -DSERVER=server -bd -q30m -odd -oX PORT_D
19 mail from:ralph@dustyshoes.tld
20 rcpt to:bob@anotherone.tld
22 This is a test message.
24 This is the last line.
27 mail from:ralph@dustyshoes.tld
28 rcpt to:bob@anotherone.tld
32 This is message number 1.
35 mail from:ralph@dustyshoes.tld
36 rcpt to:bob@anotherone.tld
40 This is message number 2.
43 mail from:ralph@dustyshoes.tld
44 rcpt to:bob@anotherone.tld
48 This is message number 3.
51 mail from:ralph@dustyshoes.tld
52 rcpt to:bob@anotherone.tld
56 This is message number 4.
59 mail from:ralph@dustyshoes.tld
60 rcpt to:bob@anotherone.tld
64 This is message number 5.
67 mail from:ralph@dustyshoes.tld
68 rcpt to:bob@anotherone.tld
72 This is message number 6.
75 mail from:ralph@dustyshoes.tld
76 rcpt to:bob@anotherone.tld
80 This is message number 7.
83 mail from:ralph@dustyshoes.tld
84 rcpt to:bob@anotherone.tld
88 This is message number 8.
91 mail from:ralph@dustyshoes.tld
92 rcpt to:bob@anotherone.tld
96 This is message number 9.
99 mail from:ralph@dustyshoes.tld
100 rcpt to:bob@anotherone.tld
102 Subject: message_id 10
104 This is message number 10.
107 mail from:ralph@dustyshoes.tld
108 rcpt to:bob@anotherone.tld
110 Subject: message_id 11
112 This is message number 11.
115 mail from:ralph@dustyshoes.tld
116 rcpt to:bob@anotherone.tld
118 Subject: message_id 12
120 This is message number 12.
123 mail from:ralph@dustyshoes.tld
124 rcpt to:bob@anotherone.tld
126 Subject: message_id 13
128 This is message number 13.
131 mail from:ralph@dustyshoes.tld
132 rcpt to:bob@anotherone.tld
134 Subject: message_id 14
136 This is message number 14.
139 mail from:ralph@dustyshoes.tld
140 rcpt to:bob@anotherone.tld
142 Subject: message_id 15
144 This is message number 15.
147 mail from:ralph@dustyshoes.tld
148 rcpt to:bob@anotherone.tld
150 Subject: message_id 16
152 This is message number 16.
155 mail from:ralph@dustyshoes.tld
156 rcpt to:bob@anotherone.tld
158 Subject: message_id 17
160 This is message number 17.
163 mail from:ralph@dustyshoes.tld
164 rcpt to:bob@anotherone.tld
166 Subject: message_id 18
168 This is message number 18.
171 mail from:ralph@dustyshoes.tld
172 rcpt to:bob@anotherone.tld
174 Subject: message_id 19
176 This is message number 19.
179 mail from:ralph@dustyshoes.tld
180 rcpt to:bob@anotherone.tld
182 Subject: message_id 20
184 This is message number 20.
187 mail from:ralph@dustyshoes.tld
188 rcpt to:bob@anotherone.tld
190 Subject: message_id 21
192 This is message number 21.
195 mail from:ralph@dustyshoes.tld
196 rcpt to:bob@anotherone.tld
198 Subject: message_id 22
200 This is message number 22.
203 mail from:ralph@dustyshoes.tld
204 rcpt to:bob@anotherone.tld
206 Subject: message_id 23
208 This is message number 23.
211 mail from:ralph@dustyshoes.tld
212 rcpt to:bob@anotherone.tld
214 Subject: message_id 24
216 This is message number 24.
219 mail from:ralph@dustyshoes.tld
220 rcpt to:bob@anotherone.tld
222 Subject: message_id 25
224 This is message number 25.
227 mail from:ralph@dustyshoes.tld
228 rcpt to:bob@anotherone.tld
230 Subject: message_id 26
232 This is message number 26.
235 mail from:ralph@dustyshoes.tld
236 rcpt to:bob@anotherone.tld
238 Subject: message_id 27
240 This is message number 27.
243 mail from:ralph@dustyshoes.tld
244 rcpt to:bob@anotherone.tld
246 Subject: message_id 28
248 This is message number 28.
251 mail from:ralph@dustyshoes.tld
252 rcpt to:bob@anotherone.tld
254 Subject: message_id 29
256 This is message number 29.
259 mail from:ralph@dustyshoes.tld
260 rcpt to:bob@anotherone.tld
262 Subject: message_id 30
264 This is message number 30.
267 mail from:ralph@dustyshoes.tld
268 rcpt to:bob@anotherone.tld
270 Subject: message_id 31
272 This is message number 31.
275 mail from:ralph@dustyshoes.tld
276 rcpt to:bob@anotherone.tld
278 Subject: message_id 32
280 This is message number 32.
283 mail from:ralph@dustyshoes.tld
284 rcpt to:bob@anotherone.tld
286 Subject: message_id 33
288 This is message number 33.
291 mail from:ralph@dustyshoes.tld
292 rcpt to:bob@anotherone.tld
294 Subject: message_id 34
296 This is message number 34.
299 mail from:ralph@dustyshoes.tld
300 rcpt to:bob@anotherone.tld
302 Subject: message_id 35
304 This is message number 35.
307 mail from:ralph@dustyshoes.tld
308 rcpt to:bob@anotherone.tld
310 Subject: message_id 36
312 This is message number 36.
315 mail from:ralph@dustyshoes.tld
316 rcpt to:bob@anotherone.tld
318 Subject: message_id 37
320 This is message number 37.
323 mail from:ralph@dustyshoes.tld
324 rcpt to:bob@anotherone.tld
326 Subject: message_id 38
328 This is message number 38.
331 mail from:ralph@dustyshoes.tld
332 rcpt to:bob@anotherone.tld
334 Subject: message_id 39
336 This is message number 39.
339 mail from:ralph@dustyshoes.tld
340 rcpt to:bob@anotherone.tld
342 Subject: message_id 40
344 This is message number 40.
347 mail from:ralph@dustyshoes.tld
348 rcpt to:bob@anotherone.tld
350 Subject: message_id 41
352 This is message number 41.
355 mail from:ralph@dustyshoes.tld
356 rcpt to:bob@anotherone.tld
358 Subject: message_id 42
360 This is message number 42.
363 mail from:ralph@dustyshoes.tld
364 rcpt to:bob@anotherone.tld
366 Subject: message_id 43
368 This is message number 43.
371 mail from:ralph@dustyshoes.tld
372 rcpt to:bob@anotherone.tld
374 Subject: message_id 44
376 This is message number 44.
379 mail from:ralph@dustyshoes.tld
380 rcpt to:bob@anotherone.tld
382 Subject: message_id 45
384 This is message number 45.
387 mail from:ralph@dustyshoes.tld
388 rcpt to:bob@anotherone.tld
390 Subject: message_id 46
392 This is message number 46.
395 mail from:ralph@dustyshoes.tld
396 rcpt to:bob@anotherone.tld
398 Subject: message_id 47
400 This is message number 47.
403 mail from:ralph@dustyshoes.tld
404 rcpt to:bob@anotherone.tld
406 Subject: message_id 48
408 This is message number 48.
411 mail from:ralph@dustyshoes.tld
412 rcpt to:bob@anotherone.tld
414 Subject: message_id 49
416 This is message number 49.
419 mail from:ralph@dustyshoes.tld
420 rcpt to:bob@anotherone.tld
422 Subject: message_id 50
424 This is message number 50.
427 mail from:ralph@dustyshoes.tld
428 rcpt to:bob@anotherone.tld
430 Subject: message_id 51
432 This is message number 51.
435 mail from:ralph@dustyshoes.tld
436 rcpt to:bob@anotherone.tld
438 Subject: message_id 52
440 This is message number 52.
443 mail from:ralph@dustyshoes.tld
444 rcpt to:bob@anotherone.tld
446 Subject: message_id 53
448 This is message number 53.
451 mail from:ralph@dustyshoes.tld
452 rcpt to:bob@anotherone.tld
454 Subject: message_id 54
456 This is message number 54.
459 mail from:ralph@dustyshoes.tld
460 rcpt to:bob@anotherone.tld
462 Subject: message_id 55
464 This is message number 55.
467 mail from:ralph@dustyshoes.tld
468 rcpt to:bob@anotherone.tld
470 Subject: message_id 56
472 This is message number 56.
475 mail from:ralph@dustyshoes.tld
476 rcpt to:bob@anotherone.tld
478 Subject: message_id 57
480 This is message number 57.
483 mail from:ralph@dustyshoes.tld
484 rcpt to:bob@anotherone.tld
486 Subject: message_id 58
488 This is message number 58.
491 mail from:ralph@dustyshoes.tld
492 rcpt to:bob@anotherone.tld
494 Subject: message_id 59
496 This is message number 59.
499 mail from:ralph@dustyshoes.tld
500 rcpt to:bob@anotherone.tld
502 Subject: message_id 60
504 This is message number 60.
507 mail from:ralph@dustyshoes.tld
508 rcpt to:bob@anotherone.tld
510 Subject: message_id 61
512 This is message number 61.
515 mail from:ralph@dustyshoes.tld
516 rcpt to:bob@anotherone.tld
518 Subject: message_id 62
520 This is message number 62.
523 mail from:ralph@dustyshoes.tld
524 rcpt to:bob@anotherone.tld
526 Subject: message_id 63
528 This is message number 63.
531 mail from:ralph@dustyshoes.tld
532 rcpt to:bob@anotherone.tld
534 Subject: message_id 64
536 This is message number 64.
539 mail from:ralph@dustyshoes.tld
540 rcpt to:bob@anotherone.tld
542 Subject: message_id 65
544 This is message number 65.
547 mail from:ralph@dustyshoes.tld
548 rcpt to:bob@anotherone.tld
550 Subject: message_id 66
552 This is message number 66.
555 mail from:ralph@dustyshoes.tld
556 rcpt to:bob@anotherone.tld
558 Subject: message_id 67
560 This is message number 67.
563 mail from:ralph@dustyshoes.tld
564 rcpt to:bob@anotherone.tld
566 Subject: message_id 68
568 This is message number 68.
571 mail from:ralph@dustyshoes.tld
572 rcpt to:bob@anotherone.tld
574 Subject: message_id 69
576 This is message number 69.
579 mail from:ralph@dustyshoes.tld
580 rcpt to:bob@anotherone.tld
582 Subject: message_id 70
584 This is message number 70.
587 mail from:ralph@dustyshoes.tld
588 rcpt to:bob@anotherone.tld
590 Subject: message_id 71
592 This is message number 71.
595 mail from:ralph@dustyshoes.tld
596 rcpt to:bob@anotherone.tld
598 Subject: message_id 72
600 This is message number 72.
603 mail from:ralph@dustyshoes.tld
604 rcpt to:bob@anotherone.tld
606 Subject: message_id 73
608 This is message number 73.
611 mail from:ralph@dustyshoes.tld
612 rcpt to:bob@anotherone.tld
614 Subject: message_id 74
616 This is message number 74.
619 mail from:ralph@dustyshoes.tld
620 rcpt to:bob@anotherone.tld
622 Subject: message_id 75
624 This is message number 75.
627 mail from:ralph@dustyshoes.tld
628 rcpt to:bob@anotherone.tld
630 Subject: message_id 76
632 This is message number 76.
635 mail from:ralph@dustyshoes.tld
636 rcpt to:bob@anotherone.tld
638 Subject: message_id 77
640 This is message number 77.
643 mail from:ralph@dustyshoes.tld
644 rcpt to:bob@anotherone.tld
646 Subject: message_id 78
648 This is message number 78.
651 mail from:ralph@dustyshoes.tld
652 rcpt to:bob@anotherone.tld
654 Subject: message_id 79
656 This is message number 79.
659 mail from:ralph@dustyshoes.tld
660 rcpt to:bob@anotherone.tld
662 Subject: message_id 80
664 This is message number 80.
677 # Only check that we logged the right number of messages; don't care
678 # about ordering or mistakes in wrong message-id
680 system "egrep -v '(Completed|<=|=>|is locked)' DIR/spool/log/mainlog 1>&2";
681 system "awk '/OK id=/{i++} END{print i, \"messages in\"}' DIR/test-stdout 1>&2";
682 system "grep 'notify' DIR/spool/log/servermainlog 1>&2";
683 system "grep -q '=> bob' DIR/spool/log/servermainlog && echo 'daemon did make at least one delivery' 1>&2";
684 system "awk '/<=/{i++} END{print i, \"messages received by dest\"}' DIR/spool/log/servermainlog 1>&2";
685 system "ls DIR/spool/input 1>&2";
687 sudo rm -f DIR/spool/log/mainlog DIR/spool/log/servermainlog