Testsuite: fix testcase for SPF empty-mailfrom-use-helo. Bug 467
[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 #
64 #
65 #
66 #
67 # helo name gets used when mailfrom is null
68 client HOSTIPV4 PORT_S
69 ??? 220
70 helo passme.helo.example.com
71 ??? 250
72 mail from:<>
73 ??? 250
74 rcpt to:<fred@test.ex>
75 ??? 250
76 quit
77 ****
78 #
79 # helo name is overridden when a mailfrom is set
80 client HOSTIPV4 PORT_S
81 ??? 220
82 helo passme.helo.example.com
83 ??? 250
84 mail from:<failme@example.com>
85 ??? 250
86 rcpt to:<fred@test.ex>
87 ??? 550
88 quit
89 ****
90 #
91 killdaemon