From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: X-Spam-Status: No, score=-3.0 required=3.0 tests=BAYES_00 shortcircuit=no autolearn=ham autolearn_force=no version=3.4.1 Received: from sipsolutions.net (s3.sipsolutions.net [IPv6:2a01:4f8:191:4433::2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dcvr.yhbt.net (Postfix) with ESMTPS id CED361F453; Fri, 28 Sep 2018 20:10:23 +0000 (UTC) Received: by sipsolutions.net with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.91) (envelope-from ) id 1g5z5i-0006fa-1N; Fri, 28 Sep 2018 22:10:22 +0200 Message-ID: <1538165409.14416.92.camel@sipsolutions.net> Subject: Re: IMAP server [was: Q: V2 format] From: Johannes Berg To: Eric Wong , "Eric W. Biederman" Cc: meta@public-inbox.org Date: Fri, 28 Sep 2018 22:10:09 +0200 In-Reply-To: <20180713230746.GA2680@dcvr> References: <87k1q1bky6.fsf@xmission.com> <20180712014715.dn5aouayoa3uejp4@dcvr> <87k1q07dyc.fsf@xmission.com> <20180712230946.mqv3yjw4aabf7xrf@dcvr.yhbt.net> <878t6f1ch7.fsf@xmission.com> <20180713230746.GA2680@dcvr> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.26.6 (3.26.6-1.fc27) Mime-Version: 1.0 Content-Transfer-Encoding: 7bit List-Id: Sorry to just jump into an old thread; I was wondering about IMAP server support as well, in particular because unlike NNTP that allows pushing the search to the server, and that would be useful for local archives. > Hosting an IMAP/POP3 server is way more overhead for the admin > as it requires storing user credentials and storing per-reader > state. So the preference is to do NNTP as well as possible and > layer the complexity of per-user account data on top of it. I'm not really sure that's true; dovecot, for example, provides their lists archives via anonymous IMAP: https://www.dovecot.org/mailinglists.html They have instructions here on how to do that over dovecot: https://wiki2.dovecot.org/HowTo/ReadOnlyArchive In particular: /var/home/anonymous/control# ls -la drwxr-xr-x 3 root root 4096 May 25 15:43 ./ drwxr-xr-x 3 anondove root 4096 Mar 20 14:39 .imap/ -rw-r--r-- 1 root root 33 May 25 15:43 .subscriptions Create the .subscriptions file manually to contain all the mailboxes you. Note that the control directory isn't writable by anondove, so that the subscriptions can't be changed. [...] * INBOX must always exists even if it's empty. Make sure it's not writable. * Make sure the mail directory isn't writable so users can't create new mailboxes. * The mboxes can be placed in the directory itself, or symlinks can be used. Above you'll see that mailman places all Dovecot archives under /var/home/archives. Make sure none of these files are writable by anondove. They also set up some read-only ACLs, I think to make the read-only state clear to the user agent, but of course a public-inbox IMAP server can hard-code all of this and not accept any write commands to start with. Anyway, just FYI; since I don't know perl at all I don't think I'll be doing any work on this. johannes