Build: probe for broken poll() timing implementation
[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****
19client HOSTIPV4 PORT_D
20??? 220
21EHLO testclient
22??? 250-
23??? 250-SIZE
24??? 250-DSN
25??? 250 HELP
26MAIL FROM:<a@dump.ex>
27??? 250
28RCPT TO:<any@test.ex> NOTIFY=foo
29??? 501
30RCPT TO:<rmt_reject@test.ex> NOTIFY=never
31??? 250
32DATA
33??? 354
34Subject: test
35.
36??? 250
37QUIT
38??? 221
39****
40# Client requests delivery notification; the server supports DSN to takes responsibility
41client HOSTIPV4 PORT_D
42??? 220
43EHLO testclient
44??? 250-
45??? 250-SIZE
46??? 250-DSN
47??? 250 HELP
48MAIL FROM:<b@dump.ex>
49??? 250
50RCPT TO:<rmt_accept@test.ex> NOTIFY=success
51??? 250
52DATA
53??? 354
54Subject: test
55.
56??? 250
57QUIT
58??? 221
59****
60# Client requests notification of deferral. First time of trying, the
61# queue-time probably has not hit the 1st retry time yet, so no DSN will
62# be sent and the message remains queued.
63client HOSTIPV4 PORT_D
64??? 220
65EHLO testclient
66??? 250-
67??? 250-SIZE
68??? 250-DSN
69??? 250 HELP
70MAIL FROM:<c@dump.ex>
71??? 250
72RCPT TO:<rmt_defer@test.ex> NOTIFY=delay
73??? 250
74DATA
75??? 354
76Subject: test
77.
78??? 250
79QUIT
80??? 221
81****
82# Clients requests no DSNs, and this one gets deferred
83client HOSTIPV4 PORT_D
84??? 220
85EHLO testclient
86??? 250-
87??? 250-SIZE
88??? 250-DSN
89??? 250 HELP
90MAIL FROM:<d@dump.ex>
91??? 250
92RCPT TO:<rmt_defer@test.ex> NOTIFY=never
93??? 250
94DATA
95??? 354
96Subject: test
97.
98??? 250
99QUIT
100??? 221
101****
102# This attemmpt the set of all the above, for the first time.
103exim -q
104****
105sleep 3
106# Second time, for the queued deferrals. Final delivery for the acceptance.
107exim -q
108****
109killdaemon
110#
111#
112no_msglog_check