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:
@@ -5,14 +5,13 @@ First off you should have a backup of your ``configuration.nix`` file
|
||||
where you have the server config (but that is already in a git
|
||||
repository right?)
|
||||
|
||||
Next you need to backup ``/var/vmail`` or whatever you have specified
|
||||
for the option ``mailDirectory``. This is where all the mails reside.
|
||||
Good options are a cron job with ``rsync`` or ``scp``. But really
|
||||
anything works, as it is simply a folder with plenty of files in it. If
|
||||
your backup solution does not preserve the owner of the files don’t
|
||||
forget to ``chown`` them to ``virtualMail:virtualMail`` if you copy them
|
||||
back (or whatever you specified as ``vmailUserName``, and
|
||||
``vmailGroupName``).
|
||||
Next you need to backup ``/var/vmail`` or whatever you have specified for the
|
||||
option :option:`mailserver.storage.path`. This is where all the mails reside.
|
||||
Good options are a cron job with ``rsync`` or ``scp``. But really anything
|
||||
works, as it is simply a folder with plenty of files in it. If your backup
|
||||
solution does not preserve the owner of the files don’t forget to ``chown`` them
|
||||
to ``virtualMail:virtualMail`` if you copy them back (or whatever you specified
|
||||
as :option:`mailserver.storage.owner`, and :option:`mailserver.storage.group`).
|
||||
|
||||
If you enabled ``enableManageSieve`` then you also may want to backup
|
||||
``/var/sieve`` or whatever you have specified as ``sieveDirectory``.
|
||||
|
||||
Reference in New Issue
Block a user