Testsuite: fix munge for mailq
[exim.git] / test / scripts / 0000-Basic / 0024
1 # ACL test of "standard" configuration
2 #
3 # Not a relay host, no authentication, sender address fails to verify.
4 # accept postmaster@test.ex (postmaster at local domain)
5 # deny   userx@test.ex (good address in local domain, but sender verify failed)
6 # deny   x@y (bad address, but sender verify failed)
7 # deny   x@ten-1.test.ex (good relay address, but sender verify failed)
8 # deny   x@ten-2.test.ex (good address, but sender verify failed)
9 #
10 exim -odi -oMa V4NET.0.0.0 -bs
11 helo test
12 mail from:<x@y>
13 rcpt to:<postmaster@test.ex>
14 rcpt to:<userx@test.ex>
15 rcpt to:<x@y>
16 rcpt to:<x@ten-1.test.ex>
17 rcpt to:<x@ten-2.test.ex>
18 data
19 Message 1
20 .
21 quit
22 ****
23 # Not a relay host, no authentication, sender address does verify.
24 # accept postmaster@test.ex (postmaster at local domain)
25 # accept userx@test.ex (good address in local domain)
26 # deny   x@y (bad address)
27 # accept x@ten-1.test.ex (good relay address)
28 # deny   x@ten-2.test.ex (good address, but not relay domain or host)
29 # accept EAI local part
30 exim -odi -oMa V4NET.0.0.0 -bs
31 helo test
32 mail from:<userx@test.ex>
33 rcpt to:<postmaster@test.ex>
34 rcpt to:<userx@test.ex>
35 rcpt to:<x@y>
36 rcpt to:<x@ten-1.test.ex>
37 rcpt to:<x@ten-2.test.ex>
38 rcpt to:<føø@test.ex>
39 data
40 Message 2
41 .
42 quit
43 ****
44 # Relay host, no authentication, sender address does verify.
45 # deny   bad@test.ex (bad address in local domain)
46 # deny   x@y (bad address)
47 # accept x@ten-1.test.ex (good relay address)
48 # accept x@ten-2.test.ex (good non-relay address, relay host)
49 exim -odi -oMa V4NET.255.255.0 -bs
50 helo test
51 mail from:<userx@test.ex>
52 rcpt to:<bad@test.ex>
53 rcpt to:<x@y>
54 rcpt to:<x@ten-1.test.ex>
55 rcpt to:<x@ten-2.test.ex>
56 data
57 Message 3
58 .
59 quit
60 ****
61 # Host on serious black list
62 # accept postmaster@test.ex (postmaster at local domain)
63 # deny   anything else
64 exim -odi -oMa V4NET.11.12.13 -bs
65 helo test
66 mail from:<userx@test.ex>
67 rcpt to:<postmaster@test.ex>
68 rcpt to:<userx@test.ex>
69 rcpt to:<x@ten-1.test.ex>
70 data
71 Message 4
72 .
73 quit
74 ****
75 # Host on warning black list
76 # accept postmaster@test.ex (postmaster at local domain)
77 # deny   anything else
78 exim -odi -oMa V4NET.11.12.16 -bs
79 helo test
80 mail from:<userx@test.ex>
81 rcpt to:<postmaster@test.ex>
82 rcpt to:<userx@test.ex>
83 rcpt to:<x@ten-1.test.ex>
84 data
85 Message 5
86 .
87 quit
88 ****
89 # Local SMTP - should accept everything
90 #
91 exim -odi -bs
92 helo test
93 mail from:<x@y>
94 rcpt to:<postmaster@test.ex>
95 rcpt to:<userx@test.ex>
96 rcpt to:<x@y>
97 rcpt to:<x@ten-1.test.ex>
98 rcpt to:<x@ten-2.test.ex>
99 quit
100 ****