From afbcfc4f46b9dfed2a62b765b48455d7b7d631a2 Mon Sep 17 00:00:00 2001 From: Steve Holme Date: Sun, 30 Mar 2014 14:55:27 +0100 Subject: tests: Added email unit tests to verify login credential connection re-use --- tests/data/test938 | 63 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 63 insertions(+) create mode 100644 tests/data/test938 (limited to 'tests/data/test938') diff --git a/tests/data/test938 b/tests/data/test938 new file mode 100644 index 000000000..5f7a715c8 --- /dev/null +++ b/tests/data/test938 @@ -0,0 +1,63 @@ + + + +SMTP +SASL +SASL AUTH PLAIN +connection re-use +RFC4616 +RFC4954 + + + +# +# Server-side + + +AUTH PLAIN +REPLY AUTH 334 PLAIN supported +REPLY dXNlci5vbmUAdXNlci5vbmUAc2VjcmV0 235 Authenticated +REPLY dXNlci50d28AdXNlci50d28Ac2VjcmV0 235 Authenticated + + + +# +# Client-side + + +smtp + + +SMTP multiple connection authentication + + +mail body + + +smtp://%HOSTIP:%SMTPPORT/938001 --mail-rcpt recipient@example.com --mail-from sender@example.com -u user.one:secret -T - -: smtp://%HOSTIP:%SMTPPORT/938002 --mail-rcpt recipient@example.com --mail-from sender@example.com -u user.two:secret -T - + + + +# +# Verify data after the test has been "shot" + + +EHLO 938001 +AUTH PLAIN +dXNlci5vbmUAdXNlci5vbmUAc2VjcmV0 +MAIL FROM: +RCPT TO: +DATA +QUIT +EHLO 938002 +AUTH PLAIN +dXNlci50d28AdXNlci50d28Ac2VjcmV0 +MAIL FROM: +RCPT TO: +DATA +QUIT + + +mail body +. + -- cgit v1.2.3