From: Gustav Eek Date: Thu, 27 Jun 2019 19:21:17 +0000 (+0200) Subject: doc: refactor rename case document X-Git-Url: https://git.g-eek.se/?a=commitdiff_plain;h=989b350f0c0636fb6126ce436a77a6890d524e7a;p=interimap.git doc: refactor rename case document --- diff --git a/doc/baseline.mdwn b/doc/baseline.mdwn new file mode 100644 index 0000000..0b293d0 --- /dev/null +++ b/doc/baseline.mdwn @@ -0,0 +1,230 @@ +--- +title: Case of setting up InterIMAP with Dovecot and Mutt for Fripost account on Debian +... + +This case guide explains the setup of InterIMAP against two separate +email accounts, e.g. work and private. The guide also covers the +overview of configuration philosophy and strategy. + +*TODO Actually the configuration is for a single account. Restructure +documentation to cover "single" and "multiple account" setups* + +# Overview + +A local IMAP server has a local mail store. InterIMAP always +synchronises between two IMAP servers, *local* and *remote*. In this +case the goal is to sync multiple remote IMAP servers with local +ones. And on top of that, configure the mail client with multiple +accounts. + +The following software components are involved: + + * [Dovecot](https://dovecot.org) + * [Mutt](http://mutt.org) + * [InterIMAP](https://git.guilhem.org/interimap/about/) + +The environment is assumed to be Debian Stable, Debian 9 Stretch. For +InterIMAP, however the Debian Testing repository need to be available. + +The mail client (Mutt) is served via IMAP from a local instance of +Dovecot. Local storage will be Maildir format. Using the IMAP server +to serve content to the mail client is preferred, compared to using the +client's internal Maildir support. + +The setup corresponds to multiple running instances of an IMAP server: +Dovecot is invoked with a separate instance for every client session, +as well as for the instance of InterIMAP. This is of course no +problem. + +Further, the setup is straight forward. E.g. Dovecot namespaces are +not needed. Also, all configuration and services are user local. no +system wide configuration changes will be needed. The system wide +dovecot service is even disabled. + +# Install software + +Make sure testing is in sources. Install (run as sudo): + + apt-get install interimap dovecot-imapd + +# Structure of Maildir locally +*TODO Explain the local storage setup* + +# Setup Dovecot + +Disable the system wide Dovecot service (run as sudo): + +``` +systemctl stop dovecot +systemctl disable dovecot +``` + +Verify connectivity and setup with the following: + + /usr/lib/dovecot/imap -o "mail_location=maildir:~/Maildir/fripost-dovecot" + +you should see long output pattern `* PREAUTH ... Logged in as +...`. The PREAUTH shows your authenticated at login. Type the command +`a list "" "*"` to list your mailboxes. + +Create a wrapper for execution + +``` +install -m 0755 /dev/stdin ~/.local/bin/imap-fripost-dovecot <