From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/68473 Path: news.gmane.org!not-for-mail From: Dan Davison Newsgroups: gmane.emacs.gnus.general Subject: Re: dovecot: imap: Connecting to localhost...failed Date: Wed, 22 Apr 2009 06:39:35 +0100 Message-ID: <873ac1w8ko.fsf@stats.ox.ac.uk> References: <8763h0cm15.fsf@stats.ox.ac.uk> <87ocuriyk4.fsf@thinkpad.tsdh.de> <87tz4jqsgq.fsf@stats.ox.ac.uk> <87bpqrice4.fsf@thinkpad.tsdh.de> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1240380155 4138 80.91.229.12 (22 Apr 2009 06:02:35 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 22 Apr 2009 06:02:35 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M16908@lists.math.uh.edu Wed Apr 22 08:03:55 2009 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from util0.math.uh.edu ([129.7.128.18]) by lo.gmane.org with esmtp (Exim 4.50) id 1LwVYn-0002Pt-BQ for ding-account@gmane.org; Wed, 22 Apr 2009 08:03:53 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by util0.math.uh.edu with smtp (Exim 4.63) (envelope-from ) id 1LwVWf-0007yZ-4M; Wed, 22 Apr 2009 01:01:41 -0500 Original-Received: from mx1.math.uh.edu ([129.7.128.32]) by util0.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1LwVCC-0007sF-5U for ding@lists.math.uh.edu; Wed, 22 Apr 2009 00:40:32 -0500 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx1.math.uh.edu with esmtp (Exim 4.69) (envelope-from ) id 1LwVBK-0004cs-W7 for ding@lists.math.uh.edu; Wed, 22 Apr 2009 00:40:31 -0500 Original-Received: from markov.stats.ox.ac.uk ([163.1.210.1]) by quimby.gnus.org with esmtp (Exim 3.36 #1 (Debian)) id 1LwVBl-00010R-00 for ; Wed, 22 Apr 2009 07:40:05 +0200 Original-Received: from blackcap.stats.ox.ac.uk (blackcap.stats [163.1.210.5]) by markov.stats.ox.ac.uk (8.13.6/8.13.6) with ESMTP id n3M5dZh5028955 for ; Wed, 22 Apr 2009 06:39:35 +0100 (BST) Original-Received: by blackcap.stats.ox.ac.uk (Postfix, from userid 5158) id AD3553201B; Wed, 22 Apr 2009 06:39:35 +0100 (BST) In-Reply-To: <87bpqrice4.fsf@thinkpad.tsdh.de> (Tassilo Horn's message of "Mon, 20 Apr 2009 17:16:19 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.91 (gnu/linux) X-Spam-Score: -1.9 (-) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:68473 Archived-At: Tassilo Horn writes: > Dan Davison writes: > > Hi Dan, > >>> That looks correct. Does it work, if you login using telnet? I >>> assume no. >> >> Could you explain exactly what you have in mind here? > > Sure. > >> ~> telnet localhost >> Trying 127.0.0.1... >> telnet: Unable to connect to remote host: Connection refused > > You also need to specify the port, that is 143 for unencrypted login or > 993 for encrypter login. Here's a sample session: > > % telnet localhost 143 <== My input > Trying 127.0.0.1... > Connected to localhost. > Escape character is '^]'. > * OK Dovecot ready. > 1 LOGIN uni MY_PASSWORD <== My input > 1 OK Logged in. > 2 SELECT INBOX <== My input > * FLAGS (\Answered \Flagged \Deleted \Seen \Draft gnus-expire KMAILFORWARDED KMAILTODO KMAILWATCHED KMAILIGNORED $FORWARDED $TODO $WATCHED $IGNORED gnus-forward gnus-save) > * OK [PERMANENTFLAGS (\Answered \Flagged \Deleted \Seen \Draft gnus-expire KMAILFORWARDED KMAILTODO KMAILWATCHED KMAILIGNORED $FORWARDED $TODO $WATCHED $IGNORED gnus-forward gnus-save \*)] Flags permitted. > * 1501 EXISTS > * 0 RECENT > * OK [UIDVALIDITY 1213252650] UIDs valid > * OK [UIDNEXT 2403] Predicted next UID > 2 OK [READ-WRITE] Select completed. > > The lines marked with "<== My input" were entered by me. Substitute > them with your values and poste dovecot's reply messages here (don't > forget to replace your password). Thanks for that Tassilo. For the record, the other source of help that I should have found was http://wiki.dovecot.org/TestInstallation I hadn't got dovecot configured correctly. It turned out that I hadn't changed the default line protocols = none in dovecot.conf. It should of course be protocols = imap (I guess I assumed that would be the default for a package called dovecot-imapd) So it's all working now, and so far seems to be a massive improvement over nnmaildir. Dan > >>> I think you cannot say ~, because that will look into the "mail" (or >>> "imap"?) users $HOME only. To use the users home put a %u into the >>> path. (I didn't test that. If it doesn't work, have a look at the >>> docs. The example dovecot.conf tells you how to do it in the >>> comments above mail_location.) >> >> OK, good point, but I've now tried writing the path explicitly, and I >> get the same error: >> >> mail_location = maildir:/home/dan/Maildir >> >> imap: Connecting to localhost...failed >> nnimap (dc) open error: 'nil'. Continue? (y or n) >> Couldn't open server on dc >> >> Maybe this is obviously true but I've just checked and dovecot's not >> logging any messages when gnus tries to connect (I used dovecot >> --log-error to check I can see error messages and turned on auth_verbose >> and auth_debug and auth_debug_passwords). > > I think dovecot normally logs to the system logger. So you should see > any login attempt in /var/log/dovecot.log or whatever you specified as > log_path in dovecot.conf. > > Bye, > Tassilo