Gnus development mailing list
 help / color / mirror / Atom feed
From: Dan Davison <davison@stats.ox.ac.uk>
To: ding@gnus.org
Cc: tassilo@member.fsf.org
Subject: Re: dovecot: imap: Connecting to localhost...failed
Date: Mon, 20 Apr 2009 11:01:57 -0400	[thread overview]
Message-ID: <87tz4jqsgq.fsf@stats.ox.ac.uk> (raw)
In-Reply-To: <87ocuriyk4.fsf@thinkpad.tsdh.de> (Tassilo Horn's message of "Mon, 20 Apr 2009 09:17:31 +0200")

Hi Tassilo,

Tassilo Horn <tassilo@member.fsf.org> writes:

> Dan Davison <davison@stats.ox.ac.uk> writes:
>
> Hi Dan,
>
>> (setq gnus-select-method 
>>       '(nnimap "dc" (nnimap-address "localhost")))
>
> That looks correct.  Does it work, if you login using telnet?  I assume
> no.

Could you explain exactly what you have in mind here? Does any of the
following answer your question? I can ssh to localhost with no
problem. However if I try telnet I get:

--8<---------------cut here---------------start------------->8---
~> telnet localhost
Trying 127.0.0.1...
telnet: Unable to connect to remote host: Connection refused
--8<---------------cut here---------------end--------------->8---

I just tried a couple of remote machines and can't telnet to them either
(I can ssh in both cases). But that's to do with telnet not having
approproate security features isn't it? [I haven't used telnet for years
-- I thought it was obsolete technology?]

>
>> The only thing I'm changing in the dovecot config file is
>> mail_location. I've tried two values for that:
>> mail_location = maildir:~/Maildir
>> mail_location = maildir:~/Maildir:LAYOUT=fs
>
> 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:

--8<---------------cut here---------------start------------->8---
mail_location = maildir:/home/dan/Maildir
--8<---------------cut here---------------end--------------->8---

--8<---------------cut here---------------start------------->8---
imap: Connecting to localhost...failed
nnimap (dc) open error: 'nil'.  Continue? (y or n) 
Couldn't open server on dc
--8<---------------cut here---------------end--------------->8---

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

Thanks,

Dan

>
> HTH,
> Tassilo



  reply	other threads:[~2009-04-20 15:01 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 [this message]
2009-04-20 15:16     ` Tassilo Horn
2009-04-22  5:39       ` Dan Davison
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=87tz4jqsgq.fsf@stats.ox.ac.uk \
    --to=davison@stats.ox.ac.uk \
    --cc=ding@gnus.org \
    --cc=tassilo@member.fsf.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).