From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/68469 Path: news.gmane.org!not-for-mail From: Tassilo Horn Newsgroups: gmane.emacs.gnus.general Subject: Re: dovecot: imap: Connecting to localhost...failed Date: Mon, 20 Apr 2009 17:16:19 +0200 Message-ID: <87bpqrice4.fsf@thinkpad.tsdh.de> References: <8763h0cm15.fsf@stats.ox.ac.uk> <87ocuriyk4.fsf@thinkpad.tsdh.de> <87tz4jqsgq.fsf@stats.ox.ac.uk> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1240240614 31418 80.91.229.12 (20 Apr 2009 15:16:54 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 20 Apr 2009 15:16:54 +0000 (UTC) Cc: ding@gnus.org To: Dan Davison Original-X-From: ding-owner+M16904@lists.math.uh.edu Mon Apr 20 17:18:14 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 1LvvG4-0006gz-OD for ding-account@gmane.org; Mon, 20 Apr 2009 17:18:09 +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 1LvvEV-0005Bx-6w; Mon, 20 Apr 2009 10:16:31 -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 1LvvET-0005BS-F8 for ding@lists.math.uh.edu; Mon, 20 Apr 2009 10:16:29 -0500 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx1.math.uh.edu with esmtp (Exim 4.69) (envelope-from ) id 1LvvEM-00035q-U0 for ding@lists.math.uh.edu; Mon, 20 Apr 2009 10:16:29 -0500 Original-Received: from deliver.uni-koblenz.de ([141.26.64.15]) by quimby.gnus.org with esmtp (Exim 3.36 #1 (Debian)) id 1LvvEm-0000tG-00 for ; Mon, 20 Apr 2009 17:16:48 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by deliver.uni-koblenz.de (Postfix) with ESMTP id 8CAE7789B8C8; Mon, 20 Apr 2009 17:16:21 +0200 (CEST) Original-Received: from deliver.uni-koblenz.de ([127.0.0.1]) by localhost (deliver.uni-koblenz.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 24480-06; Mon, 20 Apr 2009 17:16:19 +0200 (CEST) X-CHKRCPT: Envelopesender vrfy tassilo@member.fsf.org Original-Received: from thinkpad.tsdh.de (dhcp61.uni-koblenz.de [141.26.71.61]) by deliver.uni-koblenz.de (Postfix) with ESMTP id B5A97789B8C6; Mon, 20 Apr 2009 17:16:19 +0200 (CEST) Mail-Copies-To: never Mail-Followup-To: Dan Davison , ding@gnus.org In-Reply-To: <87tz4jqsgq.fsf@stats.ox.ac.uk> (Dan Davison's message of "Mon, 20 Apr 2009 11:01:57 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.92 (gnu/linux) X-Virus-Scanned: amavisd-new at uni-koblenz.de X-Spam-Score: -5.6 (-----) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:68469 Archived-At: 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: --8<---------------cut here---------------start------------->8--- % 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. --8<---------------cut here---------------end--------------->8--- 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). >> 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 -- How much wood would a woodchuck chuck if a woodchuck could Chuck Norris? ...All of it.