1 # SMTP synchronization checks, with and without PIPELINING
5 exim -DSERVER=server -bd -oX PORT_D
7 client 127.0.0.1 PORT_D
9 ehlo abcd\r\nmail from:<userx@test.ex>
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.
14 client 127.0.0.1 PORT_D
23 rset\r\nmail from:<userx@test.ex>\r\nrcpt to:<userx@test.ex>\r\ndata
29 .\r\nmail from:<userx@test.ex>
31 rcpt to:<userx@test.ex>\r\ndata\r\nthe message\r\nsecond line
38 # This time, don't send EHLO
39 client 127.0.0.1 PORT_D
43 mail from:<userx@test.ex>\r\nrcpt to:<userx@test.ex>
46 # This shouldn't get advertised pipelining
47 client HOSTIPV4 PORT_D
55 mail from:<userx@test.ex>\r\nrcpt to:<userx@test.ex>
58 # Check on unrecognized commands
59 client HOSTIPV4 PORT_D
66 # Check on RSET and QUIT
67 client 127.0.0.1 PORT_D
80 # Check on RSET and QUIT
81 client HOSTIPV4 PORT_D
92 # This one disables the check dynamically
93 client 127.0.0.1 PORT_D
102 mail from:<userx@test.ex>\r\nrcpt to:<userx@test.ex>\r\ndata\r\nthe message\r\nsecond line
112 # In these next tests, PIPELINING is not advertised, and the server delays for
113 # 1s before trying to send the banner to give the client time to send input.
114 exim -DPAH= -DDELAY=1s -DSERVER=server -bd -oX PORT_D
116 # Send HELO without waiting for greeting
117 client -t2 127.0.0.1 PORT_D
121 # Disconnect without waiting for the greeting. This should
122 # test the check for input that happens before sending the
123 # banner (there was a bug at one point; missing error check).
124 client -t2 127.0.0.1 PORT_D