summaryrefslogtreecommitdiff
path: root/test/scripts/0000-Basic/0026
blob: e81e0d9d00d7a672b691a10078ff2920075a757a (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
101
102
103
104
105
106
107
# ACL checks after DATA
#
# Syntax OK, non-null sender => should be accepted
exim -odq -bs
mail from:<x@y>
rcpt to:<x@y>
data
Message 1
.
quit
****
# Syntax error in header => should fail
exim -odq -bs
mail from:<x@y>
rcpt to:<x@y>
data
From: @

Message 2
.
quit
****
# Syntax error in header => should fail even with null sender
exim -odq -bs
mail from:<>
rcpt to:<x@y>
data
From: <x@y>, @

Message 3
.
quit
****
# Null sender, invalid sender in header => fail
exim -odq -bs
mail from:<>
rcpt to:<x@y>
data
From: <x@y>

Message 4
.
quit
****
# Null sender, valid sender in header => accept
exim -odq -bs
mail from:<>
rcpt to:<x@y>
data
From: <postmaster@test.ex>
Reply-to:<x@y>

Message 5
.
quit
****
# Syntax OK, non-null sender, but bad data => reject
exim -odq -bs
mail from:<x@y>
rcpt to:<x@y>
data
Message 6 contains trigger word
.
quit
****
# Syntax OK, non-null sender, good data
exim -odi -bs
mail from:<x@y>
rcpt to:<userx@test.ex>
data
Message 7
.
quit
****
# -bh test: Syntax error in header => should fail
exim -bh 10.0.0.0
mail from:<x@y>
rcpt to:<x@y>
data
From: @

Message 8
.
quit
****
# -bh test: Syntax OK, non-null sender, but bad data => reject
exim -bh 10.0.0.0
mail from:<x@y>
rcpt to:<x@y>
data
Message 9 contains trigger word
.
quit
****
# Group syntax in reply-to header
exim -odi -bs
mail from:<x@y>
rcpt to:<userx@test.ex>
data
to: group name: x@y, p@q;
reply-to: group name: a@b, c@d;

Message 10
.
quit
****
no_msglog_check