summaryrefslogtreecommitdiff
path: root/test/scripts/0000-Basic/0585
blob: b4d8258936f2c6f547ef2a852422db6ca3d2fb7f (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
# verify = not_blind/case_insensitive
#
# Accept: the env rcpt matches a header To:
exim -odq -bs
helo test
mail from:<>
rcpt to:<userx@dom.com>
data
To: a@b.c, himself <UserX@dom.com>
.
quit
****
### Reject: no match
exim -odq -bs
helo test
mail from:<>
rcpt to:<userx@dom.com>
data
To: b@b.c, himself <usery@dom.com>
.
quit
****
### Reject, with specific SMTP message
exim -DERROR_DETAILS=smtp_return_error_details -odq -bs
helo test
mail from:<>
rcpt to:<userx@dom.com>
data
To: c@b.c, himself <usery@dom.com>
.
quit
****
### Accept, matches in header CC:
exim -odq -bs
helo test
mail from:<>
rcpt to:<userx@dom.com>
rcpt to:<usery@dom.com>
data
To: d@b.c, himself <UserY@dom.com>
Cc: unqualified, UserX@dom.com, x@y.z
.
quit
****
### Reject: To: & CC: combo, an env rcpt missing
exim -odq -bs
helo test
mail from:<>
rcpt to:<userx@dom.com>
rcpt to:<usery@dom.com>
rcpt to:<userz@dom.com>
data
To: e@b.c, himself <UserY@dom.com>
Cc: unqualified, UserX@dom.com, x@y.z
.
quit
****
### Accept: Resent-To: & Resent-CC: combo
exim -odq -bs
helo test
mail from:<>
rcpt to:<userx@dom.com>
rcpt to:<usery@dom.com>
data
Resent-To: f@b.c, himself <UserY@dom.com>
Resent-Cc: unqualified, UserX@dom.com, x@y.z
To: an@other
.
quit
****
no_msglog_check