From 8a92bb32fb8e156cc14552a267276e06b6f35476 Mon Sep 17 00:00:00 2001 From: Antoine Nguyen Date: Wed, 26 Apr 2023 11:54:26 +0200 Subject: [PATCH] Updated doc --- doc/moving.rst | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/doc/moving.rst b/doc/moving.rst index e50a32257..51babb34a 100644 --- a/doc/moving.rst +++ b/doc/moving.rst @@ -34,6 +34,24 @@ configuration file with the command: You then need to setup `OfflineIMAP `_. +The synchronization script must be configured to run periodically on +your new server. Since it will copy mailboxes content to its final +destination, filesystem permissions must be respected. To do that, it +must be executed by the user which owns mailboxes (generally +``vmail``). + +Here is a configuration example where the script is executed every +hours. You can copy it inside the ``/etc/cron.d/modoboa`` file: + +.. sourcecode:: shell + + PYTHON=/srv/modoboa/env/bin/python + INSTANCE=/srv/modoboa/instance + + 0 */1 * * * vmail cd /srv/vmail && $PYTHON $INSTANCE/manage.py generate_offlineimap_config --output .offlineimaprc && /usr/local/bin/offlineimap > /dev/null 2>&1 + +Feel free to adapt it. + This will sync back-and-forth user mailbox. Providers