debug tidying
[exim.git] / test / scripts / 0000-Basic / 0618
CommitLineData
ea97267c
JH
1# DSN ESMTP extension RCPT options
2#
3# Server does not advertise by default
4exim -DSERVER=server -bd -oX PORT_D
5****
6client 127.0.0.1 PORT_D
7??? 220
8EHLO testclient
9??? 250-
10??? 250-SIZE
11??? 250 HELP
12****
13killdaemon
14#
15#
16# Server does advertise when told. Client requests no bounces, and this one gets a reject.
17exim -DSERVER=server -DOPT=y -bd -oX PORT_D
18****
ba97ac87
JH
19exim -z rej/never
20****
ea97267c
JH
21client HOSTIPV4 PORT_D
22??? 220
23EHLO testclient
24??? 250-
25??? 250-SIZE
26??? 250-DSN
27??? 250 HELP
28MAIL FROM:<a@dump.ex>
29??? 250
30RCPT TO:<any@test.ex> NOTIFY=foo
31??? 501
32RCPT TO:<rmt_reject@test.ex> NOTIFY=never
33??? 250
34DATA
35??? 354
36Subject: test
37.
38??? 250
39QUIT
40??? 221
41****
ba97ac87
JH
42exim -q
43****
44#
45# Client requests delivery notification; the server supports DSN so takes responsibility
46exim -z accept/success
47****
ea97267c
JH
48client HOSTIPV4 PORT_D
49??? 220
50EHLO testclient
51??? 250-
52??? 250-SIZE
53??? 250-DSN
54??? 250 HELP
55MAIL FROM:<b@dump.ex>
56??? 250
57RCPT TO:<rmt_accept@test.ex> NOTIFY=success
58??? 250
59DATA
60??? 354
61Subject: test
62.
63??? 250
64QUIT
65??? 221
66****
ba97ac87
JH
67# MSA send msg to MDA
68exim -q
69****
70# deliver msg at MDA
71exim -q
72****
73# deliver notification from MDA
74exim -q
75****
76#
77# Client requests notification of deferral. First time of trying, we get
78# a defer but queue-time probably has not hit the 1st retry time yet, so no DSN
44416341
JH
79# will be sent and the message remains queued. Then, claiming time has elapsed,
80# we will look again (expecting a delay-DSN to be produced). We won't see a
81# retry since the actual retry time has not passed.
ba97ac87
JH
82exim -z defer/delay
83****
ea97267c
JH
84client HOSTIPV4 PORT_D
85??? 220
86EHLO testclient
87??? 250-
88??? 250-SIZE
89??? 250-DSN
90??? 250 HELP
91MAIL FROM:<c@dump.ex>
92??? 250
93RCPT TO:<rmt_defer@test.ex> NOTIFY=delay
94??? 250
95DATA
96??? 354
97Subject: test
98.
99??? 250
100QUIT
101??? 221
102****
ba97ac87
JH
103exim -q
104****
105#
ea97267c 106# Clients requests no DSNs, and this one gets deferred
ba97ac87
JH
107exim -z defer/never
108****
ea97267c
JH
109client HOSTIPV4 PORT_D
110??? 220
111EHLO testclient
112??? 250-
113??? 250-SIZE
114??? 250-DSN
115??? 250 HELP
116MAIL FROM:<d@dump.ex>
117??? 250
118RCPT TO:<rmt_defer@test.ex> NOTIFY=never
119??? 250
120DATA
121??? 354
122Subject: test
123.
124??? 250
125QUIT
126??? 221
127****
ea97267c
JH
128exim -q
129****
ba97ac87
JH
130#
131#
132#
133# Second time, for the queued deferrals.
134# We should see the notify for c@dump.ex but not d@dump.ex
135exim -z playout
136****
44416341 137exim -Tqt 10s/ -q
ea97267c 138****
df98a6ff
JH
139sleep 1
140exim -Mrm $msg1 $msg2
141****
142#
143#
144#
145#
146# Client requests bounce+delay notification; bounce happens
147exim -z rej/failure+delay
148****
149client HOSTIPV4 PORT_D
150??? 220
151EHLO testclient
152??? 250-
153??? 250-SIZE
154??? 250-DSN
155??? 250 HELP
156MAIL FROM:<e@dump.ex>
157??? 250
158RCPT TO:<rmt_reject@test.ex> NOTIFY=fAiLuRe,DELAY
159??? 250
160DATA
161??? 354
162Subject: test
163.
164??? 250
165QUIT
166??? 221
167****
168# MSA send msg to MDA
169exim -q
170****
171# deliver notification from MDA
172exim -z 'deliver DSN'
173****
174exim -q
175****
176sleep 1
ea97267c
JH
177killdaemon
178#
179#
180no_msglog_check