Fix buffer overrun in spam= acl condition. Bug 1552
[exim.git] / test / stdout / 0002
1 >
2 > # These expansions can test variables in the configuration, but as there
3 > # is no message being processed, there is no message-related data. But
4 > # that of course gets tested in plenty of other places.
5 >
6 > # Some fixed variables
7 >
8 > exim_path: TESTSUITE/eximdir/exim
9 > primary_hostname: myhost.test.ex
10 > primary_hostname: myhost.test.ex
11 > qualify_domain: myhost.test.ex
12 > bounce_return_size_limit: 102400
13 > spool_directory: TESTSUITE/spool
14 > Failed: unknown variable in "${unknown}"
15 > h_subject: (should be empty)
16 > h_subject: (should be empty)
17 > Failed: unknown expansion operator "header_subject"
18 >
19 > # $message_headers should be empty
20 > message_headers: ><
21 >
22 > # Continuation
23 > xy
24 > xy
25 >
26 > # Overlong names and overbig numbers
27 >
28 > Failed: unknown variable name "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
29 > Failed: unknown variable in "${aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa}"
30 > +
31 > +
32 >
33 > # List operations
34 >
35 > filter: "a:b:c"
36 > filter: a:c
37 > filter: a'c
38 > filter: ''a' ''c
39 > filter: ""
40 >
41 > map: ""
42 > map: a:b:c
43 > map: ::a::: ::b::: ::c::
44 > map: fail string
45 > map: []:[b]:[c]
46 >
47 > reduce: "+"
48 > reduce: +abc
49 > reduce: 6
50 > reduce: 9
51 >
52 > listnamed: *.aa.bb : ^\Nxxx(.*)
53 > listnamed: *.aa.bb : ^\Nxxx(.*)
54 > listnamed: V4NET.11.12.13 : iplsearch;TESTSUITE/aux-fixed/0002.iplsearch
55 > listnamed: *.aa.bb : ^\Nxxx(.*) : ;;
56 > listnamed: a : b;c : *.aa.bb : ^\Nxxx(.*) : ;; : 2001::630::212::8::204::::b664
57 > Failed: "nolist" is not a named list
58 > listnamed: *.aa.bb : ^\Nxxx(.*)
59 > Failed: "hlist" is not a domain named list
60 > Failed: bad suffix on "list" operator
61 >
62 > listcount: 3
63 > listcount: 0
64 > listcount: 3
65 > listcount: 2
66 >
67 > listextract: b
68 > listextract: XcX
69 > listextract:
70 > listextract:
71 > listextract: fail
72 > Failed: "extract" failed and "fail" requested
73 >
74 > sort: 1:2:3:4
75 > sort: 4,3,2,1
76 > sort: a:aa:B:c
77 > sort: 10 smtp.ex.com:100 r2.ex.com:666 r99.ex.com
78 > sort: 10,smtp.ex.com:100,r2.ex.com:666,r99.ex.com
79 > sort: ""
80 >
81 > # Tests with iscntrl() and illegal separators
82 >
83 > map: 'a'
84 ''
85 'b'
86 'c'
87 >
88 > Failed: error in expression evaluation: expecting number or opening parenthesis (after processing "0+") inside "reduce" item
89 > reduce: 6
90 > reduce: 6
91 > reduce: 6
92 >
93 > # Operators
94 >
95 > Failed: missing or misplaced { or }
96 > Failed: missing or misplaced { or }
97 > Failed: error from acl "a_nosuch"
98 > acl: (0) [] []
99 > acl: (1) [person@dom.ain] []
100 > acl: (2) [firstarg] [secondarg]
101 > acl: (1) [arg with spaces] []
102 > acl:
103 > acl:
104 > acl: (0) [] []
105 > acl: (1) [person@dom.ain] []
106 > Failed: error from acl "a_defer"
107 > acl: (2) [new arg1] [top_arg_1]
108 > acl: (1) [1] [] (1) [2] [] (1) [3] [] (1) [4] []
109 >
110 > addrss: local-part@dom.ain
111 > addrss: local-part@dom.ain
112 > domain: dom.ain
113 > domain: dom.ain
114 >
115 > addresses: ''abc@xyz' ''pqr@xyz
116 > addresses: local-part@dom.ain
117 > addresses: local-part@dom.ain+xyz@abc
118 > addresses: local-part@dom.ain:xyz@abc:p@q:r@s
119 > addresses:
120 >
121 > escape: B7\267F2\362
122 > eval: 2
123 > eval: 7
124 > eval: 9
125 > eval: 4
126 > eval: 6
127 > eval: 42
128 > Failed: error in expression evaluation: expecting number or opening parenthesis (after processing "")
129 > eval: -2
130 > eval: 1
131 > eval: 1
132 > Failed: error in expression evaluation: expecting closing parenthesis (after processing "-2 - (-3")
133 > Failed: error in expression evaluation: expecting operator (after processing "-2 - -3")
134 > eval: 1
135 > eval: -5
136 > eval: 1
137 > eval: 40962
138 > eval: 63
139 > Failed: error in expression evaluation: expecting operator (after processing "0")
140 > eval10: 77
141 > eval10: 8
142 > Failed: error in expression evaluation: expecting operator (after processing "0")
143 > eval: 4
144 > eval: 4
145 > eval: 4
146 > eval: 13
147 > eval: 9
148 > eval: 6
149 > eval: 3
150 > eval: 0
151 > eval: 24
152 > eval: 4608
153 > eval: 4608
154 > eval: -4608
155 >
156 > expand: $primary_hostname myhost.test.ex
157 > hash: jmg monty fbWx
158 > hash: abcX abX aX X
159 > hex2b64:EjRWeA==
160 > hex2b64:q83v
161 > hex2b64:q83v
162 > hex2b64:Gis8TV5v
163 > Failed: "1a2b3c4d5e6" contains an odd number of characters
164 > Failed: "1a2b3c4d5e6g" is not a hex string
165 > hex2b64:MPPJPkZDbetYunCBao7BJA==
166 > hex2b64:ztcfpyNSMb7Tg/rP3EHE3cwi7PE=
167 >
168 > The base62 operator is actually a base36 operator in the Darwin and Cygwin
169 > environments. Write cunning tests that produce the same output in both cases,
170 > while doing a reasonable check.
171 >
172 > base62: OK
173 > base62d: OK
174 > base62d: OK
175 > Failed: argument for base62 operator is "12345x", which is not a decimal number
176 > Failed: argument for base62d operator is "0003D7.", which is not a base 36/62 number
177 >
178 > hmac: dd97e3ba5d1a61b5006108f8c8252953
179 > hmac: 0210cf9d274b53f1550f657c378b29e8bfed1064
180 > md5: 77add1d5f41223d5582fca736a5cb335
181 > sha1: DA39A3EE5E6B4B0D3255BFEF95601890AFD80709
182 > sha1: A9993E364706816ABA3E25717850C26C9CD0D89D
183 > mask: 192.168.10.192/28
184 > mask: 192.168.10.206/32
185 > Failed: mask value too big in "192.168.10.206/33"
186 > mask: 0.0.0.0/0
187 > Failed: missing mask value in "192.168.10.206"
188 > Failed: "a.b.c.d" is not an IP address
189 > nhash: 19 0/61
190 > lc/uc: the quick BROWN FOX
191 > length: The quick abc
192 > lclpt: local-part
193 > lclpt: local-part
194 > quote: aZ09_.-Q "ab*cd" "abcd\"ef"
195 > quote: "nl(\n)"
196 > quote: "cr(\r)"
197 > quote: "tab( )"
198 > quote: "xff(ÿ)"
199 > quote: Empty>""<
200 > quote_local_part: abcd
201 > quote_local_part: O'Reilly
202 > quote_local_part: "a space"
203 > quote_local_part: ".something"
204 > quote_local_part: "something."
205 > quote_local_part: joe.bloggs
206 > quote_local_part: a!b
207 > quote_local_part: "x@y"
208 > quote_local_part: ab*cd
209 > quote_local_part: "x:y"
210 > quote_local_part: "abcd\"ef"
211 > quote_local_part: ""
212 > rxquote:aZ09\_\,\-Q ab\*cd abcd\"ef
213 > hexquote: \x01\x02\x03\x04\x05\x06\x07\x20\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f\x20\x10\x11\x12\x13\x14\x15\x16\x17\x20\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f\x20\x20!"#$%&'\x20()*+,-./\x2001234567\x2089:;<=>?\x20@ABCDEFG\x20HIJKLMNO\x20PQRSTUVW\x20XYZ[\]^_\x20`abcdefg\x20hijklmno\x20pqrstuvw\x20xyz{|}~\x7f
214 > substr: ba 34 1
215 > substr: barb rhuba
216 > substr:
217 > substr:
218 > str2b64:YWJjZA==
219 > str2b64:VGhlIHF1aWNrIGJyb3duIAogZm94
220 > strlen: 0
221 > strlen: 1
222 > strlen: 8
223 > time_eval: 10
224 > time_eval: 7200
225 > time_eval: 86700
226 > time_eval: 788645
227 > Failed: string "14" is not an Exim time interval in "time_eval" operator
228 > Failed: string "rhubarb" is not an Exim time interval in "time_eval" operator
229 > time_interval: 0s
230 > time_interval: 44s
231 > time_interval: 1w4d13h46m39s
232 > Failed: string "-1" is not a positive number in "time_interval" operator
233 > Failed: string "rhubarb" is not a positive number in "time_interval" operator
234 >
235 > # stat is a bit tricky, but some of the fields of the aux-var directory
236 > # should be the same on all systems
237 >
238 > stat: 40755
239 > stat: drwxr-xr-x
240 > Failed: stat(/a/non/existent/file) failed: No such file or directory
241 >
242 > # "Operators" that have expanded arguments
243 >
244 > hash: jmg monty fbWx
245 > hash: abcX abX aX X
246 > nhash: 19 0/61
247 > length: The quick abc
248 > substr: ba 34 1
249 > substr:
250 >
251 > # Error forms
252 >
253 > Failed: missing or misplaced { or }
254 > Failed: "nonnumber" is not a number (in "hash" expansion)
255 > Failed: Too many arguments for "hash" (max is 3)
256 > Failed: "-2" is not a positive number (in "substr" expansion)
257 >
258 > # Skipped operators
259 >
260 > addrss: NO
261 > domain: NO
262 > escape: NO
263 > expand: NO
264 > hash: NO
265 > md5: NO
266 > mask: NO
267 >
268 > # Number suffixes in conditions
269 > 1k: y
270 > 1K: y
271 > 1M: y
272 > 1G: y
273 >
274 > # Numeric overflow
275 > # >32b should work, >64b not
276 >
277 > 1 > 2047M n
278 > 1 > 2048M n
279 > 1 > 4096000000 n
280 > 1 > 4096M n
281 > 1 > 4611686018427387904 n
282 > Failed: absolute value of integer "46116860184273879040" is too large (overflow)
283 >
284 > # Conditions
285 >
286 > 2=2: y
287 > 2==2: y
288 > 3=2: n
289 > 2==3: n
290 > !2=2: n
291 > !2==2: n
292 > !3=2: y
293 > !2==3: y
294 > 2>3: n
295 > 3>3: n
296 > 4>3: y
297 > 1>-1: y
298 > 2>=3: n
299 > 3>=3: y
300 > 4>=3: y
301 > 2<3: y
302 > 3<3: n
303 > 4<3: n
304 > 2<=3: y
305 > 3<=3: y
306 > 4<=3: n
307 > 5<=3: n
308 > -3<=1: y
309 >
310 > 5>3k: n
311 > 5>3m: n
312 > Failed: invalid integer "3z "
313 > Failed: integer expected but "a" found
314 > Failed: integer expected but "${substr_2_2:65535}" found
315 >
316 > >0: n
317 > =: y
318 > -2<: y
319 > 08>07: y
320 > 011=11: y
321 >
322 > def:y y
323 > def:n n
324 > Failed: unknown variable "post" after "def:"
325 > def:h_f n
326 > def:h_f n
327 > Failed: missing or misplaced { or }
328 >
329 > exists: y
330 > exists: n
331 >
332 > eq: y
333 > eq: n
334 > !eq: n
335 > !eq: y
336 >
337 > eqi: y
338 > eqi: y
339 > eqi: n
340 > !eqi: n
341 > !eqi: n
342 > !eqi: y
343 >
344 > lt: y
345 > lti: n
346 > le: y
347 > lei: y
348 > gt: n
349 > gti: n
350 > ge: n
351 > gei: y
352 >
353 > isip: y 1.2.3.4
354 > isip4: y 1.2.3.4
355 > isip6: n 1.2.3.4
356 > isip: n 1:2:3:4
357 > isip4: n 1:2:3:4
358 > isip6: n 1:2:3:4
359 > isip: y ::1
360 > isip4: n ::1
361 > isip6: y ::1
362 > isip: y fe80::a00:20ff:fe86:a061
363 > isip4: n fe80::a00:20ff:fe86:a061
364 > isip6: y fe80::a00:20ff:fe86:a061
365 > isip: n rhubarb
366 > isip4: n rhubarb
367 > isip6: n rhubarb
368 >
369 > match: cdab
370 > match: cdab
371 > match: cdab
372 > Failed: "if" failed and "fail" requested
373 > match: cd[xyz]ab
374 >
375 > match_domain: yes
376 > match_domain: no
377 > match_domain: yes
378 > match_domain: yes
379 > match_domain: no
380 >
381 > >x@zz.aa.bb< [] >x@zz.aa.bb<
382 >
383 > >x@xxxabc< [] >x@xxxabc<
384 >
385 > match_address: yes
386 > match_address: yes
387 >
388 > match_local_part:yes
389 > match_local_part:yes
390 >
391 > match_ip: 01 true
392 > match_ip: 02
393 > match_ip: 03 true
394 > match_ip: 04 true
395 > match_ip: 05
396 > match_ip: 06
397 > match_ip: 07 true
398 > match_ip: 08 true
399 > match_ip: 09
400 > match_ip: 10 true
401 > Failed: "somename" is not an IP address
402 > match_ip: 12 true
403 > match_ip: 13 true
404 > match_ip: 14 true
405 > match_ip: 15 true
406 >
407 > queue_running: n
408 > first_delivery: n
409 >
410 > queue_running after or: y
411 > first_delivery after or: y
412 >
413 > # acl expansion condition
414 > acl if: Y:(0) [] []
415 > acl if: Y:(1) [argY] []
416 > acl if: N:(2) [argN] [arg2]
417 > Failed: error from acl "a_defer"
418 >
419 > # Default values for both if strings
420 >
421 > ${if eq{1}{1}} >true<
422 > ${if eq{1}{2}} ><
423 >
424 > # Lookups: DIR is the testing directory. In this test we can only use the
425 > # lookups that are required in all cases.
426 >
427 > CALLER
428 >
429 > ==X@Y
430 > ==*
431 > ==*@Z
432 > ==*
433 >
434 > data for a.b.c.d
435 > failed x.y.z
436 > data for *.p.q
437 > data for *.p.q
438 > data for *.p.q
439 > Failed: "lookup" failed and "fail" requested
440 > data for *
441 >
442 > q1: "abc"
443 > q2: "xyz":
444 > q3: "pqr" :
445 > q4: "a:b" abc continued data (make sure not key)
446 > q5: "\"quoted\""
447 > q6: "white space"
448 > q7: "b\\s"
449 >
450 > abc: abc
451 > a.b.c: *.b.c
452 > ab.c: *b.c
453 > xyz: ^X
454 > Xyz: ^X
455 > Zyz: ^Z
456 > a b: "^a +b"
457 > a b: "^a +b"
458 > a:b: lookup succeeded
459 > a.b: ^a\\.+b
460 > a..b: ^a\\.+b
461 > a9b: \N^a\d+b
462 > a99b: \N^a\d+b
463 >
464 > # Should give the same results as above because expansion does nothing
465 >
466 > abc: abc
467 > a.b.c: *.b.c
468 > ab.c: *b.c
469 > xyz: ^X
470 > Xyz: ^X
471 > Zyz: ^Z
472 > a b: "^a +b"
473 > a b: "^a +b"
474 > a:b: lookup succeeded
475 >
476 > # Should fail because of no expansion
477 >
478 > a.b: NO
479 > a..b: NO
480 > a9b: NO
481 > a99b: NO
482 >
483 > # But these should succeed
484 >
485 > a\:b: ^a\\.+b
486 > a\:Xb: ^a\\.+b
487 >
488 > # Some tests of case-(in)dependence
489 >
490 > MiXeD-CD: Data found for case-dependent MiXeD-CD
491 > MixeD-CD: NOT FOUND
492 > MiXeD-Ncd: Data found for case-independent MiXeD-nCD
493 > MixeD-Ncd: Data found for case-independent MiXeD-nCD
494 >
495 > # IP address (CIDR) lookups
496 >
497 > 1.2.3.4: data for 1.2.3.4
498 > 1.2.3.5:
499 > 1.2.3.5: data for *
500 > abcd::cdab: data for abcd::cdab
501 > 192.168.1.2: data for 192.168.0.0/16
502 > 192.168.5.6: data for 192.168.0.0/16
503 > abcd:abcd:: data for abcd:abcd::/32
504 > abcd:abcd:1:: data for abcd:abcd::/32
505 > abcd:abcd::3 data for abcd:abcd::/32
506 > Failed: lookup of "rhubarb" gave DEFER: "rhubarb" is not a valid iplsearch key (an IP address, with optional CIDR mask, is wanted): in a host list, use net-iplsearch as the search type
507 >
508 >
509 > # Nested Lookups - style 1
510 >
511 > The data for key1->key2
512 > Failed: "lookup" failed and "fail" requested
513 >
514 > # Nested Lookups - style 2
515 >
516 > The data for key1->key2
517 > failed for key4
518 >
519 > # Other nesting tests
520 >
521 > 1-in-1
522 > 2-in-2
523 > both-in-1,both-in-2
524 > Failed: "lookup" failed and "fail" requested
525 >
526 > # Lookup quotes for standardly expected lookups
527 >
528 > lsearch !@#$%^&*()_-+=|\~`1234567890{[}]qwertyuiop:;"'asdfghjkl<,>.?/zxcvbnm
529 > Failed: unknown lookup type "xxx"
530 >
531 > # Extract
532 >
533 > 2
534 > 2
535 > 2
536 > 2
537 > Empty:<>
538 > Empty:<>
539 > <3>
540 > <3>
541 > Empty:<>
542 > Empty:<>
543 > no Z
544 > no 4
545 > Failed: "extract" failed and "fail" requested
546 > Failed: "extract" failed and "fail" requested
547 > D
548 > a:b:c:d:e
549 > a
550 > e
551 > a
552 > FAIL
553 > b
554 >
555 > b
556 > three four
557 > Failed: first argument of "extract" must not be empty
558 > Failed: first argument of "extract" must not be empty
559 > b
560 >
561 > # Translation
562 >
563 > abcdea aaa xyz zbcdez
564 > abcdea a z zbcdez
565 > abcdea a abcdea
566 > abcdea abc z zzzdez
567 >
568 > # Boolean
569 > "TrUe" true EXPECT: true
570 > "FALSE" false EXPECT: false
571 > " yes" true EXPECT: true
572 > " no" false EXPECT: false
573 > "yes " true EXPECT: true
574 > "-1" true EXPECT: true
575 > "0" false EXPECT: false
576 > "1" true EXPECT: true
577 > " 0 " false EXPECT: false
578 > " 1 " true EXPECT: true
579 > "1111111111111111111" true EXPECT: true
580 > "9" true EXPECT: true
581 > " " false EXPECT: false
582 > Failed: unrecognised boolean value "text"
583 > Failed: unrecognised boolean value "text"
584 > Failed: unrecognised boolean value "-text"
585 > Failed: unrecognised boolean value "text"
586 > Failed: unrecognised boolean value "text"
587 > "00" false EXPECT: false
588 > "!true" false EXPECT: false
589 > "!false" true EXPECT: true
590 >
591 > "TrUe" true EXPECT: true
592 > "FALSE" false EXPECT: false
593 > " yes" true EXPECT: true
594 > " no" false EXPECT: false
595 > "yes " true EXPECT: true
596 > "-1" true EXPECT: true
597 > "0" false EXPECT: false
598 > "1" true EXPECT: true
599 > " 0 " false EXPECT: false
600 > " 1 " true EXPECT: true
601 > "1111111111111111111" true EXPECT: true
602 > "9" true EXPECT: true
603 > " " false EXPECT: false
604 > "text" true EXPECT: true
605 > " text" true EXPECT: true
606 > "text " true EXPECT: true
607 > " text " true EXPECT: true
608 > "00" true EXPECT: true
609 > "!true" false EXPECT: false
610 > "!false" true EXPECT: true
611 >
612 > # RFC 2047
613 >
614 > abcd abcd
615 > <:abcd:> =?iso-8859-8?Q?=3C=3Aabcd=3A=3E?=
616 > <:ab cd:> =?iso-8859-8?Q?=3C=3Aab_cd=3A=3E?=
617 > Long: =?iso-8859-8?Q?_here_we_go=3A_a_string_that_is_going_to_be_encoded=3A_?= =?iso-8859-8?Q?it_will_go_over_the_75-char_limit?=
618 > Long: =?iso-8859-8?Q?_here_we_go=3A_a_string_that_is_going_to_be_encoded=3A_?= =?iso-8859-8?Q?it_will_go_over_the_75-char_limit_by_a_long_way=3B_in?= =?iso-8859-8?Q?_fact_this_one_will_go_over_the_150_character_limit?=
619 >
620 > # RFC 2047 decode
621 >
622 > abcd abcd
623 > <:abcd:> <:abcd:>
624 > <:ab cd:> <:ab cd:>
625 > Long: here we go: a string that is going to be encoded: it will go over the 75-char limit
626 > Long: here we go: a string that is going to be encoded: it will go over the 75-char limit by a long way; in fact this one will go over the 150 character limit
627 >
628 > # UTF-8
629 >
630 > abcd abcd
631 > aÀÿd aÀÿd
632 > toobig a_d
633 >
634 > # Substitution
635 >
636 > ${sg{abcdefabcdef}{abc}{xyz}} =xyzdefxyzdef
637 > ${sg{ab:xy::z}{:}{::}} =ab::xy::::z
638 > ${sg{abcdefabcdef}{(..)[^c]}{>$1<}} =a><><><ef
639 > ${sg{abcdefabcdef}{(..)[^c]}{>\$1<}} =a>bc<>ef<>bc<ef
640 > ${sg{abcdefabcdef}{(..)[^c]}{>\N$1\N<}}=a>bc<>ef<>bc<ef
641 > ${sg{abbab}{a*}{+}} =++b+b++b+
642 >
643 > # File insertion
644 >
645 > Failed: missing or misplaced { or }
646 > abcde
647 12345
648
649 xyz
650
651 > abcde12345xyz
652 > abcde:12345::xyz:
653 > abcde - 12345 - - xyz -
654 > Failed: failed to open /non/exist/file: No such file or directory
655 > non-exist
656 > >abcde!12345!!xyz!<
657 >
658 > # Calling a command
659 >
660 > abcd
661 1234
662
663 > RC=0
664 > 1
665 > RC=0
666 > abcd
667 1234
668
669 > RC=0
670 > 2
671 > RC=1
672 > abcd
673 1234
674
675 > RC=1
676 > N
677 > RC=127
678 > >><<
679 > RC=0
680 > 1!=2
681 > RC=0
682 >
683 > # PRVS
684 >
685 > prvs=xxxxxxxxxx=userx@test.ex
686 > prvs=xxxxxxxxxx=userx@test.ex
687 > prvs=xxxxxxxxxx=userx@test.ex
688 >
689 > # Syntax errors
690 >
691 > Failed: prvs second argument must be a single digit
692 > Failed: prvs second argument must be a single digit
693 > Failed: prvs second argument must be a single digit
694 >
695 > # Correct checks; can't put explicit addresses in the tests, because they
696 > # will change over time.
697 >
698 > userx@test.ex
699 > result=1
700 >
701 > >1< >userx@test.ex< >1<
702 > result=1
703 >
704 > userx@test.ex
705 > result=1
706 >
707 > # Incorrect secret
708 >
709 > userx@test.ex
710 > result=
711 >
712 > 0
713 > result=
714 >
715 > # Non-prvs address
716 >
717 > >><<
718 > result=
719 >
720 > # Syntax errors
721 >
722 > Failed: "${tod_log" is not a known operator (or a } is missing in a variable reference)
723 > Failed: "${tod_log" is not a known operator (or a } is missing in a variable reference)
724 > Failed: missing } at end of string
725 > Failed: missing } at end of string
726 > Failed: hmac algorithm "xxx" is not recognised
727 > Failed: each subcondition inside an "and{...}" condition must be in its own {}
728 > Failed: unknown condition "xya" inside "and{...}" condition
729 > Failed: condition name expected, but found "${lookup{x}lsear" inside "and{...}" condition
730 > Failed: missing } at end of string - could be header name not terminated by colon
731 > Failed: missing or misplaced { or }
732 > Failed: missing or misplaced { or } - could be header name not terminated by colon
733 > Failed: each subcondition inside an "or{...}" condition must be in its own {}
734 > Failed: missing } at end of condition inside "or" group
735 > Failed: unknown condition "yes" inside "or{...}" condition
736 > Failed: non-digit after underscore in "substr_1_"
737 > Failed: non-digit after underscore in "substr__3"
738 >
739 > # Iterations: forany and forall
740 >
741 > yes
742 > yes
743 > yes
744 > no
745 > yes
746 > no
747 > no
748 > yes
749 > yes
750 >
751 > Failed: unknown condition "yes" inside "forany" condition
752 > Failed: missing } at end of condition inside "forany"
753 >
754 > yes
755 > no
756 > no
757 > no
758 >
759 > no
760 > yes
761 > yes
762 > yes
763 >
764 > # Expect yes
765 > outer=yes item='' (unset)
766 >
767 > # Expect no
768 > outer=no
769 >
770 > # Error inside nest - check message is helpful
771 > Failed: missing } at end of condition inside "forall" inside "forany" condition
772 >
773 >
774 > # Miscellaneous (for bug fixes, etc)
775 >
776 > true
777 >
778 >
779 > escape: B7·F2ò
780 >
781 > primary_hostname: myhost.test.ex
782 > match: cdab
783 > Failed: "if" failed and "fail" requested
784 > yes
785 > match_address: no
786 >
787 > -oMa sender_host_address =
788 > sender_host_port = 0
789 > -oMaa sender_host_authenticated =
790 > -oMai authenticated_id = CALLER
791 > -oMas authenticated_sender = CALLER@myhost.test.ex
792 > -oMi interface_address =
793 > interface_port = -1
794 > -oMr received_protocol =
795 > -oMs sender_host_name =
796 > -oMt sender_ident = CALLER
797 >
798 > -oMa sender_host_address = V4NET.0.0.1
799 > sender_host_port = 1234
800 > -oMaa sender_host_authenticated = AAA
801 > -oMai authenticated_id = philip
802 > -oMas authenticated_sender = xx@yy.zz
803 > -oMi interface_address = 1.1.1.1
804 > interface_port = 99
805 > -oMr received_protocol = special
806 > -oMt sender_ident = me
807 >
808 > -oMa sender_host_address = V4NET.0.0.1
809 > sender_host_port = 1234
810 > -oMs sender_host_name = my.host.name
811 >
812 > -oMs sender_host_name =
813 > host_lookup_failed = 1
814 >
815 > -p received_protocol = special
816 > -p sender_host_name = host.name
817 >
818 > -oMa sender_host_address = V4NET.0.0.1
819 > sender_host_port = 1234
820 > -oMaa sender_host_authenticated = AAA
821 > -oMai authenticated_id = philip
822 > -oMas authenticated_sender = xx@yy.zz
823 > -oMi interface_address = 1.1.1.1
824 > interface_port = 99
825 > -oMr received_protocol = special
826 > ----> No lookup yet: No
827 > -oMs sender_host_name = ten-1.test.ex
828 > -oMt sender_ident = me
829 >
830
831 **** SMTP testing session as if from host V4NET.0.0.1
832 **** but without any ident (RFC 1413) callback.
833 **** This is not for real!
834
835 550 Administrative prohibition
836
837 **** SMTP testing session as if from host V4NET.0.0.2
838 **** but without any ident (RFC 1413) callback.
839 **** This is not for real!
840
841 550 Administrative prohibition
842
843 **** SMTP testing session as if from host V4NET.0.0.0
844 **** but without any ident (RFC 1413) callback.
845 **** This is not for real!
846
847 220 myhost.test.ex ESMTP Exim x.yz Tue, 2 Mar 1999 09:44:33 +0000
848 250 OK
849 250 Accepted
850 354 Enter message, ending with "." on a line by itself
851 550 reply_address=<>
852 250 OK
853 250 Accepted
854 354 Enter message, ending with "." on a line by itself
855 550 reply_address=<a@b>
856 250 OK
857 250 Accepted
858 354 Enter message, ending with "." on a line by itself
859 550 reply_address=<c@d>
860 250 OK
861 250 Accepted
862 354 Enter message, ending with "." on a line by itself
863 550 reply_address=<>
864 250 OK
865 250 Accepted
866 354 Enter message, ending with "." on a line by itself
867 550 reply_address=<x@y>
868 221 myhost.test.ex closing connection
869
870 **** SMTP testing session as if from host V4NET.0.0.0
871 **** but without any ident (RFC 1413) callback.
872 **** This is not for real!
873
874 220 myhost.test.ex ESMTP Exim x.yz Tue, 2 Mar 1999 09:44:33 +0000
875 250 OK
876 250 Accepted
877 354 Enter message, ending with "." on a line by itself
878 550 reply_address=<>
879 221 myhost.test.ex closing connection
880
881 **** SMTP testing session as if from host V4NET.0.0.0
882 **** but without any ident (RFC 1413) callback.
883 **** This is not for real!
884
885 220 myhost.test.ex ESMTP Exim x.yz Tue, 2 Mar 1999 09:44:33 +0000
886 250 OK
887 250 Accepted
888 354 Enter message, ending with "." on a line by itself
889 550 reply_address=<>
890 221 myhost.test.ex closing connection
891 > match_ip: 15
892 > match_ip: 16
893 >
894 > in list
895 > in list
896 >