diff --git a/src/request/receiver.rs b/src/request/receiver.rs index fb8e040..5d74034 100644 --- a/src/request/receiver.rs +++ b/src/request/receiver.rs @@ -261,6 +261,67 @@ mod tests { vec!["\r\na\rb\nc\r\n.d\r\n..\r\n", "\r\n.\r\n"], "\r\na\rb\nc\r\nd\r\n.\r\n", ), + // Test SMTP smuggling attempts + ( + vec![ + "\n.\r\n", + "MAIL FROM:\r\n", + "RCPT TO:\r\n", + "RCPT TO:\r\n", + "RCPT TO:\r\n", + "RCPT TO:\r\n", + "RCPT TO:\r\n", + "RCPT TO:\r\n", + "RCPT TO:\r\n", + "RCPT TO: