X-Git-Url: https://git.exim.org/exim.git/blobdiff_plain/462e2cd30639a1b0e9c7d9d08d70e124a147531b..9bf74b9c298f6968417fe88a68ccdf2179db1403:/test/scripts/0000-Basic/0900 diff --git a/test/scripts/0000-Basic/0900 b/test/scripts/0000-Basic/0900 index a8d2b0539..49959a96f 100644 --- a/test/scripts/0000-Basic/0900 +++ b/test/scripts/0000-Basic/0900 @@ -260,7 +260,7 @@ quit ??? 221 **** # -# Two rejected messages, pipielined, REST between +# Two rejected messages, pipielined, RSET between client 127.0.0.1 PORT_D ??? 220 EHLO tester @@ -296,6 +296,31 @@ quit ??? 221 **** # +# Two messages, pipielined, 1st abandoned midway, RSET between +client 127.0.0.1 PORT_D +??? 220 +EHLO tester +??? 250- +??? 250-SIZE +??? 250-8BITMIME +??? 250-PIPELINING +??? 250-CHUNKING +??? 250 HELP +MAIL FROM:\r\nRCPT TO:\r\nBDAT 86\r\nTo: Susan@random.com\r\nFrom: Sa5@random.com\r\nSubject: This is a bodyless test message\r\nRSET +??? 250 OK +??? 250 Accepted +??? 250 86 byte chunk received +??? 250 Reset OK +MAIL FROM:\r\nRCPT TO:\r\nBDAT 86\r\nTo: Susan@random.com\r\nFrom: Sa6@random.com\r\nSubject: This is a bodyless test message\r\nBDAT 6 LAST\r\nZZ\r\n +??? 250 OK +??? 250 Accepted +??? 250 86 byte chunk received +??? 250- 6 byte chunk, total 93 +??? 250 OK +QUIT +??? 221 +**** +# # # plain, small message (no body) # header line with bad line-ending @@ -348,6 +373,39 @@ quit ??? 221 **** # +# Test for smtp-smuggling. Accepting only one message is good; two is bad. +client 127.0.0.1 PORT_D +??? 220 +ehlo smuggler +??? 250- +??? 250-SIZE +??? 250-8BITMIME +??? 250-PIPELINING +??? 250-CHUNKING +??? 250 HELP +MAIL FROM: +??? 250 +RCPT TO: +??? 250 +DATA +??? 354 +Subject: test of smuggled smtp + +This is body for initial message +The next line is a bogus end-of-data attempt, followed by a try at a smuggled message: +>>> .\n +mail from: +rcpt to: +bdat 86 last +Subject: send me all your money! + +All your base are belong to us. Send Bitcoins. +QUIT +. +??? 250 +QUIT +??? 221 +**** # killdaemon no_msglog_check