From: Dan Davison <davison@stats.ox.ac.uk>
To: ding@gnus.org
Subject: Re: dovecot: imap: Connecting to localhost...failed
Date: Wed, 22 Apr 2009 06:39:35 +0100 [thread overview]
Message-ID: <873ac1w8ko.fsf@stats.ox.ac.uk> (raw)
In-Reply-To: <87bpqrice4.fsf@thinkpad.tsdh.de> (Tassilo Horn's message of "Mon, 20 Apr 2009 17:16:19 +0200")
Tassilo Horn <tassilo@member.fsf.org> writes:
> Dan Davison <davison@stats.ox.ac.uk> 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
next prev parent reply other threads:[~2009-04-22 5:39 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-04-19 22:32 Dan Davison
2009-04-20 7:17 ` Tassilo Horn
2009-04-20 15:01 ` Dan Davison
2009-04-20 15:16 ` Tassilo Horn
2009-04-22 5:39 ` Dan Davison [this message]
2009-04-22 7:03 ` Tassilo Horn
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=873ac1w8ko.fsf@stats.ox.ac.uk \
--to=davison@stats.ox.ac.uk \
--cc=ding@gnus.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).