Gnus development mailing list
 help / color / mirror / Atom feed
From: Tassilo Horn <tassilo@member.fsf.org>
To: Uwe Brauer <oub@mat.ucm.es>
Cc: ding@gnus.org
Subject: Re: how to speed up connection to a imap server
Date: Mon, 20 Oct 2008 15:25:47 +0200	[thread overview]
Message-ID: <87prlvz9d0.fsf@thinkpad.tsdh.de> (raw)
In-Reply-To: <87y70je84x.fsf@mat.ucm.es> (Uwe Brauer's message of "Mon, 20 Oct 2008 14:57:50 +0200")

Uwe Brauer <oub@mat.ucm.es> 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. 



  reply	other threads:[~2008-10-20 13:25 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-10-20  9:51 Uwe Brauer
2008-10-20 10:44 ` Tassilo Horn
2008-10-20 11:02   ` Uwe Brauer
2008-10-20 12:00     ` Tassilo Horn
2008-10-20 12:57       ` Uwe Brauer
2008-10-20 13:25         ` Tassilo Horn [this message]
2008-10-20 13:49           ` Uwe Brauer

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=87prlvz9d0.fsf@thinkpad.tsdh.de \
    --to=tassilo@member.fsf.org \
    --cc=ding@gnus.org \
    --cc=oub@mat.ucm.es \
    /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).