SPF: fix handling mix of spf and other txt records. Bug 2499
[exim.git] / test / scripts / 4600-SPF / 4601
... / ...
CommitLineData
1# lookup string-expansion
2#
3exim -bd -DSERVER=server -oX PORT_D:PORT_S
4****
5client 127.0.0.1 PORT_D
6??? 220
7helo testclient
8??? 250
9mail from:<a@example.com>
10??? 250
11rcpt to:<fred@test.ex>
12??? 250
13quit
14****
15client 127.0.0.1 PORT_S
16??? 220
17helo testclient
18??? 250
19mail from:<b@example.com>
20??? 250
21rcpt to:<fred@test.ex>
22??? 250
23quit
24****
25#
26killdaemon
27#
28# SERVFAIL -> temperror
29# A multiple spf-RR return should get permerror
30# - and not crash with non-spf txt records
31# v=spf1 is casr-insensitive
32exim -be
33none ${lookup {fred@v6.test.ex} spf {HOSTIPV4}}
34temperror ${lookup {fred@test.again.dns} spf {HOSTIPV4}}
35permerror ${lookup {fred@double.example.com} spf {8.8.8.8}}
36permerror ${lookup {fred@doubleplus.example.com} spf {8.8.8.8}}
37pass ${lookup {fred@uppercase.example.com} spf {HOSTIPV4}}
38****