Testsuite: fix platforn TFO nonsupprt munge
[exim.git] / test / scripts / 0000-Basic / 0300
CommitLineData
59371ea7
PH
1# SMTP synchronization checks, with and without PIPELINING
2need_ipv4
a0418528 3munge sync_check_data
59371ea7
PH
4#
5exim -DSERVER=server -bd -oX PORT_D
6****
7client 127.0.0.1 PORT_D
8??? 220
9ehlo abcd\r\nmail from:<userx@test.ex>
10??? 554
11****
12# The pause (+++ 1) in the middle of this is to be sure the first message is
13# delivered before generating the sync error; without it, there's a race.
14client 127.0.0.1 PORT_D
15??? 220
16ehlo abcd
17??? 250-
18??? 250-
19??? 250-
5b456975 20??? 250-
59371ea7
PH
21??? 250
22rset\r\nmail from:<userx@test.ex>\r\nrcpt to:<userx@test.ex>\r\ndata
23??? 250
24??? 250
25??? 250
26??? 354
27the message
563b63fa 28.\r\nmail from:<userx@test.ex>
59371ea7
PH
29+++ 1
30rcpt to:<userx@test.ex>\r\ndata\r\nthe message\r\nsecond line
31??? 250
32??? 250
33??? 250
34??? 554
35****
36sleep 1
37# This time, don't send EHLO
38client 127.0.0.1 PORT_D
39??? 220
40helo abcd
41??? 250
42mail from:<userx@test.ex>\r\nrcpt to:<userx@test.ex>
43??? 554
44****
45# This shouldn't get advertised pipelining
46client HOSTIPV4 PORT_D
47??? 220
48ehlo abcd
49??? 250-
50??? 250-
5b456975 51??? 250-
59371ea7
PH
52??? 250
53mail from:<userx@test.ex>\r\nrcpt to:<userx@test.ex>
54??? 554
55****
56# Check on unrecognized commands
57client HOSTIPV4 PORT_D
58??? 220
59junk0
60??? 500
61junk1\r\njunk2
62??? 554
63****
64# Check on RSET and QUIT
65client 127.0.0.1 PORT_D
66??? 220
67ehlo abcd
68??? 250-
69??? 250-
70??? 250-
5b456975 71??? 250-
59371ea7
PH
72??? 250
73rset\r\nquit
74??? 250
75??? 221
76****
77# Check on RSET and QUIT
78client HOSTIPV4 PORT_D
79??? 220
80ehlo abcd
81??? 250-
82??? 250-
5b456975 83??? 250-
59371ea7
PH
84??? 250
85rset\r\nquit
86??? 554
87****
88# This one disables the check dynamically
89client 127.0.0.1 PORT_D
90??? 220
91ehlo dis.able
92??? 250-
93??? 250-
94??? 250-
5b456975 95??? 250-
59371ea7
PH
96??? 250
97mail from:<userx@test.ex>\r\nrcpt to:<userx@test.ex>\r\ndata\r\nthe message\r\nsecond line
98.
99??? 250
100??? 250
101??? 354
102??? 250
103quit
104??? 221
105****
106killdaemon
107# In these next tests, PIPELINING is not advertised, and the server delays for
108# 1s before trying to send the banner to give the client time to send input.
109exim -DPAH= -DDELAY=1s -DSERVER=server -bd -oX PORT_D
110****
111# Send HELO without waiting for greeting
112client -t2 127.0.0.1 PORT_D
113helo abcd
114??? 554
115****
116# Disconnect without waiting for the greeting. This should
117# test the check for input that happens before sending the
118# banner (there was a bug at one point; missing error check).
119client -t2 127.0.0.1 PORT_D
120****
121killdaemon