2 exim -DSERVER=server -bd -oX PORT_D
5 # plain, small message (no body)
6 client 127.0.0.1 PORT_D
15 mail from:someone@some.domain
17 rcpt to:CALLER@test.ex
22 Subject: This is a bodyless test message
30 # plain, small message (with body)
31 # nonlast 1st bdat, noop, last-bdat(0)
32 # immediate followon 2nd message
33 client 127.0.0.1 PORT_D
42 mail from:someone@some.domain
44 rcpt to:CALLER@test.ex
49 Subject: This is a bodyfull test message
58 mail from:someone@some.domain
60 rcpt to:CALLER@test.ex
63 To: Susan@bdat 78 last
67 Subject: This is a bodyless test message
75 # not enough data in chunk
77 client 127.0.0.1 PORT_D
86 mail from:someone@some.domain
88 rcpt to:CALLER@test.ex
93 Subject: This is a bodyless test message
98 # protocol failure cases
100 client 127.0.0.1 PORT_D
109 mail from:someone@some.domain
111 rcpt to:CALLER@test.ex
116 Subject: This is a bodyless test message
125 # followon EHLO and another message
126 client 127.0.0.1 PORT_D
135 mail from:someone@some.domain
137 rcpt to:CALLER@test.ex
142 Subject: This is a bodyless test message
156 mail from:someone@some.domain
158 rcpt to:CALLER@test.ex
163 Subject: This is a bodyless test message
174 # plain, small message (no body)
176 client 127.0.0.1 PORT_D
185 MAIL FROM:<someone@some.domain>\r\nRCPT TO:<CALLER@test.ex>\r\nBDAT 88 LAST\r\nTo: Susan@random.com\r\nFrom: Sam@random.com\r\nSubject: This is a bodyless test message\r\n
194 # plain, longer message (xple chunks), RCPT rejected
196 client 127.0.0.1 PORT_D
205 MAIL FROM:<someone@some.domain>\r\nRCPT TO:<dummy@reject.ex>\r\nBDAT 86\r\nTo: Susan@random.com\r\nFrom: Sal@random.com\r\nSubject: This is a bodyless test message\r\nBDAT 6 LAST\r\nZZ\r\n
218 # plain, small message (no body)
219 # header line with bad line-ending
220 client 127.0.0.1 PORT_D
229 mail from:someone@some.domain
231 rcpt to:CALLER@test.ex
234 >>> To: Susan@random.com\n
236 Subject: This is a Bodyless test message