summaryrefslogtreecommitdiffstats
path: root/doc/wiki/Mountpoints.txt
diff options
context:
space:
mode:
Diffstat (limited to 'doc/wiki/Mountpoints.txt')
-rw-r--r--doc/wiki/Mountpoints.txt55
1 files changed, 55 insertions, 0 deletions
diff --git a/doc/wiki/Mountpoints.txt b/doc/wiki/Mountpoints.txt
new file mode 100644
index 0000000..1f920af
--- /dev/null
+++ b/doc/wiki/Mountpoints.txt
@@ -0,0 +1,55 @@
+Mountpoints
+===========
+
+---%<-------------------------------------------------------------------------
+master: Warning: /mnt/foo is no longer mounted. See
+http://wiki2.dovecot.org/Mountpoints
+---%<-------------------------------------------------------------------------
+
+Dovecot wants to keep track of mountpoints that might contain emails. If such a
+mountpoint is suddenly not mounted, it's handled as an error condition rather
+than as "this is a new user". This prevents other confusion that follows such a
+situation.
+
+The list of mount points is maintained in the file /var/run/dovecot/mounts.
+
+Removing mountpoints
+--------------------
+
+If you permanently removed a mountpoint, you can tell Dovecot to forget about
+it with:
+
+---%<-------------------------------------------------------------------------
+doveadm mount remove /mnt/foo
+---%<-------------------------------------------------------------------------
+
+Ignoring mountpoints
+--------------------
+
+Dovecot already internally filters out many mountpoints and filesystems that
+are pretty much guaranteed not to contain any emails, but of course it can't
+know about everything. This is especially problematic with filesystems that are
+sometimes mounted and sometimes not. You can permanently tell Dovecot to ignore
+a mountpoint with:
+
+---%<-------------------------------------------------------------------------
+doveadm mount add /mnt/foo ignore
+---%<-------------------------------------------------------------------------
+
+or ignore all mountpoints under '/mnt':
+
+---%<-------------------------------------------------------------------------
+doveadm mount add '/mnt/*' ignore
+---%<-------------------------------------------------------------------------
+
+Adding mountpoints
+------------------
+
+Mountpoints are added automatically when Dovecot starts up. If you mount a new
+filesystem with mails while Dovecot is running you can also add it manually:
+
+---%<-------------------------------------------------------------------------
+doveadm mount add /mnt/foo
+---%<-------------------------------------------------------------------------
+
+(This file was created from the wiki on 2019-06-19 12:42)