From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.user/10295 Path: news.gmane.org!not-for-mail From: Tassilo Horn Newsgroups: gmane.emacs.gnus.user Subject: Re: Automatically authenticating at local imap server Date: Mon, 04 Feb 2008 09:39:45 +0100 Message-ID: <87odax2jzi.fsf@member.fsf.org> References: <87fxw9lr6x.fsf@gaura-nitai.dyndns.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1202114407 12661 80.91.229.12 (4 Feb 2008 08:40:07 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 4 Feb 2008 08:40:07 +0000 (UTC) To: info-gnus-english@gnu.org Original-X-From: info-gnus-english-bounces+gegu-info-gnus-english=m.gmane.org@gnu.org Mon Feb 04 09:40:28 2008 Return-path: Envelope-to: gegu-info-gnus-english@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1JLwsM-0005q9-Qq for gegu-info-gnus-english@m.gmane.org; Mon, 04 Feb 2008 09:40:27 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JLwru-0001h5-OY for gegu-info-gnus-english@m.gmane.org; Mon, 04 Feb 2008 03:39:58 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JLwrt-0001gq-4f for info-gnus-english@gnu.org; Mon, 04 Feb 2008 03:39:57 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JLwrs-0001ge-JG for info-gnus-english@gnu.org; Mon, 04 Feb 2008 03:39:56 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JLwrs-0001gX-Dd for info-gnus-english@gnu.org; Mon, 04 Feb 2008 03:39:56 -0500 Original-Received: from main.gmane.org ([80.91.229.2] helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1JLwrs-00081S-PK for info-gnus-english@gnu.org; Mon, 04 Feb 2008 03:39:57 -0500 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1JLwrp-0004nD-RI for info-gnus-english@gnu.org; Mon, 04 Feb 2008 08:39:53 +0000 Original-Received: from dslb-084-063-061-073.pools.arcor-ip.net ([84.63.61.73]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 04 Feb 2008 08:39:53 +0000 Original-Received: from tassilo by dslb-084-063-061-073.pools.arcor-ip.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 04 Feb 2008 08:39:53 +0000 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 49 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: dslb-084-063-061-073.pools.arcor-ip.net User-Agent: Gnus/5.110007 (No Gnus v0.7) Emacs/23.0.60 (gnu/linux) Cancel-Lock: sha1:TJ0TENFpKjTs5GzZdLiMf5qL3r4= X-detected-kernel: by monty-python.gnu.org: Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: info-gnus-english@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Announcements and discussions for GNUS, the GNU Emacs Usenet newsreader \(in English\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: info-gnus-english-bounces+gegu-info-gnus-english=m.gmane.org@gnu.org Errors-To: info-gnus-english-bounces+gegu-info-gnus-english=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.gnus.user:10295 Archived-At: Gour writes: Hi Gour, > Tassilo> Everytime I start Gnus it asks me how to logon at the local > Tassilo> IMAP server, but instead I want that it uses the username and > Tassilo> password that are in my ~/.authinfo. > > Here is my ~/.authinfo: > > machine localhost login gour password xxxxxxxx Hm, reading your config below I would thing that localhost-IMAP would be the correct machine name. Else, how would gnus figure out how to login on i.e. a local newsserver that uses a different user/password. > and snippet from .gnus: > > (setq mail-sources nil) > (setq gnus-select-method '(nntp "news.gmane.org") > gnus-secondary-select-methods > '((nnimap "localhost-IMAP" (nnimap-address "localhost")) > (nntp "news.iskon.hr"))) No big difference to my config. I only set the stream/authenticator to use no encryption, because the tls connection broke down several times. But even if I use exactly your config (with my name for the method) it won't logon automatically. Well, I'll try to edebug it as Reiner suggested. > That's all and it works with dovecot server. Yeah, dovecot here, too. I never tried running a local IMAP server because I thought it would be quite complex, but in fact it was easy, basically: emerge dovecot; edit a few lines in the well commented dovecot.conf, start the server. Another question about dovecot: When I used nnmaildir I indexed the mails with mairix and could do very fast searches with the nnmairix backend. Currently I use nnir's imap backend to search on the local imap server, but that takes ages for huge groups. Is there a way to teach dovecot to use a mailindexing tool to speed that up? Bye, Tassilo -- If you were somehow able to land a punch on Chuck Norris your entire arm would shatter upon impact. This is only in theory, since, come on, who in their right mind would try this?