summaryrefslogtreecommitdiffstats
path: root/doc/wiki/Mountpoints.txt
blob: 1f920af0c7a676c973a33bb5fca8215610c3e60f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
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)