From e971f26c759d286d0fbead6feaed7bbffa0bf363 Mon Sep 17 00:00:00 2001 From: Christoph Date: Sun, 3 Aug 2025 11:00:31 +0200 Subject: [PATCH] README.test_mailprotocolls: adjust / expand documentation. --- DOC/README.test_mailprotocolls | 27 ++++++++++++++++++++++++--- 1 file changed, 24 insertions(+), 3 deletions(-) diff --git a/DOC/README.test_mailprotocolls b/DOC/README.test_mailprotocolls index 4ec9022..59778ff 100644 --- a/DOC/README.test_mailprotocolls +++ b/DOC/README.test_mailprotocolls @@ -3,9 +3,15 @@ ## - some litle tests ## ## -------------------------------------- ## +## - ## - test smtp (STARTTLS), submission (587) (STARTTLS), smtp (SSL), ## - pop3 (SSL), pop3 (STARTTLS), imap (SSL) and imap (STARTTLS) ## - + +# --- +# test - localhost +# --- + openssl s_client -crlf -starttls smtp -connect localhost:25 [-state -debug] openssl s_client -crlf -starttls smtp -connect localhost:587 openssl s_client -crlf -connect localhost:465 @@ -15,9 +21,24 @@ openssl s_client -crlf -connect localhost:993 openssl s_client -crlf -starttls imap -connect localhost:143 +# --- +# tests - remote mailserver +# --- + +mailserver="mx.gemeinschaft-altenschlirf.de" + +openssl s_client -crlf -starttls smtp -connect ${mailserver}:25 [-state -debug] +openssl s_client -crlf -starttls smtp -connect ${mailserver}:587 +openssl s_client -crlf -connect ${mailserver}:465 +openssl s_client -crlf -connect ${mailserver}:995 +openssl s_client -crlf -starttls pop3 -connect ${mailserver}:110 +openssl s_client -crlf -connect ${mailserver}:993 +openssl s_client -crlf -starttls imap -connect ${mailserver}:143 + + # Test RSA based TLS connection # -echo "quit" | openssl s_client -connect a.mx.oopen.de:25 -starttls smtp -tls1_2 -cipher ECDHE-RSA-AES256-GCM-SHA384 +echo "quit" | openssl s_client -connect ${mailserver}:25 -starttls smtp -tls1_2 -cipher ECDHE-RSA-AES256-GCM-SHA384 -echo "quit" | openssl s_client -connect a.mx.oopen.de:25 -starttls smtp -tls1_2 -echo "quit" | openssl s_client -connect a.mx.oopen.de:25 -starttls smtp +echo "quit" | openssl s_client -connect ${mailserver}:25 -starttls smtp -tls1_2 +echo "quit" | openssl s_client -connect ${mailserver}:25 -starttls smtp