misc_nixos-mailserver/mail-server
Martin Weinelt 62ea8a7e00
dovecot: migrate to dedicated homedir and separate maildir paths
Per the dovecot documentation[0] we were previously running with an
unsupported home directory configuration, because we shared them among
all virtual users at /var/vmail.

After resolving this by creating per user home directories at
/var/vmail/%{domain}/%{user} this now also overlaps with the location of
the Maildir, which is not recommended.

As a result we now need to migrate our Maildirs into
/var/vmail/%{domain}/%{user}/mail, for which a small shell script is
provided as part of this change.

The script is included in the documentation because we cannot provide it
in time for users, because they might already be seeing the relevant
assertion and there is no safe waiting period that would allow us to skip
shipping it like that.

[0] https://doc.dovecot.org/2.3/configuration_manual/mail_location/
2025-06-21 09:46:32 +02:00
..
dovecot/imap_sieve dovecot: drop unused pipe scripts 2025-05-15 16:29:05 +02:00
assertions.nix dovecot: migrate to dedicated homedir and separate maildir paths 2025-06-21 09:46:32 +02:00
borgbackup.nix treewide: reformat with nixfmt-rfc-style 2025-06-15 03:39:44 +02:00
clamav.nix treewide: remove dead nix references 2025-05-15 16:41:30 +02:00
common.nix treewide: reformat with nixfmt-rfc-style 2025-06-15 03:39:44 +02:00
dovecot.nix dovecot: migrate to dedicated homedir and separate maildir paths 2025-06-21 09:46:32 +02:00
environment.nix treewide: remove overly broad with cfg 2025-06-15 05:39:20 +02:00
kresd.nix treewide: reformat with nixfmt-rfc-style 2025-06-15 03:39:44 +02:00
monit.nix treewide: remove dead nix references 2025-05-15 16:41:30 +02:00
networking.nix treewide: remove overly broad with cfg 2025-06-15 05:39:20 +02:00
nginx.nix treewide: reformat with nixfmt-rfc-style 2025-06-15 03:39:44 +02:00
postfix.nix postfix: disable SHA1 for SMTP connections 2025-06-18 06:58:42 +02:00
rsnapshot.nix treewide: remove global with lib 2025-06-15 05:08:47 +02:00
rspamd.nix Create per service debug logging toggles 2025-06-17 22:02:31 +02:00
systemd.nix treewide: remove overly broad with cfg 2025-06-15 05:39:20 +02:00
users.nix treewide: reformat with nixfmt-rfc-style 2025-06-15 03:39:44 +02:00