Announcements and discussions for Gnus, the GNU Emacs Usenet newsreader
 help / color / mirror / Atom feed
* Trouble connecting with IMAP (Windows Emacs with Cygwin SSL/TLS tools)
@ 2008-08-16 14:22 Steven E. Harris
  2008-08-16 14:27 ` Steven E. Harris
  2008-12-23 22:59 ` Ted Zlatanov
  0 siblings, 2 replies; 5+ messages in thread
From: Steven E. Harris @ 2008-08-16 14:22 UTC (permalink / raw)
  To: info-gnus-english

I have a recent CVS snapshot of Gnus setup with the Cygwin XEmacs build
and the rest of the Cygwin tools (openssl, starttls) working just
fine. I can connect to various IMAP servers with encrypted connections.

Recently I set up a Windows build of Emacs (GNU Emacs 22.2.1) and I'm
trying to get Gnus to work with it similarly. Gnus is able to connect
(unencrypted) to NNTP servers, but all of my attempts to connect to IMAP
servers fail. I suspect it's a coding system problem with using Cygwin
programs to handle the encrypted connections.

Here's the *imap-log* buffer resulting from an attempted connection to
my IMAP server:

,----[ *imap-log* ]
| depth=0 /O=mail.panix.com/OU=Go to https://www.thawte.com/repository/index.html/OU=Thawte SSL123 certificate/OU=Domain Validated/CN=mail.panix.com
| verify error:num=20:unable to get local issuer certificate
| verify return:1
| depth=0 /O=mail.panix.com/OU=Go to https://www.thawte.com/repository/index.html/OU=Thawte SSL123 certificate/OU=Domain Validated/CN=mail.panix.com
| verify error:num=27:certificate not trusted
| verify return:1
| depth=0 /O=mail.panix.com/OU=Go to https://www.thawte.com/repository/index.html/OU=Thawte SSL123 certificate/OU=Domain Validated/CN=mail.panix.com
| verify error:num=21:unable to verify the first certificate
| verify return:1
| * OK [CAPABILITY IMAP4rev1 SASL-IR SORT THREAD=REFERENCES MULTIAPPEND UNSELECT LITERAL+ IDLE CHILDREN NAMESPACE LOGIN-REFERRALS QUOTA AUTH=PLAIN AUTH=LOGIN] Dovecot ready.
| 55 LOGOUT
| * BYE Logging out
| 55 OK Logout completed.
| read:errno=0
| 56 LOGIN "seh" "mypass"
`----

Some things look strange here. Not the "^M" terminators on the lines
sent and received from the server. Also note how one side logs out
/before/ it logs in.

Here's part of the *Messages* buffer during the login attempt:

,----[ *Messages* ]
| Checking new news...
| Opening nnimap server on panix...
| imap: Connecting to mail.panix.com...
| imap: Opening SSL connection with `openssl s_client -CApath /usr/ssl/certs -quiet -ssl3 -connect %s:%p'...done
| Waiting for response from mail.panix.com...done
| Parsing authinfo file `~/.authinfo'.
| imap: Plaintext authentication...
| Unable to open server due to: Buffer  *nnimap* panix has no process
| Unable to open nnimap:panix, go offline? (y or n) 
| Opening nnimap server on panix...failed
| Checking new news...done
`----

I see that there are the two variables `imap-coding-system-for-write'
and `imap-coding-system-for-read', which are set to `binary' by
default. Might resetting those be related to solving this problem?

Any advice would be appreciated.

-- 
Steven E. Harris

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2009-01-01 23:11 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-08-16 14:22 Trouble connecting with IMAP (Windows Emacs with Cygwin SSL/TLS tools) Steven E. Harris
2008-08-16 14:27 ` Steven E. Harris
2008-12-23 22:59 ` Ted Zlatanov
2008-12-24 15:20   ` Steven E. Harris
2009-01-01 23:11     ` Steven E. Harris

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).