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