Group storage and vmail user options at mailserver.storage
Create a nicer option structure that deals with the mail storage and its owner, uid, group and gid. Also includes the directory layout as a property of how mails are stored..
This commit is contained in:
+3
-3
@@ -40,18 +40,18 @@ best practices to mailserver management.
|
||||
|
||||
systemctl stop dovecot.service
|
||||
|
||||
3. Create a backup or snapshot of your :option:`mailserver.mailDirectory`, so
|
||||
3. Create a backup or snapshot of your :option:`mailserver.storage.path`, so
|
||||
you can restore should anything go wrong.
|
||||
|
||||
4. Run the migration script and pass the required arguments to enable LDAP lookups:
|
||||
|
||||
The script should be run under the user who owns the :option:`mailserver.mailDirectory`.
|
||||
The script should be run under the user who owns the :option:`mailserver.storage.path`.
|
||||
If run as root it will automatically switch into the appropriate user by itself.
|
||||
|
||||
The script will not modify your data unless called with ``--execute``.
|
||||
|
||||
The migration script finds all Dovecot home directories in
|
||||
``/var/vmail/ldap/`` (or any other :option:`mailserver.mailDirectory`),
|
||||
``/var/vmail/ldap/`` (or any other :option:`mailserver.storage.path`),
|
||||
for example that of bob at ``/var/vmail/ldap/bob@example.com``.
|
||||
It then takes ``bob@example.com`` and queries the LDAP server for
|
||||
``mail=bob@example.com`` to retrieve the UUID attribute. Finally
|
||||
|
||||
Reference in New Issue
Block a user