From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/81767 Path: news.gmane.org!not-for-mail From: Steinar Bang Newsgroups: gmane.emacs.gnus.general Subject: Re: Setting up Dovecot [Was => Re: gnus fetching same mails again and again (pop)] Date: Mon, 16 Apr 2012 15:06:41 +0200 Organization: Probably a good idea Message-ID: References: <87mx6hl0fo.fsf@live.com> <871untb4n5.fsf@eps142.cdf.udc.es> <87lim01ifw.fsf@Gmail.com> <87hawo17gt.fsf@Gmail.com> <87wr5gqkhs.fsf@Gmail.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1334578977 7317 80.91.229.3 (16 Apr 2012 12:22:57 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 16 Apr 2012 12:22:57 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M30044@lists.math.uh.edu Mon Apr 16 14:22:57 2012 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from util0.math.uh.edu ([129.7.128.18]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1SJkxK-0002Vb-Sx for ding-account@gmane.org; Mon, 16 Apr 2012 14:22:55 +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 1SJkwN-00081e-Hz; Mon, 16 Apr 2012 07:21:55 -0500 Original-Received: from mx2.math.uh.edu ([129.7.128.33]) by util0.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1SJkwK-00081R-QH for ding@lists.math.uh.edu; Mon, 16 Apr 2012 07:21:52 -0500 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx2.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.76) (envelope-from ) id 1SJkwG-00074s-Mc for ding@lists.math.uh.edu; Mon, 16 Apr 2012 07:21:52 -0500 Original-Received: from plane.gmane.org ([80.91.229.3]) by quimby.gnus.org with esmtp (Exim 4.72) (envelope-from ) id 1SJkwE-0007xT-Lu for ding@gnus.org; Mon, 16 Apr 2012 14:21:46 +0200 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1SJkwC-0001f0-1v for ding@gnus.org; Mon, 16 Apr 2012 14:21:44 +0200 Original-Received: from 62.113.137.5 ([62.113.137.5]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 16 Apr 2012 14:21:44 +0200 Original-Received: from sb by 62.113.137.5 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 16 Apr 2012 14:21:44 +0200 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: ding@gnus.org Original-Lines: 101 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: 62.113.137.5 Mail-Copies-To: never User-Agent: Gnus/5.130004 (Ma Gnus v0.4) Emacs/23.4 (gnu/linux) Cancel-Lock: sha1:LsyzepdrhzW8EmcEQcV00oviYb4= X-Spam-Score: -0.7 (/) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:81767 Archived-At: >>>>> Yagnesh Raghava Yakkala : > 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.