Escape lookup deferral error message when logging.
[users/jgh/exim.git] / test / scripts / 2200-dnsdb / 2200
1 # dnsdb lookup in string expansions
2
3 exim -be
4 test.ex                    ${lookup dnsdb{test.ex}{$value}fail}
5 s/lash.test.ex             ${lookup dnsdb{s/lash.test.ex}{$value}fail}
6 txt=test.ex                ${lookup dnsdb{txt=test.ex}{$value}fail}
7 a=black-1.test.ex          ${lookup dnsdb{a=black-1.test.ex}{$value}fail}
8 xxx=test.ex                ${lookup dnsdb{xxx=test.ex}{$value}fail}
9 a=localhost.test.ex        ${lookup dnsdb{a=localhost.test.ex}{$value}fail}
10 cname=alias-eximtesthost.test.ex ${lookup dnsdb{cname=alias-eximtesthost.test.ex}{$value}fail}
11 ns=test.ex                 ${lookup dnsdb{ns=test.ex}{$value}fail}
12 zns=x.y.z.test.ex          ${lookup dnsdb{zns=x.y.z.test.ex}{$value}fail}
13 mx=mxt1.test.ex            ${lookup dnsdb{mx=mxt1.test.ex}{$value}fail}
14 mx=mxt3.test.ex            ${lookup dnsdb{mx=mxt3.test.ex}{$value}fail}
15 mxh=mxt1.test.ex           ${lookup dnsdb{mxh=mxt1.test.ex}{$value}fail}
16 ptr=V4NET.0.0.1            ${lookup dnsdb{ptr=V4NET.0.0.1}{$value}fail}
17 ptr=ptr.test.ex            ${lookup dnsdb{ptr=ptr.test.ex}{$value}fail}
18 srv=_smtp._tcp.srv01.test.ex     ${lookup dnsdb{srv=_smtp._tcp.srv01.test.ex}{$value}{fail}}
19 srv=_smtp._tcp.nosmtp.test.ex    ${lookup dnsdb{srv=_smtp._tcp.nosmtp.test.ex}{$value}{fail}}
20
21 csa=csa1.test.ex           ${lookup dnsdb{csa=csa1.test.ex}}
22 csa=csa2.test.ex           ${lookup dnsdb{csa=csa2.test.ex}}
23
24 # DNS lookups with multiple items
25
26 ten-1:ten2                 ${lookup dnsdb{a=ten-1.test.ex:ten-2.test.ex}}
27 ten-1:defer:ten2           ${lookup dnsdb{a=ten-1.test.ex:test.again.dns:ten-2.test.ex}}
28 ten-1|ten2                 ${lookup dnsdb{a=<|ten-1.test.ex|ten-2.test.ex}}
29 mxt1;mxt2 | output         ${lookup dnsdb{>|mx=<;mxt1.test.ex;mxt2.test.ex}}
30 mxt1;mxt2 | output         ${lookup dnsdb{>|mxh=<;mxt1.test.ex;mxt2.test.ex}}
31 13/14 rbl                  ${lookup dnsdb{> 13.12.11.V4NET.rbl.test.ex:13.12.11.V4NET.rbl.test.ex}}
32 double ptr                 ${lookup dnsdb{ptr=V4NET.0.0.1:V4NET.0.0.2}}
33 ten-1:bad                  ${lookup dnsdb{ a = ten-1.test.ex:badbad.test.ex}{$value}{FAILED}}
34 bad:bad                    ${lookup dnsdb{ a = <; badbad.test.ex ; badbad.test.ex}{$value}{FAILED}}
35
36 defer:defer                ${lookup dnsdb{a=test.again.dns:test.again.dns}}
37 defer_lax:ten-1            ${lookup dnsdb{a=test.again.dns:ten-1.test.ex}}
38 defer_lax:ten-1            ${lookup dnsdb{defer_lax,a=test.again.dns:ten-1.test.ex}}
39 defer_never:ten-1          ${lookup dnsdb{defer_never,a=test.again.dns:ten-1.test.ex}}
40 defer_never:defer          ${lookup dnsdb{defer_never,a=test.again.dns:test.again.dns}}
41 defer_strict:ten-1         ${lookup dnsdb{defer_strict,a=test.again.dns:ten-1.test.ex}}
42 ****