Re: [Pop-imap] Re: [Exim] Locked mail spool file

Top Page
Delete this message
Reply to this message
Author: Jeremy C. Reed
Date:  
To: Trevor Sky Garside
CC: pop-imap, exim-users
Subject: Re: [Pop-imap] Re: [Exim] Locked mail spool file
On Mon, 11 Sep 2000, Jeremy C. Reed wrote:

> On Mon, 11 Sep 2000, Trevor Sky Garside wrote:
>
> > How does Exim handle the case where it tries to run appendfile on a file
> > that is locked by the filesystem?
>
> I am not sure of the perfect or correct way. But creating a user.lock file
> in the mail spool (or whatever you want to call it) directory is the
> standard.


I didn't answer correctly. .lock is not the standard for MTAs just common
for pop3 servers. You may also want to look at how procmail does its
locking.

> In addition, you can use fcntl(2) to create a shared lock. Depending on
> how it used, I am not sure if this locks the whole file or if it locks a
> portion. Also, I am not sure if you are supposed to save the current
> setting (F_SETLK) so you can restore it.


  Jeremy C. Reed
....................................................
     BSD software, documentation, resources, news...
     http://bsd.reedmedia.net/