Ensure that recipient is well-defined for expansion-called acl at RCPT-time.
[users/heiko/exim.git] / test / scripts / 0000-Basic / 0027
1 # Nested ACL (per user) and ACL misconfigurations
2 #
3 # Invalid sender, should reject both
4 exim -bs
5 mail from:<x@y>
6 rcpt to:<userx@test.ex>
7 rcpt to:<postmaster@test.ex>
8 quit
9 ****
10 # Valid sender, should only reject userx
11 exim -bs
12 mail from:<userx@test.ex>
13 rcpt to:<userx@test.ex>
14 rcpt to:<postmaster@test.ex>
15 quit
16 ****
17 # ACL misconfigurations at RCPT time
18 exim -bs
19 mail from:<>
20 rcpt to:<"deny verify = header_syntax"@test.ex>
21 rcpt to:<"deny verify = junk"@test.ex>
22 rcpt to:<"deny vorify = junk"@test.ex>
23 rcpt to:<"dony verify = junk"@test.ex>
24 rcpt to:<"deny !message = abcd"@test.ex>
25 quit
26 ****
27 # ACL misconfiguration at DATA time
28 exim -bs
29 mail from:<>
30 rcpt to:<data@test.ex>
31 data
32 Subject: data1
33 .
34 quit
35 ****
36 # ACL misconfiguration at DATA time
37 exim -bs
38 mail from:<>
39 rcpt to:<data@test.ex>
40 data
41 Subject: data2
42 .
43 quit
44 ****
45 # ACL misconfiguration at DATA time
46 exim -bs
47 mail from:<>
48 rcpt to:<data@test.ex>
49 data
50 Subject: data3
51 .
52 quit
53 ****