summaryrefslogtreecommitdiff
path: root/test/scripts/0000-Basic/0618
blob: 69a53c6918120cc8a7d7f7d51838c6d193228a05 (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
# DSN ESMTP extension RCPT options
#
# Server does not advertise by default
exim -DSERVER=server -bd -oX PORT_D
****
client 127.0.0.1 PORT_D
??? 220
EHLO testclient
??? 250-
??? 250-SIZE
??? 250 HELP
****
killdaemon
#
#
# Server does advertise when told.  Client requests no bounces, and this one gets a reject.
exim -DSERVER=server -DOPT=y -bd -oX PORT_D
****
exim -z rej/never
****
client HOSTIPV4 PORT_D
??? 220
EHLO testclient
??? 250-
??? 250-SIZE
??? 250-DSN
??? 250 HELP
MAIL FROM:<a@dump.ex>
??? 250
RCPT TO:<any@test.ex> NOTIFY=foo
??? 501
RCPT TO:<rmt_reject@test.ex> NOTIFY=never
??? 250
DATA
??? 354
Subject: test
.
??? 250
QUIT
??? 221
****
exim -q
****
#
# Client requests delivery notification; the server supports DSN so takes responsibility
exim -z accept/success
****
client HOSTIPV4 PORT_D
??? 220
EHLO testclient
??? 250-
??? 250-SIZE
??? 250-DSN
??? 250 HELP
MAIL FROM:<b@dump.ex>
??? 250
RCPT TO:<rmt_accept@test.ex> NOTIFY=success
??? 250
DATA
??? 354
Subject: test
.
??? 250
QUIT
??? 221
****
# MSA send msg to MDA
exim -q
****
# deliver msg at MDA
exim -q
****
# deliver notification from MDA
exim -q
****
#
# Client requests notification of deferral.  First time of trying, we get
# a defer but queue-time probably has not hit the 1st retry time yet, so no DSN
# will be sent and the message remains queued.  Then, claiming time has elapsed,
# we will look again (expecting a delay-DSN to be produced).  We won't see a
# retry since the actual retry time has not passed.
exim -z defer/delay
****
client HOSTIPV4 PORT_D
??? 220
EHLO testclient
??? 250-
??? 250-SIZE
??? 250-DSN
??? 250 HELP
MAIL FROM:<c@dump.ex>
??? 250
RCPT TO:<rmt_defer@test.ex> NOTIFY=delay
??? 250
DATA
??? 354
Subject: test
.
??? 250
QUIT
??? 221
****
exim -q
****
#
# Clients requests no DSNs, and this one gets deferred
exim -z defer/never
****
client HOSTIPV4 PORT_D
??? 220
EHLO testclient
??? 250-
??? 250-SIZE
??? 250-DSN
??? 250 HELP
MAIL FROM:<d@dump.ex>
??? 250
RCPT TO:<rmt_defer@test.ex> NOTIFY=never
??? 250
DATA
??? 354
Subject: test
.
??? 250
QUIT
??? 221
****
exim -q
****
#
#
#
# Second time, for the queued deferrals.
# We should see the notify for c@dump.ex but not d@dump.ex
exim -z playout
****
exim -Tqt 10s/ -q
****
sleep 1
exim -Mrm $msg1 $msg2
****
#
#
#
#
# Client requests bounce+delay notification; bounce happens
exim -z rej/failure+delay
****
client HOSTIPV4 PORT_D
??? 220
EHLO testclient
??? 250-
??? 250-SIZE
??? 250-DSN
??? 250 HELP
MAIL FROM:<e@dump.ex>
??? 250
RCPT TO:<rmt_reject@test.ex> NOTIFY=fAiLuRe,DELAY
??? 250
DATA
??? 354
Subject: test
.
??? 250
QUIT
??? 221
****
# MSA send msg to MDA
exim -q
****
# deliver notification from MDA
exim -z 'deliver DSN'
****
exim -q
****
sleep 1
killdaemon
#
#
no_msglog_check