Re: [Exim] mbx locking

Página Principal
Apagar esta mensagem
Responder a esta mensagem
Autor: Peter Galbavy
Data:  
Para: exim-users, Ray Miller
Assunto: Re: [Exim] mbx locking
> Previously local deliveries were piped to tmail, which does not have
> the same problems obtaining a lock. Looking at the code, I see that
> tmail uses a blocking flock() call, while exim uses a non-blocking
> fcntl() to lock the mbx lock file.
>
> Having exim block in the fcntl() call (with timeout via SIGALRM) would
> make exim behave more like tmail, and should get around the locking
> problem. Is this easily implemented?


I posted a mail to the list recently, saying that the locking options on
mbx_format were "broken". Phil agreed that there was a bug, but my
workaround of:

local_delivery:
driver = appendfile
file = LOOKUP_BOXDIR/MATCH_FOLDER
delivery_date_add
envelope_to_add
return_path_add
from_hack
no_use_fcntl_lock
no_use_lockfile
use_mbx_lock
mbx_format

works for me.

Regards,
--
Peter Galbavy
Knowledge Matters Ltd.
http://www.knowledge.com/