summaryrefslogtreecommitdiff
path: root/test/scripts/0000-Basic/0024
blob: 862c6e35b4da3e417bcc3b9026712bd3a575cc62 (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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
# ACL test of "standard" configuration
#
# Not a relay host, no authentication, sender address fails to verify.
# accept postmaster@test.ex (postmaster at local domain)
# deny   userx@test.ex (good address in local domain, but sender verify failed)
# deny   x@y (bad address, but sender verify failed)
# deny   x@ten-1.test.ex (good relay address, but sender verify failed)
# deny   x@ten-2.test.ex (good address, but sender verify failed)
#
exim -odi -oMa V4NET.0.0.0 -bs
helo test
mail from:<x@y>
rcpt to:<postmaster@test.ex>
rcpt to:<userx@test.ex>
rcpt to:<x@y>
rcpt to:<x@ten-1.test.ex>
rcpt to:<x@ten-2.test.ex>
data
Message 1
.
quit
****
# Not a relay host, no authentication, sender address does verify.
# accept postmaster@test.ex (postmaster at local domain)
# accept userx@test.ex (good address in local domain)
# deny   x@y (bad address)
# accept x@ten-1.test.ex (good relay address)
# deny   x@ten-2.test.ex (good address, but not relay domain or host)
# accept EAI local part
exim -odi -oMa V4NET.0.0.0 -bs
helo test
mail from:<userx@test.ex>
rcpt to:<postmaster@test.ex>
rcpt to:<userx@test.ex>
rcpt to:<x@y>
rcpt to:<x@ten-1.test.ex>
rcpt to:<x@ten-2.test.ex>
rcpt to:<føø@test.ex>
data
Message 2
.
quit
****
# Relay host, no authentication, sender address does verify.
# deny   bad@test.ex (bad address in local domain)
# deny   x@y (bad address)
# accept x@ten-1.test.ex (good relay address)
# accept x@ten-2.test.ex (good non-relay address, relay host)
exim -odi -oMa V4NET.255.255.0 -bs
helo test
mail from:<userx@test.ex>
rcpt to:<bad@test.ex>
rcpt to:<x@y>
rcpt to:<x@ten-1.test.ex>
rcpt to:<x@ten-2.test.ex>
data
Message 3
.
quit
****
# Host on serious black list
# accept postmaster@test.ex (postmaster at local domain)
# deny   anything else
exim -odi -oMa V4NET.11.12.13 -bs
helo test
mail from:<userx@test.ex>
rcpt to:<postmaster@test.ex>
rcpt to:<userx@test.ex>
rcpt to:<x@ten-1.test.ex>
data
Message 4
.
quit
****
# Host on warning black list
# accept postmaster@test.ex (postmaster at local domain)
# deny   anything else
exim -odi -oMa V4NET.11.12.16 -bs
helo test
mail from:<userx@test.ex>
rcpt to:<postmaster@test.ex>
rcpt to:<userx@test.ex>
rcpt to:<x@ten-1.test.ex>
data
Message 5
.
quit
****
# Local SMTP - should accept everything
#
exim -odi -bs
helo test
mail from:<x@y>
rcpt to:<postmaster@test.ex>
rcpt to:<userx@test.ex>
rcpt to:<x@y>
rcpt to:<x@ten-1.test.ex>
rcpt to:<x@ten-2.test.ex>
quit
****