Gnus development mailing list
 help / color / mirror / Atom feed
From: Steinar Bang <sb@dod.no>
To: ding@gnus.org
Subject: Re: Setting up Dovecot  [Was => Re: gnus fetching same mails again and again (pop)]
Date: Mon, 16 Apr 2012 15:06:41 +0200	[thread overview]
Message-ID: <yb0ty0j3jxa.fsf@dod.no> (raw)
In-Reply-To: <BLU0-SMTP248EED43225D626A9147936CC3E0@phx.gbl>

>>>>> Yagnesh Raghava Yakkala <yagnesh@live.com>:

> Thanks for the reply., I am on GNU/Linux (Ubuntu).

Ok.  I'm using debian, which should be very similar.

> These are the things I tried.

> - installed dovecot
>   ,----
>  | sudo apt-get install dovecot-common dovecot-imapd dovecot-pop3d
>   `----

Ok.  Sounds right.

Note that
 apt-get install dovecot-imapd
is probably enough since it will pull in dovecot-common, and unless you
plan to use POP3 there is no point in pulling it in.

> - edited /etc/dovecot/dovecot.conf
>   ,----
>  | mail_location = maildir:/home/%u/Maildir
>   `----

Ok.  I have no setting of mail_location, so I'm using the default, which
appears to be maildir (maildir was the default back in 2008 when I
started using dovecot, and apparently still is).

My changes to the config file, are:
 - enabling imaps
 - using cram-md5 authentication

> - restarted dovecot
[snip!]

> - confirm dovecot is running
[snip!]

>   followed this guide to test the installation
>   http://wiki.dovecot.org/TestInstallation

>   So far so good. (how to authenticate from client to dovecot then?)

> - Gnus Setup

>   ,----
>  | (setq imap-shell-program "/usr/lib/dovecot/imap")
>  | 
>  | (add-to-list 'gnus-secondary-select-methods
>  |              '(nnimap "localimap"
>  |                       (nnimap-address "localhost")
>  |                       (nnimap-stream shell)))
>   `----

I've never used shell with dovecot.  I used it back in the day, when I
was using UoW imapd (2001 and earlier).

My definition looks like this:
      '((nnimap "private"
		(nnimap-address "imap.mydomain.com")
                (nnimap-stream ssl))

> - ~/.authinfo (I think this is not the way to do it)

Not anymore, it isn't.  But I'm still using it, and it works for me.

>   ,----
>  | machine localhost login SystemUserid password systemPassword port 143
>   `----

Hm... if you are using shell, and you are using an imapd that can be
started as yourself, you shouldn't need to have the authinfo
information.  What used to happen here is that the imapd is actually
invoked on the shell, and Gnus talks to it using pipes.  Not sure if
this is still the case...?

Also, if the above still holds, the password probably wouldn't be looked
up, since the port number is part of the lookup, and you will not be
talking to the imapd using a port.

> - Finally enter into Gnus.

>   I am getting following warning 
>   ,----
>  | Warning: Opening nnimap server on localimap...failed: @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
>  | ; Unable to open server nnimap+localimap due to: Buffer  *nnimap localhost nil  *nntpd** has no process
>   `----

Hm... unsuccessful in finding and starting the imapd?  Maybe dovecot
isn't indented to be run in this manner?  Maybe it won't start up
because someone else (dovecot or inetd) are already hugging port 143?

If you do this, instead:
 (add-to-list 'gnus-secondary-select-methods
              '(nnimap "localimap"
                       (nnimap-address "localhost")))

Then it should find your authinfo and connect to whatever's listening on
port 143.





  reply	other threads:[~2012-04-16 13:06 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-04-12 10:16 gnus fetching same mails again and again (pop) Yagnesh Raghava Yakkala
2012-04-12 10:55 ` Alberto Luaces
2012-04-12 16:11   ` Yagnesh Raghava Yakkala
2012-04-12 17:07     ` Andreas Schwab
2012-04-12 18:14       ` Yagnesh Raghava Yakkala
2012-04-12 18:37         ` Lars Magne Ingebrigtsen
2012-04-13  5:45           ` Yagnesh Raghava Yakkala
2012-04-13 10:56             ` Steinar Bang
2012-04-13  2:20         ` XeCycle
2012-04-13  5:35           ` Yagnesh Raghava Yakkala
2012-04-13  6:17             ` XeCycle
2012-04-16  5:19               ` Yagnesh Raghava Yakkala
2012-04-16  6:05                 ` XeCycle
2012-04-16  6:58                   ` Yagnesh Raghava Yakkala
2012-04-16  9:06                     ` Steinar Bang
2012-04-16  9:31                       ` Setting up Dovecot [Was => Re: gnus fetching same mails again and again (pop)] Yagnesh Raghava Yakkala
2012-04-16 13:06                         ` Steinar Bang [this message]
2012-04-17  5:33                           ` Yagnesh Raghava Yakkala
2012-04-17  6:28                             ` Steinar Bang
2012-04-16 23:55                         ` Jonas Hörsch
2012-04-17  2:07                           ` Rasmus
2012-04-17  5:43                           ` Yagnesh Raghava Yakkala
2012-04-13  4:17         ` gnus fetching same mails again and again (pop) Binjo
2012-04-13  5:38           ` Yagnesh Raghava Yakkala

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=yb0ty0j3jxa.fsf@dod.no \
    --to=sb@dod.no \
    --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).