From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/83220 Path: news.gmane.org!not-for-mail From: Eric Abrahamsen Newsgroups: gmane.emacs.gnus.general Subject: Re: isync plus dovecot? Date: Fri, 24 May 2013 12:36:09 +0800 Message-ID: <8761y9uh8m.fsf@ericabrahamsen.net> References: <874ne3xwpu.fsf@ericabrahamsen.net> <87vc6dy2x8.fsf@mid.raines.me> <87mwrpdsiy.fsf@ericabrahamsen.net> <87sj1eub2n.fsf@mid.raines.me> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1369370287 22637 80.91.229.3 (24 May 2013 04:38:07 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 24 May 2013 04:38:07 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M31486@lists.math.uh.edu Fri May 24 06:38:07 2013 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 1UfjlW-0003pP-OQ for ding-account@gmane.org; Fri, 24 May 2013 06:38:07 +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 1Ufjk1-0003Y0-FL; Thu, 23 May 2013 23:36:33 -0500 Original-Received: from mx1.math.uh.edu ([129.7.128.32]) by util0.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1Ufjjy-0003Xl-IK for ding@lists.math.uh.edu; Thu, 23 May 2013 23:36:30 -0500 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx1.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.76) (envelope-from ) id 1Ufjjt-0005QM-Cr for ding@lists.math.uh.edu; Thu, 23 May 2013 23:36:29 -0500 Original-Received: from plane.gmane.org ([80.91.229.3]) by quimby.gnus.org with esmtp (Exim 4.72) (envelope-from ) id 1Ufjjr-0003jM-D8 for ding@gnus.org; Fri, 24 May 2013 06:36:23 +0200 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1Ufjjr-0003Fx-0O for ding@gnus.org; Fri, 24 May 2013 06:36:23 +0200 Original-Received: from 114.250.131.38 ([114.250.131.38]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 24 May 2013 06:36:23 +0200 Original-Received: from eric by 114.250.131.38 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 24 May 2013 06:36:23 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 56 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 114.250.131.38 User-Agent: Gnus/5.130008 (Ma Gnus v0.8) Emacs/24.3 (gnu/linux) Cancel-Lock: sha1:W7JqcUXClPtezfoiamquMNtHySM= X-Spam-Score: 0.2 (/) X-Spam-Report: SpamAssassin (3.3.1 2010-03-16) analysis follows Bayesian score: 0.0000 Ham tokens: 0.000-2240--13590h-0s--0d--H*u:Emacs, 0.000-661--4007h-0s--0d--H*u:Gnus, 0.000-622--3774h-0s--0d--H*UA:linux, 0.000-622--3773h-0s--0d--H*u:linux, 0.000-612--3712h-0s--0d--H*UA:gnu Spam tokens: 0.990-6585--392h-34701s--0d--HTo:D*gnus.org, 0.990-6890--419h-36348s--0d--HX-Spam-Relays-External:quimby.gnus.org, 0.990-6890--419h-36348s--0d--H*RU:quimby.gnus.org, 0.987-6784--525h-36350s--0d--HX-Spam-Relays-Internal:quimby.gnus.org, 0.987-6784--525h-36350s--0d--H*RT:80.91.231.51 Autolearn status: no -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, no trust [80.91.229.3 listed in list.dnswl.org] 2.0 FSL_HELO_BARE_IP_2 FSL_HELO_BARE_IP_2 1.2 RCVD_NUMERIC_HELO Received: contains an IP address used for HELO -1.1 RP_MATCHES_RCVD Envelope sender domain matches handover relay domain -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:83220 Archived-At: Drew Raines writes: > Eric Abrahamsen wrote: > >> Thanks for this! So your .mbsyncrc has something like this, right? > > [...] > > I use dovecot as a real IMAP server. My mbsync config looks like > this. It's a little obfuscated by my hack that keeps my IMAP > password out of it. > > https://gist.github.com/drewr/c6e213f0b7ccd712e136 > > mbsync syncs Gmail IMAP <-> dovecot IMAP and nnimap connects to > dovecot for the different users. I set up userdb authentication in > dovecot to link to different directories in ~/Mail depending on who > connects. > > userdb { > driver = static > args = uid=1000 gid=1000 home=/home/aar/Mail/dovecot/%n > } Okay, I think I'm finally wrapping my head around the different possible ways of using dovecot locally. I'm still going to stick with the maildir approach though: as you mention it means one less process on the machine, and I guess I feel more comfortable with it. I'm also still not quite clear on the distinction between Dovecot's userdb users, system users, and multiple email accounts. > The maildir approach, however, sounds nice. Not having to maintain a > dovecot instance and bear the cost of Gnus reconnecting to it > periodically is attractive. To anyone and everyone: I'm still trying to solve the problem of offlineimap or mbsync delivering to a separate maildir for each email account, but dovecot only reading from one mail_location. The next thing I'm going to try is the following in offlineimaprc: [Repository local-acc1] preauthtunnel = /usr/lib/dovecot/imap -o mail_location=maildir:$HOME/.mail:LAYOUT=fs:DIRNAME=acc1 [Repository local-acc2] preauthtunnel = /usr/lib/dovecot/imap -o mail_location=maildir:$HOME/.mail:LAYOUT=fs:DIRNAME=acc2 [Repository local-acc3] preauthtunnel = /usr/lib/dovecot/imap -o mail_location=maildir:$HOME/.mail:LAYOUT=fs:DIRNAME=acc3 And hope that the accounts don't clobber each other. I'll report back if it works, but please stop me if you already know it won't! Thanks, Eric