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