cb67d19ae21d1bc2e56bb4d8fea526f25c063189
[exim.git] / test / scripts / 4600-SPF / 4600
1 # acl condition and variables
2 #
3 # The 127.0.0.1 source addr seems to be a builtin in the spf library; no dns lookup is done.
4 # HOSTIPV4 does get a series of lookups (see server debug output to verify that).
5 #
6 # The libspf2 object stack is built with an exim-specific DNS lookup base object,
7 # so the testsuite intercept to fakedns works.  Be careful of names and addresses
8 # used, as nonhandled lookups are passed on to real DNS.
9 #
10 exim -bd -DSERVER=server -oX PORT_D:PORT_S:PORT_D2
11 ****
12 client 127.0.0.1 PORT_S
13 ??? 220
14 helo testclient
15 ??? 250
16 mail from:<a@example.com>
17 ??? 250
18 rcpt to:<fred@test.ex>
19 ??? 250
20 quit
21 ****
22 client HOSTIPV4 PORT_S
23 ??? 220
24 helo testclient
25 ??? 250
26 mail from:<b@test.example.com>
27 ??? 250
28 rcpt to:<fred@test.ex>
29 ??? 250
30 quit
31 ****
32 client 127.0.0.1 PORT_D
33 ??? 220
34 helo testclient
35 ??? 250
36 mail from:<c@example.com>
37 ??? 250
38 rcpt to:<fred@test.ex>
39 ??? 250
40 quit
41 ****
42 client HOSTIPV4 PORT_D
43 ??? 220
44 helo testclient
45 ??? 250
46 mail from:<b@test.example.com>
47 ??? 250
48 rcpt to:<fred@test.ex>
49 ??? 550
50 quit
51 ****
52 client 127.0.0.1 PORT_D2
53 ??? 220
54 helo testclient
55 ??? 250
56 mail from:<c@example.com>
57 ??? 250
58 rcpt to:<fred@test.ex>
59 ??? 550
60 quit
61 ****
62 #
63 client 127.0.0.1 PORT_S
64 ??? 220
65 helo example.com
66 ??? 250
67 mail from:<>
68 ??? 250
69 rcpt to:<fred@test.ex>
70 ??? 250
71 quit
72 ****
73 #
74 killdaemon