Gnus development mailing list
 help / color / mirror / Atom feed
* Force STARTTLS connection with IMAP?
@ 2010-09-27 20:50 Joel J. Adamson
  2010-09-27 20:55 ` Lars Magne Ingebrigtsen
  2010-09-28 15:06 ` Joel James Adamson
  0 siblings, 2 replies; 4+ messages in thread
From: Joel J. Adamson @ 2010-09-27 20:50 UTC (permalink / raw)
  To: ding

[-- Attachment #1: Type: text/plain, Size: 1996 bytes --]

Hello Gnus Developers,

I have the following .gnus.el on two machines running Emacs from bzr[1]
on Fedora 13, connecting to a university IMAP server (Cyrus IMAP):

(setq gnus-select-method '(nntp "news.gwene.org"))
(setq imap-default-user "adamsonj")
;; gnus customization file
(setq gnus-secondary-select-methods
      '((nnimap "UNC"
		(nnimap-address "imap.unc.edu")
		(nnimap-server-port 143))))

(setq gnus-message-archive-method (car gnus-secondary-select-methods))
(setq gnus-message-archive-group "nnimap+UNC:INBOX.Sent")
(setq gnus-gcc-mark-as-read t)

Note that I have not specified `nnimap-stream'.  On my campus
workstation I see a slew of messages as Gnus tries to connect, which
settles on "Connecting with STARTTLS..." and everything proceeds
according to plan (i.e. Gnus connects, downloads messages, etc).  On my
home machine (off-campus), however I get

Opening nnimap server on UNC...
Opening TLS connection to `imap.unc.edu'...
Opening TLS connection with `gnutls-cli -p 143 imap.unc.edu'...failed
Opening TLS connection with `gnutls-cli -p 143 imap.unc.edu --protocols
ssl3'...failed
Opening TLS connection with `openssl s_client -connect imap.unc.edu:143
-no_ssl2 -ign_eof'...done

and then nothing happens (Emacs just sits there with no blinking
cursor).

My question is why doesn't the machine at home go through the same set
of protocols, and why does it arrive at a different solution?  Is there
a way to force it to use STARTTLS?  I tried specifying

(nnimap-stream starttls)

and it does exactly the same thing as when I leave it unspecified.

Evolution connects flawlessly from home[2].

Thanks for any help,

Joel

Footnotes: 
[1]  GNU Emacs 24.0.50.1 (i686-pc-linux-gnu, GTK+ Version 2.20.1)
 of 2010-09-25 
[2] And that's sad because I'd much rather use Gnus

-- 
Joel J. Adamson -- http://www.unc.edu/~adamsonj
University of North Carolina at Chapel Hill
CB #3280, Coker Hall
Chapel Hill, NC 27599-3280


[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 198 bytes --]

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

* Re: Force STARTTLS connection with IMAP?
  2010-09-27 20:50 Force STARTTLS connection with IMAP? Joel J. Adamson
@ 2010-09-27 20:55 ` Lars Magne Ingebrigtsen
  2010-09-28 15:13   ` Joel James Adamson
  2010-09-28 15:06 ` Joel James Adamson
  1 sibling, 1 reply; 4+ messages in thread
From: Lars Magne Ingebrigtsen @ 2010-09-27 20:55 UTC (permalink / raw)
  To: ding

"Joel J. Adamson" <adamsonj@email.unc.edu> writes:

> (setq gnus-secondary-select-methods
>       '((nnimap "UNC"
> 		(nnimap-address "imap.unc.edu")
> 		(nnimap-server-port 143))))

Add

(nnimap-stream starttls)

-- 
(domestic pets only, the antidote for overdose, milk.)
  larsi@gnus.org * Lars Magne Ingebrigtsen




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

* Re: Force STARTTLS connection with IMAP?
  2010-09-27 20:50 Force STARTTLS connection with IMAP? Joel J. Adamson
  2010-09-27 20:55 ` Lars Magne Ingebrigtsen
@ 2010-09-28 15:06 ` Joel James Adamson
  1 sibling, 0 replies; 4+ messages in thread
From: Joel James Adamson @ 2010-09-28 15:06 UTC (permalink / raw)
  To: ding

On Mon, 2010-09-27 at 16:50 -0400, Joel J. Adamson wrote:
> Hello Gnus Developers,
> 
> I have the following .gnus.el on two machines running Emacs from bzr[1]
> on Fedora 13, connecting to a university IMAP server (Cyrus IMAP):
[...]

Update (Lars, I have not read your message yet): I updated Emacs on the
office workstation and now they both fail with the same behavior.

Joel




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

* Re: Force STARTTLS connection with IMAP?
  2010-09-27 20:55 ` Lars Magne Ingebrigtsen
@ 2010-09-28 15:13   ` Joel James Adamson
  0 siblings, 0 replies; 4+ messages in thread
From: Joel James Adamson @ 2010-09-28 15:13 UTC (permalink / raw)
  To: Lars Magne Ingebrigtsen; +Cc: ding

On Mon, 2010-09-27 at 22:55 +0200, Lars Magne Ingebrigtsen wrote:
> "Joel J. Adamson" <adamsonj@email.unc.edu> writes:
> 
> > (setq gnus-secondary-select-methods
> >       '((nnimap "UNC"
> > 		(nnimap-address "imap.unc.edu")
> > 		(nnimap-server-port 143))))
> 
> Add
> 
> (nnimap-stream starttls)

I did.  It didn't work yesterday but it works now.  I will try it on the
32-bit machine at home tonight.  Saving my auth-credentials also worked.

Hopefully this will be my last message sent from Evolution.

Thanks,

Joel





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

end of thread, other threads:[~2010-09-28 15:13 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-09-27 20:50 Force STARTTLS connection with IMAP? Joel J. Adamson
2010-09-27 20:55 ` Lars Magne Ingebrigtsen
2010-09-28 15:13   ` Joel James Adamson
2010-09-28 15:06 ` Joel James Adamson

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).