summaryrefslogtreecommitdiff
path: root/test/scripts/0000-Basic/0495
blob: a6c1dcf408586686ba833a4ff34f228150ad4175 (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
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
# mua_wrapper
need_ipv4
#
1
exim xyz@test.ex
This should fail hard (nothing listening)
****
server PORT_S
220 Server ready
EHLO
250-server id
250-PIPELINING
250 OK
MAIL FROM
250 OK
RCPT TO
250 OK
RCPT TO
250 OK
DATA
354 OK
.
250 OK
****
exim a@x.y b@x.y
This should succeed
****
server PORT_S
220 Server ready
EHLO
250-server id
250-PIPELINING
250 OK
MAIL FROM
250 OK
RCPT TO
250 OK
RCPT TO
550 NOTOK
QUIT
250 OK
****
1
exim a@x.y b@x.y
This should not succeed (one recipient rejected)
****
server PORT_S
220 Server ready
EHLO
250-server id
250-PIPELINING
250 OK
MAIL FROM
550 BAD MAIL
RCPT TO
550 NOTOK
RCPT TO
550 NOTOK
QUIT
250 OK
****
1
exim a@x.y b@x.y
This should not succeed (mail rejected)
****
server PORT_S
220 Server ready
EHLO
250-server id
250-PIPELINING
250 OK
MAIL FROM
450 TEMPORARY MAIL FAIL
RCPT TO
450 NOTOK
RCPT TO
450 NOTOK
QUIT
250 OK
****
1
exim a@x.y b@x.y
This should not succeed (mail rejected, even though temporary)
****
server PORT_S
220 Server ready
EHLO
250-server id
250-PIPELINING
250 OK
MAIL FROM
250 OK
RCPT TO
250 OK
RCPT TO
250 OK
DATA
354 OK
.
250 OK
****
exim postmaster@x.y b@x.y
This should succeed (alias to normal address)
****
1
exim file@x.y b@x.y
This should not succeed (alias to local delivery)
****
1
exim fail@x.y b@x.y
This should not succeed (alias to fail)
****
1
exim a@x.y defer@x.y
This should not succeed (alias to defer)
****
1
exim a@x.y otherhost@x.y
This should not succeed (routed to different hosts)
****
1
exim a@x.y addheader@x.y
This should not succeed (different headers add)
****
# Should fail - daemon not allowed
1
exim -bd
****
server PORT_S
220 Server ready
EHLO
250-server id
250-PIPELINING
250 OK
MAIL FROM
250 OK
RCPT TO
250 OK
RCPT TO
250 OK
DATA
354 OK
.
250 OK
****
exim -bs
ehlo a.b
mail from:<sen@der>
rcpt to:<a@x.y>
rcpt to:<b@x.y>
data
This should succeed.
.
quit
****
1
exim -bs
ehlo a.b
mail from:<sen@der>
rcpt to:<a@x.y>
rcpt to:<b@x.y>
data
This should fail - nothing listening
.
quit
****
server PORT_S 2
220 Server ready
EHLO
250-server id
250-PIPELINING
250 OK
MAIL FROM
250 OK
RCPT TO
250 OK
RCPT TO
*sleep 2
>*eof
220 Server ready
EHLO
250-server id
250-PIPELINING
250 OK
MAIL FROM
250 OK
RCPT TO
250 OK
RCPT TO
*sleep 2
****
1
exim a@x.y b@x.y
This should fail because of timeouts
.
quit
****
1
exim badport1@z badport2@z
This should fail because of a bad port definition.
****
server PORT_S
220 Server ready
EHLO
250-server id
250-PIPELINING
250 OK
MAIL FROM
250 OK
RCPT TO
550 SORRY
QUIT
221 BYE
****
# Test for an empty sender
1
exim -f '<>' a@x.y
This should fail.
****