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