From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/85099 Path: news.gmane.org!not-for-mail From: Eric Abrahamsen Newsgroups: gmane.emacs.gnus.general Subject: Re: blog post on gnus, dovecot, and lucene Date: Wed, 08 Oct 2014 00:47:36 +0800 Message-ID: <87egujzv13.fsf@ericabrahamsen.net> References: <87y4sszb70.fsf@ericabrahamsen.net> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1412700539 7827 80.91.229.3 (7 Oct 2014 16:48:59 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 7 Oct 2014 16:48:59 +0000 (UTC) Cc: ding@gnus.org To: Rainer M Krug Original-X-From: ding-owner+M33343@lists.math.uh.edu Tue Oct 07 18:48:53 2014 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 1XbXvh-0006wL-KV for ding-account@gmane.org; Tue, 07 Oct 2014 18:48: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 1XbXvW-000867-VI; Tue, 07 Oct 2014 11:47:55 -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 1XbXvU-00085g-KJ for ding@lists.math.uh.edu; Tue, 07 Oct 2014 11:47:52 -0500 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx1.math.uh.edu with esmtps (TLSv1:AES128-SHA:128) (Exim 4.76) (envelope-from ) id 1XbXvQ-0006ZZ-TL for ding@lists.math.uh.edu; Tue, 07 Oct 2014 11:47:50 -0500 Original-Received: from mail-ie0-f179.google.com ([209.85.223.179]) by quimby.gnus.org with esmtp (Exim 4.80) (envelope-from ) id 1XbXvP-0008P5-Dd for ding@gnus.org; Tue, 07 Oct 2014 18:47:47 +0200 Original-Received: by mail-ie0-f179.google.com with SMTP id ar1so5545929iec.24 for ; Tue, 07 Oct 2014 09:47:41 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version:content-type :content-transfer-encoding; bh=MDMGCLqwM9EZx7VvonpbGl+M2qEszXX3sdRJ/glFn1o=; b=f4cP+Or9kCLmaCHda/1dFI08t0q3jqna/DKkmzWmqXAzWmQTiqQIrWaSPJP2aaNBCv 5aAEH6XRRfQNb6SJmCXWWFPx8EHA36lSaIuTEf5I0XKZ+LGbBI3DwqBos2LF1FWAkGu/ AkD/WVVol/eqsTWyqqcKBFPWdnHuoQd+0PTmo0ApEDSkzyHkcQI/GP9wkDxXDtVfevh1 tPYvL2M+hpCoZSbtXflNNKpjKLTgn6la+rnAqUR7UgDsdh4n75Vzv1SlAC6+NCs8vZLg NVzX8g44Q2tFQu71+R+XBU1UjPqp2u70oyXjbNPOdcJ9dBkeWmseX1qHFszQQ6RnvBTX Lk+A== X-Gm-Message-State: ALoCoQnDGCGSDsX4DnHF0iTIyNriODotCfSHoBvfQKuVgiDuLSrLybDnNyt30pY/nvtNxYbm0n+U X-Received: by 10.50.20.4 with SMTP id j4mr7624355ige.13.1412700461023; Tue, 07 Oct 2014 09:47:41 -0700 (PDT) Original-Received: from localhost ([50.56.99.223]) by mx.google.com with ESMTPSA id uf4sm12450065igc.0.2014.10.07.09.47.39 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 07 Oct 2014 09:47:40 -0700 (PDT) In-Reply-To: (Rainer M. Krug's message of "Tue, 07 Oct 2014 09:18:34 +0200") User-Agent: Gnus/5.130012 (Ma Gnus v0.12) Emacs/25.0.50 (gnu/linux) X-Spam-Score: -2.9 (--) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:85099 Archived-At: On 10/07/14 09:18 AM, Rainer M Krug wrote: > Eric Abrahamsen writes: > >> Hi, >> >> I mentioned a bit ago that I had shifted my gnus/dovecot setup, and >> would blog about it. I finally did that: >> >> http://ericabrahamsen.net/tech/2014/oct/gnus-dovecot-lucene.html >> >> The gist of it is how to move to an always-running dovecot daemon, fed >> by isync, and incorporating lucene searches into that. > > Nice - thanks. > > The idea of using virtual users under dovecot is intriguing - it makes > all the name translations I am doing in offlineimap to keep my accounts > in different folder structures unneccessary. Could you please elaborrate > a little bit on your setup in this regard and where the emails are > actually stored? I might be implementing th same approach because it > sounds so simple! I can't claim to understand the entire configuration procedure, as I was just diving "deep enough" into dovecot, but the trick is this bit from the dovecot.conf file: passdb { driver =3D passwd-file args =3D /etc/dovecot/passwd } userdb { driver =3D static args =3D uid=3Deric gid=3Dusers home=3D/home/eric/.mail/%d/%n default_fields =3D mail=3Dmaildir:/home/eric/.mail/%d/%n/mail } Particularly the userdb section. I understand this to be saying: "each virtual user should be run as uid "eric" and gid "users", and each user will have their home directory under /home/eric/.mail, in a directory that looks like domainname/username. Furthermore, the mail for each user will be stored in maildir format, in a mail/ subdirectory in that user's home directory." It's like making viritual home directories for each virtual user. So now my directory structure looks like: ~/.mail/ericabrahamsen.net/ =E2=94=94=E2=94=80=E2=94=80 eric =E2=94=94=E2=94=80=E2=94=80 mail =E2=94=9C=E2=94=80=E2=94=80 cur =E2=94=9C=E2=94=80=E2=94=80 dovecot.index [ more dovecot stuff] =E2=94=9C=E2=94=80=E2=94=80 lucene-indexes =E2=94=9C=E2=94=80=E2=94=80 new =E2=94=9C=E2=94=80=E2=94=80 subscriptions =E2=94=94=E2=94=80=E2=94=80 tmp ~/.mail/paper-republic.org/ =E2=94=9C=E2=94=80=E2=94=80 eric =E2=94=82 =E2=94=94=E2=94=80=E2=94=80 mail =E2=94=82 =E2=94=9C=E2=94=80=E2=94=80 cur =E2=94=82 =E2=94=9C=E2=94=80=E2=94=80 dovecot.index =E2=94=82 [ etc ] =E2=94=82 =E2=94=9C=E2=94=80=E2=94=80 lucene-indexes =E2=94=82 =E2=94=9C=E2=94=80=E2=94=80 new =E2=94=82 =E2=94=9C=E2=94=80=E2=94=80 subscriptions =E2=94=82 =E2=94=94=E2=94=80=E2=94=80 tmp =E2=94=94=E2=94=80=E2=94=80 info =E2=94=94=E2=94=80=E2=94=80 mail =E2=94=9C=E2=94=80=E2=94=80 cur =E2=94=9C=E2=94=80=E2=94=80 dovecot.index [ more dovecot stuff] =E2=94=9C=E2=94=80=E2=94=80 lucene-indexes =E2=94=9C=E2=94=80=E2=94=80 new =E2=94=9C=E2=94=80=E2=94=80 subscriptions =E2=94=94=E2=94=80=E2=94=80 tmp So in cases where I have more than one user at the same domain name, both users are nested under the domain name directory. In hindsight the extra mail/ directory was probably unnecessary, I had some idea that other files might go above that mail/ directory. Hope that helps, Eric