Gnus development mailing list
 help / color / mirror / Atom feed
From: Dan Davison <davison@stats.ox.ac.uk>
To: ding@gnus.org
Subject: dovecot: imap: Connecting to localhost...failed
Date: Sun, 19 Apr 2009 18:32:22 -0400	[thread overview]
Message-ID: <8763h0cm15.fsf@stats.ox.ac.uk> (raw)

Would someone mind helping me get going with dovecot serving
locally-stored maildir please? I think it's going to be something
simple/stupid, as I haven't got past the first hurdle. The short version
is: I'm using

--8<---------------cut here---------------start------------->8---
(setq gnus-select-method 
      '(nnimap "dc" (nnimap-address "localhost")))
--8<---------------cut here---------------end--------------->8---

and I'm getting

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

The long version is below.

Thanks a lot,

Dan


My mail is stored locally in maildir format folders under ~/Maildir, i.e.

--8<---------------cut here---------------start------------->8---
~/Maildir/folder1/{cur,new,tmp}
~/Maildir/folder2/{cur,new,tmp}
...
--8<---------------cut here---------------end--------------->8---

I have email reading under gnus working with

--8<---------------cut here---------------start------------->8---
(setq gnus-select-method '(nnmaildir "email" (directory "~/Maildir/")))
--8<---------------cut here---------------end--------------->8---

but I want to use nnimap. I am trying

--8<---------------cut here---------------start------------->8---
(setq gnus-select-method 
      '(nnimap "dc" (nnimap-address "localhost")))
--8<---------------cut here---------------end--------------->8---

but in the *Messages* buffer I'm getting 

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

I'm on ubuntu 9.04 (same problem under 8.10), and have installed
dovecot-common and dovecot-imapd.

I have dovecot running:

--8<---------------cut here---------------start------------->8---
~> ps -u root | grep dovecot
 3302 ?        00:00:00 dovecot
21401 ?        00:00:00 dovecot-auth
--8<---------------cut here---------------end--------------->8---

The only thing I'm changing in the dovecot config file is
mail_location. I've tried two values for that:
--8<---------------cut here---------------start------------->8---
mail_location = maildir:~/Maildir
mail_location = maildir:~/Maildir:LAYOUT=fs
--8<---------------cut here---------------end--------------->8---

And I've tried two folder layout arrangements:

1. ~/Maildir is a single maildir, with ~/Maildir/{cur,new,tmp} and
2. ~/Maildir holds multiple maildirs, i.e.
--8<---------------cut here---------------start------------->8---
~/Maildir/folder1/{cur,new,tmp}
~/Maildir/folder2/{cur,new,tmp}
...
--8<---------------cut here---------------end--------------->8---

I've tried the 4 different possible combinations of those two settings
but get the same error message. I'm using dovecot -n to check that my
dovecot config settings take effect.




             reply	other threads:[~2009-04-19 22:32 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-04-19 22:32 Dan Davison [this message]
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
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=8763h0cm15.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).