Hi,

On Sun, 18 Jun 2006 09:20:53 +0000 Mick <[EMAIL PROTECTED]> wrote:

> On 17/06/06, Hans-Werner Hilse <[EMAIL PROTECTED]> wrote:
> > On Sat, 17 Jun 2006 23:09:57 +0200 Jarry <[EMAIL PROTECTED]> wrote:
> > > But what if mail-server uses secure connection (SSL) and secure
> > > authentication? Could I use ssh-client in such a case? Telnet
> > > would not help...
> >
> > The OpenSSL executable has this facility built-in. See "man
> > openssl-s_client" (it has a basic server, too).
> 
> Hmm . . .
> =====================================
> $ openssl s_client -host pop.gmai.com -port 110      CONNECTED(00000003)
> 16228:error:140770FC:SSL routines:SSL23_GET_SERVER_HELLO:unknown
> protocol:s23_clnt.c:601:
> =====================================
> 
> I guess it may only be good for checking the verification/exchange of SSL 
> certs?

Nope. It acts like a telnet client after establishing an SSL connection:
---snip
[EMAIL PROTECTED] ~ $ openssl s_client -connect pop.gmail.com:pop3s
CONNECTED(00000003)
[lots of info snipped]
+OK Gpop ready for requests from 123.45.67.89 n23pf2387435nfc
---snip

For your test case: POP3 is usually on port 110, POP3S is usually on
port 995. If the SSL connection isn't set up on connection level at
start, but on an application configured stage afterwards, however,
s_client wouldn't work. An example would be STARTTLS on IMAP (not
IMAPS) and SMTP.

-hwh
-- 
gentoo-user@gentoo.org mailing list

Reply via email to