diff dovecot-example.conf @ 2103:879b0b9ed5d4 HEAD

Separate mbox_locks/mbox_read_dotlock to mbox_read_locks and mbox_write_locks. Added support for lockf() method.
author Timo Sirainen <tss@iki.fi>
date Thu, 03 Jun 2004 18:01:27 +0300
parents 4e77cb0aff21
children 6e662d7188e9
line wrap: on
line diff
--- a/dovecot-example.conf	Mon May 31 23:10:02 2004 +0300
+++ b/dovecot-example.conf	Thu Jun 03 18:01:27 2004 +0300
@@ -283,24 +283,21 @@
 # specifies that existing messages are immutable.
 #maildir_check_content_changes = no
 
-# Which locking methods to use for locking mbox. There's three available:
+# Which locking methods to use for locking mbox. There's four available:
 #  dotlock: Create <mailbox>.lock file. This is the oldest and most NFS-safe
 #           solution. If you want to use /var/mail/ like directory, the users
 #           will need write access to that directory.
 #  fcntl  : Use this if possible. Works with NFS too if lockd is used.
 #  flock  : May not exist in all systems. Doesn't work with NFS.
+#  lockf  : May not exist in all systems. Doesn't work with NFS.
 #
-# You can use both fcntl and flock too; if you do the order they're declared
-# with is important to avoid deadlocks if other MTAs/MUAs are using both fcntl
-# and flock. Some operating systems don't allow using both of them
-# simultaneously, eg. BSDs. If dotlock is used, it's always created first.
-#mbox_locks = dotlock fcntl
-
-# Should we create dotlock file even when we want only a read-lock? Setting
-# this to yes hurts the performance when the mailbox is accessed simultaneously
-# by multiple processes, but it's needed for reliable reading if no other
-# locking methods are available.
-#mbox_read_dotlock = no
+# You can use multiple locking methods; if you do the order they're declared
+# in is important to avoid deadlocks if other MTAs/MUAs are using multiple
+# locking methods as well. Some operating systems don't allow using some of
+# them simultaneously. If dotlocking is used, it must always be first in the
+# list.
+#mbox_read_locks = fcntl
+#mbox_write_locks = dotlock fcntl
 
 # Maximum time in seconds to wait for lock (all of them) before aborting.
 #mbox_lock_timeout = 300