From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/67638 Path: news.gmane.org!not-for-mail From: Tassilo Horn Newsgroups: gmane.emacs.gnus.general Subject: Re: how to speed up connection to a imap server Date: Mon, 20 Oct 2008 15:25:47 +0200 Message-ID: <87prlvz9d0.fsf@thinkpad.tsdh.de> References: <87ej2bfvb9.fsf@mat.ucm.es> <87y70jzguk.fsf@thinkpad.tsdh.de> <8763nnfs1d.fsf@mat.ucm.es> <87tzb7zdav.fsf@thinkpad.tsdh.de> <87y70je84x.fsf@mat.ucm.es> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1224528548 11858 80.91.229.12 (20 Oct 2008 18:49:08 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 20 Oct 2008 18:49:08 +0000 (UTC) Cc: ding@gnus.org To: Uwe Brauer Original-X-From: ding-owner+M16088@lists.math.uh.edu Mon Oct 20 20:50:02 2008 connect(): Connection refused Return-path: Envelope-to: ding-account@gmane.org Original-Received: from util0.math.uh.edu ([129.7.128.18]) by lo.gmane.org with esmtp (Exim 4.50) id 1Krun3-0005Zz-2m for ding-account@gmane.org; Mon, 20 Oct 2008 15:27:21 +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 1Krulh-0005Ii-Vq; Mon, 20 Oct 2008 08:25:58 -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 1Krulg-0005IT-Ka for ding@lists.math.uh.edu; Mon, 20 Oct 2008 08:25:56 -0500 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx2.math.uh.edu with esmtp (Exim 4.69) (envelope-from ) id 1Kruld-0000pq-2d for ding@lists.math.uh.edu; Mon, 20 Oct 2008 08:25:56 -0500 Original-Received: from deliver.uni-koblenz.de ([141.26.64.15]) by quimby.gnus.org with esmtp (Exim 3.36 #1 (Debian)) id 1Krulj-00048C-00 for ; Mon, 20 Oct 2008 15:26:00 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by deliver.uni-koblenz.de (Postfix) with ESMTP id 3424B789A7B6; Mon, 20 Oct 2008 15:25:49 +0200 (CEST) Original-Received: from deliver.uni-koblenz.de ([127.0.0.1]) by localhost (deliver.uni-koblenz.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 14552-03; Mon, 20 Oct 2008 15:25:48 +0200 (CEST) X-CHKRCPT: Envelopesender vrfy tassilo@member.fsf.org Original-Received: from thinkpad.tsdh.de (dhcp165.uni-koblenz.de [141.26.71.165]) by deliver.uni-koblenz.de (Postfix) with ESMTP id 0F6AA789A7B8; Mon, 20 Oct 2008 15:25:47 +0200 (CEST) Mail-Copies-To: never In-Reply-To: <87y70je84x.fsf@mat.ucm.es> (Uwe Brauer's message of "Mon, 20 Oct 2008 14:57:50 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) X-Virus-Scanned: amavisd-new at uni-koblenz.de X-Spam-Score: -5.5 (-----) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:67638 Archived-At: Uwe Brauer writes: Hi Uwe, > Well the devecot server is also a debian/ubuntu pkg and so I installed > it. Here's the dovecot config file. It ships with an example config which describes all options, so I removed the comments here. ,----[ /etc/dovecot/dovecot.conf ] | version_ignore=yes | first_valid_uid = 1 | log_path = /var/log/dovecot.log | ssl_cert_file = /etc/ssl/dovecot/server.pem | ssl_key_file = /etc/ssl/dovecot/server.key | mail_location = maildir:/var/spool/mail/%u | maildir_copy_with_hardlinks = yes | | protocol imap { | listen = 127.0.0.1:143 | ssl_listen = 127.0.0.1:943 | } | | auth default { | mechanisms = plain | # defines users/passwords | passdb passwd-file { | args = /etc/dovecot/passwd | } | | userdb static { | args = uid=mail gid=mail home=/var/spool/mail/%u | } | } `---- I named the users according the foreign IMAP accounts, one user per account. ,----[ /etc/dovecot/passwd ] | fastmail:{PLAIN}MY_PASSWORD | uni:{PLAIN}MY_OTHER_PASSWORD `---- And this is the ~/.offlineimaprc: ,----[ ~/.offlineimaprc ] | [general] | accounts = Fastmail, Uni | ui = Noninteractive.Basic | maxsyncaccounts = 1 | | [Account Fastmail] | localrepository = FastmailLocal | remoterepository = FastmailRemote | quick = 0 | | [Repository FastmailLocal] | type = IMAP | ssl = no | remotehost = localhost | remoteuser = fastmail | remotepass = MY_PASSWORD | maxconnections = 2 | | [Repository FastmailRemote] | type = IMAP | ssl =yes | remotehost = mail.messagingengine.com | remoteuser = thorn@fastmail.fm | remotepass = FOREIGN_PASSWORD | maxconnections = 2 | | [Account Uni] | localrepository = UniLocal | remoterepository = UniRemote | | [Repository UniLocal] | type = IMAP | ssl = no | remotehost = localhost | remoteuser = uni | remotepass = MY_OTHER_PASSWORD | maxconnections = 2 | | [Repository UniRemote] | type = IMAP | ssl =yes | remotehost = mail.uni-koblenz.de | remoteuser = horn | remotepass = OTHER_FOREIGN_PASSWORD | maxconnections = 2 | # Don't sync shared folders | folderfilter = lambda foldername: not re.search('Shared Folders', foldername) `---- In Gnus I connect to the local server twice with different users/passwords: ,----[ ~/.gnus.el ] | (add-to-list 'gnus-secondary-select-methods | '(nnimap "Fastmail" | (nnimap-address "localhost") | (nnimap-stream network) | (nnimap-authenticator login))) | | (add-to-list 'gnus-secondary-select-methods | '(nnimap "Uni" | (nnimap-address "localhost") | (nnimap-stream network) | (nnimap-authenticator login))) `---- The usernames/passwords are in my ~/.authinfo: ,----[ ~/.authinfo ] | machine Fastmail login fastmail password MY_PASSWORD force yes | machine Uni login uni password MY_OTHER_PASSWORD force yes `---- > Is it too much to ask you for your configuration files (without psswd > and other information). Done. ;-) > I presume you run offlineimap periodically via cron or something like > this. Yes, I use cron. But offlineimap can run forever, checking for mail every X minutes, too. Whatever you like best. I prefer cron so that I can log the output and add some timestamps and stuff. > Maybe it would be a good idea to include such a configuration example > also in the gnus manual. Why not. Feel free to format the configs in TexInfo and send a patch. Bye, Tassilo -- When Chuck Norris wants an egg, he cracks open a chicken.