[OpenAFS] MailDir & Coda/AFS was: Practical no. of files per dir was: [OpenAFS] Max number of files in volume?

Mike Fedyk mfedyk@matchmail.com
Mon, 17 May 2004 14:43:31 -0700


Leif Johansson wrote:
> 
>> Benjamin P Myers wrote:
>>
>>> I've been looking into postfix over afs, but since it uses hard links 
>>> for maildir inboxes it won't work.  what are you using?
> 
> 
> The hardlinks in the maildir delivery protocol are only used to make
> rename atomic which it isn't on most network filesystems (at least not
> on NFS). The answer is that you simply replace your 'link+unlink' calls
> with a rename, which is atomic in AFS.
> 
> We (Stockholm university) happily accept spam for ~25k users into
> Maildir using maildrop (part of courier http://www.courier-mta.org)

Does maildrop need patches to call rename() instead of link+unlink? 
I've heard that procmail already calls rename() instead of using 
link+unlink.