250 OK
RCPT TO
250 OK
-BDAT 317
-*data 317
+BDAT 295
+*data 295
250 OK nonlast bdat
BDAT 8380 LAST
*data 8380
225 OK
*eof
****
-exim -odf a@test.ex
+sudo exim -odf -bS
+EHLO
+MAIL FROM:<sender@dom>
+RCPT TO:<a@test.ex>
+DATA
Subject: foo
1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890
1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890
1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890
+.
+QUIT
****
#
#
250 OK
RCPT TO
250 OK
-BDAT 317
-*data 317
+BDAT 295
+*data 295
500 oops bdat-nonlast
QUIT
225 OK
****
-exim -odf d@test.ex
+sudo exim -odf -bS
+EHLO
+MAIL FROM:<sender@dom>
+RCPT TO:<d@test.ex>
+DATA
Subject: foo
1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890
1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890
1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890
+.
+QUIT
****
#
#
250 CHUNKING
MAIL FROM
RCPT TO
-BDAT 317
+BDAT 295
250 OK mail
250 OK rcpt
-*data 317
+*data 295
250 OK nonlast bdat
BDAT 8380 LAST
*data 8380
225 OK
*eof
****
-exim -odf p@test.ex
+sudo exim -odf -bS
+EHLO
+MAIL FROM:<sender@dom>
+RCPT TO:<p@test.ex>
+DATA
Subject: foo
1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890
1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890
1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890
+.
+QUIT
****
#
# server rejects MAIL cmd
250 CHUNKING
MAIL FROM
RCPT TO
-BDAT 317
-*data 317
+BDAT 295
+*data 295
550 unacceptable mail-from
550 rcpt ungood lacking mail-from
500 bdat (nonlast) ungood lacking mail-from
QUIT
225 OK
****
-exim -odf s@test.ex
+sudo exim -odf -bS
+EHLO
+MAIL FROM:<sender@dom>
+RCPT TO:<s@test.ex>
+DATA
Subject: foo
1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890
1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890
1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890
+.
+QUIT
****
#
# server rejects RCPT cmd
250 CHUNKING
MAIL FROM
RCPT TO
-BDAT 317
-*data 317
+BDAT 295
+*data 295
250 OK mail
550 no such recipient
500 oops nonlast bdat - no rcpt
QUIT
225 OK
****
-exim -odf t@test.ex
+sudo exim -odf -bS
+EHLO
+MAIL FROM:<sender@dom>
+RCPT TO:<t@test.ex>
+DATA
Subject: foo
1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890
1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890
1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890
+.
+QUIT
****
#
# server rejects 1st RCPT cmd of two
MAIL FROM
RCPT TO
RCPT TO
-BDAT 301
-*data 301
+BDAT 279
+*data 279
250 OK mail
550 no such recipient
250 good recipient
QUIT
225 OK
****
-exim -odf t1@test.ex t2@test.ex
+sudo exim -odf -bS
+EHLO
+MAIL FROM:<sender@dom>
+RCPT TO:<t1@test.ex>
+RCPT TO:<t2@test.ex>
+DATA
Subject: foo
1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890
1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890
1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890
+.
+QUIT
****
#
# server rejects initial BDAT cmd
250 CHUNKING
MAIL FROM
RCPT TO
-BDAT 317
-*data 317
+BDAT 295
+*data 295
250 OK mail
250 OK rcpt
500 oops nonlast bdat
QUIT
225 OK
****
-exim -odf u@test.ex
+sudo exim -odf -bS
+EHLO
+MAIL FROM:<sender@dom>
+RCPT TO:<u@test.ex>
+DATA
Subject: foo
1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890
1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890
1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890
+.
+QUIT
****
#
# server rejects final BDAT cmd
250 CHUNKING
MAIL FROM
RCPT TO
-BDAT 317
-*data 317
+BDAT 295
+*data 295
250 OK mail
250 OK rcpt
250 OK nonlast bdat
QUIT
225 OK
****
-exim -odf v@test.ex
+sudo exim -odf -bS
+EHLO
+MAIL FROM:<sender@dom>
+RCPT TO:<v@test.ex>
+DATA
Subject: foo
1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890
1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890
1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890
+.
+QUIT
****
#
# message with long headers
250 OK rcpt
*data 8191
250 OK nonlast bdat
-BDAT 829 LAST
-*data 829
+BDAT 807 LAST
+*data 807
250 OK bdat
QUIT
225 OK
*eof
****
-exim -odf p@test.ex
+sudo exim -odf -bS
+EHLO
+MAIL FROM:<sender@dom>
+RCPT TO:<p@test.ex>
+DATA
Subject: foo
X-long_hdr: 0
1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890
body
1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890
1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890
+.
+QUIT
****
#
#