exim -DSERVER=server -bd -oX PORT_D
****
#
+# plain, small message (no body)
client 127.0.0.1 PORT_D
??? 220
ehlo tester
??? 250-
-??? 250-
-??? 250-
-??? 250-
+??? 250-SIZE
+??? 250-8BITMIME
+??? 250-PIPELINING
??? 250-CHUNKING
??? 250 HELP
mail from:someone@some.domain
??? 250
-rcpt to:CALLER@HOSTNAME
+rcpt to:CALLER@test.ex
??? 250
bdat 88 last
To: Susan@random.com
??? 221
****
#
+# plain, small message (with body)
+# nonlast 1st bdat, noop, last-bdat(0)
+# immediate followon 2nd message
client 127.0.0.1 PORT_D
??? 220
ehlo tester
??? 250
mail from:someone@some.domain
??? 250
-rcpt to:CALLER@HOSTNAME
+rcpt to:CALLER@test.ex
??? 250
bdat 100
To: Susan@random.com
??? 250
mail from:someone@some.domain
??? 250
-rcpt to:CALLER@HOSTNAME
+rcpt to:CALLER@test.ex
??? 250
bdat 10
To: Susan@bdat 78 last
??? 250
mail from:someone@some.domain
??? 250
-rcpt to:CALLER@HOSTNAME
+rcpt to:CALLER@test.ex
??? 250
bdat 89 last
To: Susan@random.com
??? 250
mail from:someone@some.domain
??? 250
-rcpt to:CALLER@HOSTNAME
+rcpt to:CALLER@test.ex
??? 250
bdat 88
To: Susan@random.com
??? 221
****
#
+# followon EHLO and another message
client 127.0.0.1 PORT_D
??? 220
ehlo tester
??? 250
mail from:someone@some.domain
??? 250
-rcpt to:CALLER@HOSTNAME
+rcpt to:CALLER@test.ex
??? 250
bdat 88
To: Susan@random.com
??? 250
mail from:someone@some.domain
??? 250
-rcpt to:CALLER@HOSTNAME
+rcpt to:CALLER@test.ex
??? 250
bdat 88
To: Susan@random.com
??? 221
****
#
+# plain, small message (no body)
+# pipelined
+client 127.0.0.1 PORT_D
+??? 220
+EHLO tester
+??? 250-
+??? 250-SIZE
+??? 250-8BITMIME
+??? 250-PIPELINING
+??? 250-CHUNKING
+??? 250 HELP
+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
+??? 250
+??? 250
+??? 250-
+??? 250
+quit
+??? 221
+****
+#
+# plain, longer message (xple chunks), RCPT rejected
+# pipelined
+client 127.0.0.1 PORT_D
+??? 220
+EHLO tester
+??? 250-
+??? 250-SIZE
+??? 250-8BITMIME
+??? 250-PIPELINING
+??? 250-CHUNKING
+??? 250 HELP
+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
+??? 250
+??? 550
+??? 503-
+??? 503-
+??? 503
+??? 503-
+??? 503-
+??? 503
+quit
+??? 221
+****
+#
+# plain, small message (no body)
+# header line with bad line-ending
+client 127.0.0.1 PORT_D
+??? 220
+ehlo tester
+??? 250-
+??? 250-SIZE
+??? 250-8BITMIME
+??? 250-PIPELINING
+??? 250-CHUNKING
+??? 250 HELP
+mail from:someone@some.domain
+??? 250
+rcpt to:CALLER@test.ex
+??? 250
+bdat 87 last
+>>> To: Susan@random.com\n
+From: Sam@random.com
+Subject: This is a Bodyless test message
+
+??? 552
+quit
+??? 221
+****
+#
+#
killdaemon
no_msglog_check