Build: probe for broken poll() timing implementation
[exim.git] / test / scripts / 0000-Basic / 0618
1 # DSN ESMTP extension RCPT options
2 #
3 # Server does not advertise by default
4 exim -DSERVER=server -bd -oX PORT_D
5 ****
6 client 127.0.0.1 PORT_D
7 ??? 220
8 EHLO testclient
9 ??? 250-
10 ??? 250-SIZE
11 ??? 250 HELP
12 ****
13 killdaemon
14 #
15 #
16 # Server does advertise when told. Client requests no bounces, and this one gets a reject.
17 exim -DSERVER=server -DOPT=y -bd -oX PORT_D
18 ****
19 client HOSTIPV4 PORT_D
20 ??? 220
21 EHLO testclient
22 ??? 250-
23 ??? 250-SIZE
24 ??? 250-DSN
25 ??? 250 HELP
26 MAIL FROM:<a@dump.ex>
27 ??? 250
28 RCPT TO:<any@test.ex> NOTIFY=foo
29 ??? 501
30 RCPT TO:<rmt_reject@test.ex> NOTIFY=never
31 ??? 250
32 DATA
33 ??? 354
34 Subject: test
35 .
36 ??? 250
37 QUIT
38 ??? 221
39 ****
40 # Client requests delivery notification; the server supports DSN to takes responsibility
41 client HOSTIPV4 PORT_D
42 ??? 220
43 EHLO testclient
44 ??? 250-
45 ??? 250-SIZE
46 ??? 250-DSN
47 ??? 250 HELP
48 MAIL FROM:<b@dump.ex>
49 ??? 250
50 RCPT TO:<rmt_accept@test.ex> NOTIFY=success
51 ??? 250
52 DATA
53 ??? 354
54 Subject: test
55 .
56 ??? 250
57 QUIT
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.
63 client HOSTIPV4 PORT_D
64 ??? 220
65 EHLO testclient
66 ??? 250-
67 ??? 250-SIZE
68 ??? 250-DSN
69 ??? 250 HELP
70 MAIL FROM:<c@dump.ex>
71 ??? 250
72 RCPT TO:<rmt_defer@test.ex> NOTIFY=delay
73 ??? 250
74 DATA
75 ??? 354
76 Subject: test
77 .
78 ??? 250
79 QUIT
80 ??? 221
81 ****
82 # Clients requests no DSNs, and this one gets deferred
83 client HOSTIPV4 PORT_D
84 ??? 220
85 EHLO testclient
86 ??? 250-
87 ??? 250-SIZE
88 ??? 250-DSN
89 ??? 250 HELP
90 MAIL FROM:<d@dump.ex>
91 ??? 250
92 RCPT TO:<rmt_defer@test.ex> NOTIFY=never
93 ??? 250
94 DATA
95 ??? 354
96 Subject: test
97 .
98 ??? 250
99 QUIT
100 ??? 221
101 ****
102 # This attemmpt the set of all the above, for the first time.
103 exim -q
104 ****
105 sleep 3
106 # Second time, for the queued deferrals. Final delivery for the acceptance.
107 exim -q
108 ****
109 killdaemon
110 #
111 #
112 no_msglog_check