[exim] Re: locking et al.

Kezdőlap
Üzenet törlése
Válasz az üzenetre
Szerző: Andreas Metzler
Dátum:  
Címzett: exim-users
Tárgy: [exim] Re: locking et al.
On 2024-02-10 graeme vetterlein via Exim-users <exim-users@???> wrote:
> So, taking jgh@??? URL:
> https://exim.org/exim-html-current/doc/html/spec_html/ch-the_appendfile_transport.html


> I see the text:  (I've added **highlights**)


[...]

> use_fcntl_lock     Use: appendfile     Type: boolean Default: see below


> This option controls the use of the fcntl() function to lock a file for
> exclusive use when a message is being appended. **It is set by default
> unless
> use_flock_lock is set.**


> So this is set by default UNLESS ...one of the other locking options is
> chosen:


> If I do:


> root@ybox:/var/lib/exim4# grep -i use_ /var/lib/exim4/config.autogenerated

[...]

>    exim will use "apendfile" to append mail to /var/mail/<myuserid>
>    and it will use fcntl(2) (I'm assuming advisory locking?)


ametzler@argenau:~$ /usr/sbin/exim4 -bP transport mail_spool | grep use_fcntl
use_fcntl_lock

> So I (may need to) just ensure maildrop(1) also uses fcntl(2) locking


[...]
> From maildrop:

[...]
> --with-locking-method=name - manually select a locking function call. name
> is either "fcntl", "flock", or "lockf". Otherwise the configuration
> script will pick one by itself.

[...]

Looking at
https://salsa.debian.org/debian/maildrop/-/blob/master/debian/rules?ref_type=heads
we find:
    --with-locking-method=fcntl
cu Andreas
-- 
`What a good friend you are to him, Dr. Maturin. His other friends are
so grateful to you.'
`I sew his ears on from time to time, sure'


--
## subscription configuration (requires account):
## https://lists.exim.org/mailman3/postorius/lists/exim-users.lists.exim.org/
## unsubscribe (doesn't require an account):
## exim-users-unsubscribe@???
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/