mailbox locking

Victor Sudakov vas at mpeks.tomsk.su
Sun Dec 16 12:55:17 EET 2018


Victor Sudakov wrote:
>
>I use exim's appendfile transport, procmail and a local mutt on my
>system, they all (to my knowledge) use lockfiles when working with
>mboxes.

[vas at adm2 ~] procmail -v | & grep Locking
Locking strategies:	dotlocking, lockf()

vas at adm2 ~] mutt -v|grep -i lock 
Configure options: '--disable-fcntl' '--with-ssl=/usr' '--with-docdir=/usr/local/share/doc/mutt' '--sysconfdir=/usr/local/etc' '--enable-external-dotlock' '--enable-pop' '--enable-imap' '--enable-compressed' '--enable-sidebar' '--disable-flock' '--disable-gpgme' '--with-gss=/usr' 'CFLAGS=-I/usr/include -O2 -pipe  -fstack-protector -fno-strict-aliasing ' 'LDFLAGS=-L/usr/lib  -L/usr/local/lib -Wl,-rpath=/usr/local/lib:/usr/lib -ltinfow  -fstack-protector ' 'LIBS=-lkrb5 -lgssapi -lgssapi_krb5 ' 'KRB5CONFIG=/usr/bin/krb5-config' '--without-bdb' '--without-kyotocabinet' '--disable-hcache' '--without-tokyocabinet' '--with-libiconv-prefix=/usr/local' '--with-idn2' '--enable-locales-fix' '--disable-nls' '--with-sasl=/usr/local' '--enable-smtp' '--prefix=/usr/local' '--localstatedir=/var' '--mandir=/usr/local/man' '--disable-silent-rules' '--infodir=/usr/local/info/' '--build=amd64-portbld-freebsd11.2' 'build_alias=amd64-portbld-freebsd11.2' 'CC=cc -I/usr/local/include' 'CPPFLAGS=' 'CPP=cpp' -HOMESPOOL  +USE_SETGID  +USE_DOTLOCK  +DL_STANDALONE  -USE_FCNTL  -USE_FLOCK   
[vas at adm2 ~] 

# exim -bP transport local_delivery | grep -i lock
lock_fcntl_timeout = 0s
lock_flock_timeout = 0s
lock_interval = 3s
lock_retries = 10
lockfile_mode = 0600
lockfile_timeout = 30m
use_fcntl_lock
no_use_flock_lock
use_lockfile
no_use_mbx_lock

>
>However, `doveconf | grep lock` says
>
>dotlock_use_excl = yes
>lock_method = fcntl
>mail_max_lock_timeout = 0
>mbox_dotlock_change_timeout = 2 mins
>mbox_lock_timeout = 5 mins
>mbox_read_locks = fcntl
>mbox_write_locks = dotlock fcntl
>pop3_lock_session = no
>
>
>Do I need to change anything in dovecot's default locking setup? Does
>it still use lockfiles on mboxes or not? There are some contradictory
>parameters IMHO.

-- 
Victor Sudakov,  VAS4-RIPE, VAS47-RIPN
2:5005/49 at fidonet http://vas.tomsk.ru/


More information about the dovecot mailing list