testsuite: interlock callout tests
[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
79# will be sent and the message remains queued. Later, after a sleep, we will
80# try again.
81exim -z defer/delay
82****
ea97267c
JH
83client HOSTIPV4 PORT_D
84??? 220
85EHLO testclient
86??? 250-
87??? 250-SIZE
88??? 250-DSN
89??? 250 HELP
90MAIL FROM:<c@dump.ex>
91??? 250
92RCPT TO:<rmt_defer@test.ex> NOTIFY=delay
93??? 250
94DATA
95??? 354
96Subject: test
97.
98??? 250
99QUIT
100??? 221
101****
ba97ac87
JH
102exim -q
103****
104#
ea97267c 105# Clients requests no DSNs, and this one gets deferred
ba97ac87
JH
106exim -z defer/never
107****
ea97267c
JH
108client HOSTIPV4 PORT_D
109??? 220
110EHLO testclient
111??? 250-
112??? 250-SIZE
113??? 250-DSN
114??? 250 HELP
115MAIL FROM:<d@dump.ex>
116??? 250
117RCPT TO:<rmt_defer@test.ex> NOTIFY=never
118??? 250
119DATA
120??? 354
121Subject: test
122.
123??? 250
124QUIT
125??? 221
126****
ea97267c
JH
127exim -q
128****
129sleep 3
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****
ea97267c
JH
137exim -q
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