-
-
Notifications
You must be signed in to change notification settings - Fork 6.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tests: test secure mail protocols with explicit SSL requests
New tests 987, 988 and 989, disabled for rustls (hanging). Closes #10077
- Loading branch information
Showing
5 changed files
with
152 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -95,6 +95,9 @@ | |
407 | ||
408 | ||
409 | ||
987 | ||
988 | ||
989 | ||
1112 | ||
1272 | ||
%endif | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
<testcase> | ||
<info> | ||
<keywords> | ||
SMTPS | ||
</keywords> | ||
</info> | ||
|
||
# | ||
# Server-side | ||
<reply> | ||
</reply> | ||
|
||
# | ||
# Client-side | ||
<client> | ||
<server> | ||
smtps | ||
</server> | ||
<name> | ||
SMTPS with redundant explicit SSL request | ||
</name> | ||
<stdin> | ||
From: different | ||
To: another | ||
|
||
body | ||
</stdin> | ||
<command> | ||
-k --ssl-reqd --mail-rcpt recipient@example.com --mail-from sender@example.com -T - smtps://%HOSTIP:%SMTPSPORT/%TESTNUMBER | ||
</command> | ||
</client> | ||
|
||
# | ||
# Verify data after the test has been "shot" | ||
<verify> | ||
<protocol> | ||
EHLO %TESTNUMBER | ||
MAIL FROM:<sender@example.com> | ||
RCPT TO:<recipient@example.com> | ||
DATA | ||
QUIT | ||
</protocol> | ||
<upload> | ||
From: different | ||
To: another | ||
|
||
body | ||
. | ||
</upload> | ||
</verify> | ||
</testcase> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
<testcase> | ||
<info> | ||
<keywords> | ||
IMAPS | ||
FETCH | ||
</keywords> | ||
</info> | ||
|
||
# | ||
# Server-side | ||
<reply> | ||
<data> | ||
From: me@somewhere | ||
To: fake@nowhere | ||
|
||
body | ||
|
||
-- | ||
yours sincerely | ||
</data> | ||
</reply> | ||
|
||
# | ||
# Client-side | ||
<client> | ||
<server> | ||
imaps | ||
</server> | ||
<name> | ||
IMAPS FETCH with redundant explicit SSL request | ||
</name> | ||
<command> | ||
-k --ssl-reqd -u '"user:sec"ret{' 'imaps://%HOSTIP:%IMAPSPORT/%TESTNUMBER/;MAILINDEX=1' | ||
</command> | ||
</client> | ||
|
||
# | ||
# Verify data after the test has been "shot" | ||
<verify> | ||
<protocol> | ||
A001 CAPABILITY | ||
A002 LOGIN "\"user" "sec\"ret{" | ||
A003 SELECT %TESTNUMBER | ||
A004 FETCH 1 BODY[] | ||
A005 LOGOUT | ||
</protocol> | ||
</verify> | ||
</testcase> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
<testcase> | ||
<info> | ||
<keywords> | ||
POP3S | ||
RETR | ||
</keywords> | ||
</info> | ||
|
||
# | ||
# Server-side | ||
<reply> | ||
<data> | ||
From: me@somewhere | ||
To: fake@nowhere | ||
|
||
body | ||
|
||
-- | ||
yours sincerely | ||
</data> | ||
</reply> | ||
|
||
# | ||
# Client-side | ||
<client> | ||
<server> | ||
pop3s | ||
</server> | ||
<name> | ||
POP3S RETR with redundant explicit SSL request | ||
</name> | ||
<command> | ||
-k --ssl-reqd -u user:secret pop3s://%HOSTIP:%POP3SPORT/%TESTNUMBER | ||
</command> | ||
</client> | ||
|
||
# | ||
# Verify data after the test has been "shot" | ||
<verify> | ||
<protocol> | ||
CAPA | ||
USER user | ||
PASS secret | ||
RETR %TESTNUMBER | ||
QUIT | ||
</protocol> | ||
</verify> | ||
</testcase> |