1 # SMTP synchronization checks, with and without PIPELINING
4 exim -DSERVER=server -bd -oX PORT_D
6 client 127.0.0.1 PORT_D
8 ehlo abcd\r\nmail from:<userx@test.ex>
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.
13 client 127.0.0.1 PORT_D
21 rset\r\nmail from:<userx@test.ex>\r\nrcpt to:<userx@test.ex>\r\ndata
27 .\r\nmail from:<userx@test.ex>
29 rcpt to:<userx@test.ex>\r\ndata\r\nthe message\r\nsecond line
36 # This time, don't send EHLO
37 client 127.0.0.1 PORT_D
41 mail from:<userx@test.ex>\r\nrcpt to:<userx@test.ex>
44 # This shouldn't get advertised pipelining
45 client HOSTIPV4 PORT_D
52 mail from:<userx@test.ex>\r\nrcpt to:<userx@test.ex>
55 # Check on unrecognized commands
56 client HOSTIPV4 PORT_D
63 # Check on RSET and QUIT
64 client 127.0.0.1 PORT_D
76 # Check on RSET and QUIT
77 client HOSTIPV4 PORT_D
87 # This one disables the check dynamically
88 client 127.0.0.1 PORT_D
96 mail from:<userx@test.ex>\r\nrcpt to:<userx@test.ex>\r\ndata\r\nthe message\r\nsecond line
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.
108 exim -DPAH= -DDELAY=1s -DSERVER=server -bd -oX PORT_D
110 # Send HELO without waiting for greeting
111 client -t2 127.0.0.1 PORT_D
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).
118 client -t2 127.0.0.1 PORT_D