Re: Cannot LOGIN using openssl s_client
Patrick Boutilier <[email protected]>
| Newsgroups | gmane.mail.imap.cyrus |
|---|---|
| Message-ID | <[email protected]> |
On 04/27/2018 10:56 AM, James B. Byrne via Info-cyrus wrote: > OS : CentOS-6.9 > Name : cyrus-imapd > Arch : x86_64 > Version : 2.3.16 > Release : 15.el6 > > We have a working Apache-2.2 /Squirrelmail-1.42 (SM) / Cyrus-IMAP-2.3 > (CI) setup. SM and CI reside on different hosts. We use TLS over > port 993 to communicate. The login mechanism is plaintext > authenticating against /etc/passwd. > > We are in the process of transitioning from this setup to one hosted > on FreeBSD and I am having problems getting SM on the new host to > connect to the existing CI service. To debug this I am using openssl > s_client as follows: > > openssl s_client \ > -connect imap.hamilton.harte-lyne.ca:993 \ > -CApath /usr/local/etc/pki/tls/certs > > Resulting in: > . . . > Start Time: 1524836386 > Timeout : 300 (sec) > Verify return code: 19 (self signed certificate in certificate chain) > --- > * OK [CAPABILITY IMAP4 IMAP4rev1 LITERAL+ ID AUTH=PLAIN SASL-IR > COMPRESS=DEFLATE] inet07.hamilton.harte-lyne.ca Cyrus IMAP > v2.3.16-Fedora-RPM-2.3.16-15.el6 server ready > > LOGIN testusermb testuserpw > LOGIN BAD Please login first > > According to the documentation the message LOGIN BAD means that the > arguments to the LOGIN command are not understood. But, as far as I > can discover, the LOGIN command only takes two arguments: user name > and password. > > I get the same results on both the new SM host and the old so the > issue is with my employment of s_client. How does one connect to a > mailbox using s_client? > > You need something at the start like a period . LOGIN testusermb testuserpw ---- Cyrus Home Page: http://www.cyrusimap.org/ List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/ To Unsubscribe: https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus
boutilpj.vcf
(text/x-vcard, 286 B)
begin:vcard fn:Patrick Boutilier n:Boutilier;Patrick org:;Nova Scotia Department of Education adr:;;2021 Brunswick Street;Halifax;NS;B3K 2Y5;Canada email;internet:[email protected] title:WAN Communications Specialist tel;work:902-424-6800 tel;fax:902-424-0874 version:2.1 end:vcard