Announcements and discussions for Gnus, the GNU Emacs Usenet newsreader
 help / color / mirror / Atom feed
* Problem with IMAP against MS Exchange 2007
@ 2007-05-30 13:01 Bjørn-Helge Mevik
  2007-05-30 13:42 ` Rainer Koenig
  0 siblings, 1 reply; 3+ messages in thread
From: Bjørn-Helge Mevik @ 2007-05-30 13:01 UTC (permalink / raw)
  To: info-gnus-english

At work, they have just started using an MS Exchange 2007 as mail
server, and now I cannot get my mail in Gnus.

I'm using Gnus 5.10.8 in GNU Emacs 21.3.1 under Redhat EL WS 4 on a Dell
x86_64 computer.

I am able to read and send mail with Thunderbird, using IMAP with SSL
against the Exchange server, but would prefer to continue using Gnus.

When starting gnus, I get several messages like "6 BAD The specified
message set is invalid.", and finally "Process imap not running".  See
the contents of the .gnus.el file, the *Messages* and *imap-log*
buffers below.


Does anyone know what is wrong, and how I can fix it?



********************************

Here is my .gnus.el file (I used almost exactly the same settings
against the old IMAP server (not an MS Exchange server), and it worked
like a charm):

********************************
;; IMAP related settings:

;; Degub imap:
(setq imap-log t)
(setq
 gnus-select-method '(nnimap "umb"
			     (nnimap-address "exch01.ans.umb.no")
			     (nnimap-stream ssl)
			     (nnimap-authenticator login)
			     )
 )

;; Probably irrellevant settings:
(add-hook 'gnus-group-mode-hook 'gnus-topic-mode)
(setq gnus-group-line-format "%m%M%S%p%P%5y: %(%G%)\n"
      gnus-permanently-visible-groups "nnfolder\\|nnml\\|nnimap")
(add-hook 'gnus-summary-mode-hook 'bhm-alter-summary-map)
(defun bhm-alter-summary-map ()
  (local-set-key "E" 'gnus-summary-put-mark-as-expirable-next))
(setq user-mail-address "bjorn-helge.mevik@umb.no"
      user-full-name "Bjørn-Helge Mevik"
)
(setq
 nnmail-use-long-file-names t
 nnmail-cache-accepted-message-ids t
 mm-verify-option 'known
 mm-decrypt-option 'known
 gnus-buttonized-mime-types '("multipart/signed" "multipart/encrypted")
 mm-text-html-renderer 'html2text
 mm-discouraged-alternatives '("text/html" "text/richtext")
)
********************************

Here is the (relevant part of the) *Messages* buffer after M-x gnus:

********************************
Loading gnus-agent...done
imap: Connecting to exch01.ans.umb.no...
imap: Opening SSL connection with `openssl s_client -quiet -ssl3 -connect %s:%p'...done
Waiting for response from exch01.ans.umb.no...done
Parsing authinfo file `~/.authinfo'.
imap: Plaintext authentication...
Loading bbdb-gnus...done
Reading /home/bhm/.newsrc.eld...
Reading active file from umb via nnimap...
nnimap: Checking mailboxes...
Loading utf7...done
nnimap: Mailbox INBOX modified
nnimap: Mailbox INBOX/Inbox modified
nnimap: Checking mailboxes...done
nnimap: Listing subscribed mailboxes on umb...
imap-send-command-1: Process imap not running
********************************

And here is the contents of the *imap-log* buffer (username and
password have been masked, and "^M"s have been stripped):

********************************
depth=0 /O=exch01.ans.umb.no/OU=Go to https://www.thawte.com/repository/index.html/OU=Thawte SSL123 certificate/OU=Domain Validated/CN=exch01.ans.umb.no
verify error:num=20:unable to get local issuer certificate
verify return:1
depth=0 /O=exch01.ans.umb.no/OU=Go to https://www.thawte.com/repository/index.html/OU=Thawte SSL123 certificate/OU=Domain Validated/CN=exch01.ans.umb.no
verify error:num=27:certificate not trusted
verify return:1
depth=0 /O=exch01.ans.umb.no/OU=Go to https://www.thawte.com/repository/index.html/OU=Thawte SSL123 certificate/OU=Domain Validated/CN=exch01.ans.umb.no
verify error:num=21:unable to verify the first certificate
verify return:1
* OK Microsoft Exchange Server 2007 IMAP4 service ready
1 CAPABILITY
* CAPABILITY IMAP4 IMAP4rev1 AUTH=NTLM AUTH=GSSAPI IDLE NAMESPACE LITERAL+
1 OK CAPABILITY completed.
2 LOGIN "myusername" "mypassword"
2 OK LOGIN completed.
3 STATUS "INBOX/Inbox" (uidvalidity uidnext unseen)
4 STATUS "INBOX" (uidvalidity uidnext unseen)
5 EXAMINE "INBOX"
* STATUS INBOX/Inbox (uidvalidity 136449 uidnext 673 unseen 584) 
3 OK STATUS completed.
* STATUS INBOX (uidvalidity 136403 uidnext 160 unseen 0) 
4 OK STATUS completed.
* 138 EXISTS
* 0 RECENT
* FLAGS (\Seen \Answered \Flagged \Deleted \Draft $MDNSent)
* OK [PERMANENTFLAGS ()] Permanent flags
* OK [UIDVALIDITY 136403] UIDVALIDITY value
* OK [UIDNEXT 160] The next unique identifier value
5 OK [READ-ONLY] EXAMINE completed.
6 FETCH 1,* UID
6 BAD The specified message set is invalid.
7 STATUS "INBOX" (UIDNEXT)
* STATUS INBOX (UIDNEXT 160) 
7 OK STATUS completed.
8 STATUS "INBOX" (UNSEEN)
* STATUS INBOX (UNSEEN 0) 
8 OK STATUS completed.
9 EXAMINE "INBOX/Inbox"
* 635 EXISTS
* 0 RECENT
* FLAGS (\Seen \Answered \Flagged \Deleted \Draft $MDNSent)
* OK [PERMANENTFLAGS ()] Permanent flags
* OK [UNSEEN 13] Is the first unseen message
* OK [UIDVALIDITY 136449] UIDVALIDITY value
* OK [UIDNEXT 673] The next unique identifier value
9 OK [READ-ONLY] EXAMINE completed.
10 FETCH 1,* UID
10 BAD The specified message set is invalid.
11 STATUS "INBOX/Inbox" (UIDNEXT)
* STATUS INBOX/Inbox (UIDNEXT 673) 
11 OK STATUS completed.
12 STATUS "INBOX/Inbox" (UNSEEN)
* STATUS INBOX/Inbox (UNSEEN 584) 
12 OK STATUS completed.
13 LSUB "" "*%"
* LSUB () "/" Trash
* LSUB () "/" INBOX/Inbox
* LSUB () "/" Sent
* LSUB () "/" INBOX/Inbox/Ewos
* LSUB () "/" INBOX/Inbox/THARG
* LSUB () "/" INBOX/Inbox/ffmanova
* LSUB () "/" INBOX/Inbox/konferanser
* LSUB () "/" INBOX/Inbox/lspls
* LSUB () "/" INBOX/Inbox/melk
* LSUB () "/" INBOX/Inbox/nsf
* LSUB () "/" INBOX/Inbox/prot
* LSUB () "/" INBOX/Inbox/stat300_v2007
* LSUB () "/" INBOX/Inbox/moro
* LSUB () "/" INBOX/Inbox/data
* LSUB () "/" INBOX/Inbox/maldioptim
* LSUB () "/" INBOX/Inbox/specmod
13 OK LSUB completed.
14 EXAMINE "INBOX/Inbox/melk"
* 98 EXISTS
* 98 RECENT
* FLAGS (\Seen \Answered \Flagged \Deleted \Draft $MDNSent)
* OK [PERMANENTFLAGS ()] Permanent flags
* OK [UIDVALIDITY 136472] UIDVALIDITY value
* OK [UIDNEXT 99] The next unique identifier value
14 OK [READ-ONLY] EXAMINE completed.
15 FETCH 1,* UID
15 BAD The specified message set is invalid.
16 EXAMINE "INBOX/Inbox/moro"
* 2 EXISTS
* 2 RECENT
* FLAGS (\Seen \Answered \Flagged \Deleted \Draft $MDNSent)
* OK [PERMANENTFLAGS ()] Permanent flags
* OK [UIDVALIDITY 136473] UIDVALIDITY value
* OK [UIDNEXT 3] The next unique identifier value
16 OK [READ-ONLY] EXAMINE completed.
17 FETCH 1,* UID
17 BAD The specified message set is invalid.
18 EXAMINE "INBOX/Inbox/nsf"
* 117 EXISTS
* 117 RECENT
* FLAGS (\Seen \Answered \Flagged \Deleted \Draft $MDNSent)
* OK [PERMANENTFLAGS ()] Permanent flags
* OK [UIDVALIDITY 136474] UIDVALIDITY value
* OK [UIDNEXT 119] The next unique identifier value
18 OK [READ-ONLY] EXAMINE completed.
19 FETCH 1,* UID
19 BAD The specified message set is invalid.
20 EXAMINE "INBOX/Inbox/lspls"
* 140 EXISTS
* 0 RECENT
* FLAGS (\Seen \Answered \Flagged \Deleted \Draft $MDNSent)
* OK [PERMANENTFLAGS ()] Permanent flags
* OK [UNSEEN 140] Is the first unseen message
* OK [UIDVALIDITY 136468] UIDVALIDITY value
* OK [UIDNEXT 141] The next unique identifier value
20 OK [READ-ONLY] EXAMINE completed.
21 FETCH 1,* UID
21 BAD The specified message set is invalid.
22 EXAMINE "INBOX/Inbox/ffmanova"
* 58 EXISTS
* 58 RECENT
* FLAGS (\Seen \Answered \Flagged \Deleted \Draft $MDNSent)
* OK [PERMANENTFLAGS ()] Permanent flags
* OK [UIDVALIDITY 136456] UIDVALIDITY value
* OK [UIDNEXT 59] The next unique identifier value
22 OK [READ-ONLY] EXAMINE completed.
23 FETCH 1,* UID
23 BAD The specified message set is invalid.
24 EXAMINE "INBOX/Inbox/konferanser"
* 73 EXISTS
* 3 RECENT
* FLAGS (\Seen \Answered \Flagged \Deleted \Draft $MDNSent)
* OK [PERMANENTFLAGS ()] Permanent flags
* OK [UIDVALIDITY 136465] UIDVALIDITY value
* OK [UIDNEXT 76] The next unique identifier value
24 OK [READ-ONLY] EXAMINE completed.
25 FETCH 1,* UID
25 BAD The specified message set is invalid.
26 EXAMINE "INBOX/Inbox"
* 635 EXISTS
* 0 RECENT
* FLAGS (\Seen \Answered \Flagged \Deleted \Draft $MDNSent)
* OK [PERMANENTFLAGS ()] Permanent flags
* OK [UNSEEN 13] Is the first unseen message
* OK [UIDVALIDITY 136449] UIDVALIDITY value
* OK [UIDNEXT 673] The next unique identifier value
26 OK [READ-ONLY] EXAMINE completed.
27 FETCH 1,* UID
27 BAD The specified message set is invalid.
28 EXAMINE "INBOX/Inbox/THARG"
* 41 EXISTS
* 0 RECENT
* FLAGS (\Seen \Answered \Flagged \Deleted \Draft $MDNSent)
* OK [PERMANENTFLAGS ()] Permanent flags
* OK [UIDVALIDITY 136486] UIDVALIDITY value
* OK [UIDNEXT 42] The next unique identifier value
28 OK [READ-ONLY] EXAMINE completed.
29 FETCH 1,* UID
29 BAD The specified message set is invalid.
read:errno=0
30 EXAMINE "Trash"
********************************

-- 
Bjørn-Helge Mevik

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

* Re: Problem with IMAP against MS Exchange 2007
  2007-05-30 13:01 Problem with IMAP against MS Exchange 2007 Bjørn-Helge Mevik
@ 2007-05-30 13:42 ` Rainer Koenig
  2007-05-30 14:12   ` Bjørn-Helge Mevik
  0 siblings, 1 reply; 3+ messages in thread
From: Rainer Koenig @ 2007-05-30 13:42 UTC (permalink / raw)
  To: info-gnus-english

usenet6@mevik.net (Bjørn-Helge Mevik) writes:

> At work, they have just started using an MS Exchange 2007 as mail
> server, and now I cannot get my mail in Gnus.

> Does anyone know what is wrong, and how I can fix it?

Talk to the admin of the Exchange server. AFAIK the IMAP interface
is disabled by default and someone has to *enable* it. Otherwise
no IMAP. 

HTH
Rainer (using IMAP/SSH on Exchange 2007 with Gnus at work)
-- 
* The message above is a PERSONAL opinion, based on the author's  *
* experience and knowledge. So it's NOT necessarily shared by my  *
* employer or anyone else. All rights of being wrong reserved :-) *

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

* Re: Problem with IMAP against MS Exchange 2007
  2007-05-30 13:42 ` Rainer Koenig
@ 2007-05-30 14:12   ` Bjørn-Helge Mevik
  0 siblings, 0 replies; 3+ messages in thread
From: Bjørn-Helge Mevik @ 2007-05-30 14:12 UTC (permalink / raw)
  To: info-gnus-english

Rainer Koenig wrote:

> usenet6@mevik.net (Bjørn-Helge Mevik) writes:
>
>> At work, they have just started using an MS Exchange 2007 as mail
>> server, and now I cannot get my mail in Gnus.
>
>> Does anyone know what is wrong, and how I can fix it?
>
> Talk to the admin of the Exchange server. AFAIK the IMAP interface
> is disabled by default and someone has to *enable* it. Otherwise
> no IMAP. 

Thanks for the tip.  But I think IMAP has been enabled already, because
Gnus is able to connect, and list the folders on the server.  And I do
use IMAP with Thunderbird against the server.

-- 
Bjørn-Helge Mevik

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

end of thread, other threads:[~2007-05-30 14:12 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-05-30 13:01 Problem with IMAP against MS Exchange 2007 Bjørn-Helge Mevik
2007-05-30 13:42 ` Rainer Koenig
2007-05-30 14:12   ` Bjørn-Helge Mevik

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