Update for better NFS
parent
59f9789f75
commit
c1b010ee7c
|
|
@ -28,7 +28,7 @@
|
||||||
# <doc/wiki/MailLocation.txt>
|
# <doc/wiki/MailLocation.txt>
|
||||||
#
|
#
|
||||||
# mail_location = mbox:~/mail:INBOX=/var/mail/%u
|
# mail_location = mbox:~/mail:INBOX=/var/mail/%u
|
||||||
mail_location = maildir:~/Mail:INBOX=/var/mail/%u/:INDEX=/var/dovecot-indexes/%u
|
mail_location = maildir:~/Mail:INBOX=/var/mail/%u/:INDEX=/var/dovecot-indexes/%u:VOLATILEDIR=/dev/shm/dovecot-%u
|
||||||
|
|
||||||
# If you need to set multiple mailbox locations or want to change default
|
# If you need to set multiple mailbox locations or want to change default
|
||||||
# namespace settings, you can do it by defining namespace sections.
|
# namespace settings, you can do it by defining namespace sections.
|
||||||
|
|
@ -131,7 +131,7 @@ mail_privileged_group = mail
|
||||||
|
|
||||||
# Don't use mmap() at all. This is required if you store indexes to shared
|
# Don't use mmap() at all. This is required if you store indexes to shared
|
||||||
# filesystems (NFS or clustered filesystem).
|
# filesystems (NFS or clustered filesystem).
|
||||||
#mmap_disable = no
|
mmap_disable = yes
|
||||||
|
|
||||||
# Rely on O_EXCL to work when creating dotlock files. NFS supports O_EXCL
|
# Rely on O_EXCL to work when creating dotlock files. NFS supports O_EXCL
|
||||||
# since version 3, so this should be safe to use nowadays by default.
|
# since version 3, so this should be safe to use nowadays by default.
|
||||||
|
|
@ -141,7 +141,7 @@ mail_privileged_group = mail
|
||||||
# optimized (default): Whenever necessary to avoid losing important data
|
# optimized (default): Whenever necessary to avoid losing important data
|
||||||
# always: Useful with e.g. NFS when write()s are delayed
|
# always: Useful with e.g. NFS when write()s are delayed
|
||||||
# never: Never use it (best performance, but crashes can lose data)
|
# never: Never use it (best performance, but crashes can lose data)
|
||||||
#mail_fsync = optimized
|
mail_fsync = always
|
||||||
|
|
||||||
# Mail storage exists in NFS. Set this to yes to make Dovecot flush NFS caches
|
# Mail storage exists in NFS. Set this to yes to make Dovecot flush NFS caches
|
||||||
# whenever needed. If you're using only a single mail server this isn't needed.
|
# whenever needed. If you're using only a single mail server this isn't needed.
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue