On Tue, Dec 11, 2001 at 11:06:16PM -0500, Joshua E Warchol wrote:
> On Tue, Dec 11, 2001 at 05:42:33PM -0500, Sam Varshavchik wrote:
> > >The Postfix Maildir++ Quota patch does not use a maildirsize file. It uses
> > >the filesize as encoded on the filename to calculate quota use. The author
> > >says that a maildirsize file is not NFS safe and violates the main goals
> > >of the Maildir format.  Can anyone confirm this? 
> > 
> > Baloney. 
> 
> Sam, I would appreciate it if you could elaborate just a little bit.
> I think that the file is "safe enough" if it is written in a careful
> way. I just want to be able to implement it properly.

Encoding it into the filespace does make sense, even if it does force
the delivery server to stat() all the files first, which can be a
major performance issue.

Editing of the file via NFS if you are using any kind of clustering is
not safe.  Especially since most of the UNIXen that people use do not
support NFS file locking with any type of reliablity.  Of course,
Solaris rules for this :)

> Since my user data is stored in LDAP and the all the mailboxes are under
> the same user, I don't think deliverquota is the right choice. I could
> probably get maildrop to work, but I think I'm going to extend the
> Postfix Maildir++ patch to properly write maildirsize files. I'm glad
> to have a good example in the courier source.

Why not have each user have their own UID so that the operating system
can do the quota management for you?

I know you guys have a NetApp 820, I know the NetApps support quotas.
I know that the UID and GID info can be stored in LDAP.

And you won't have the performance sucking issues of trying to read a
bunch of files (or the unreliable issue of multiple servers trying to
write to the same file - or the issue of mail being delivered while
the user is reading it causing said file to be out of date).

Just an idea...and something I am already working on with another
virtual mail system via vpopmail, courier, and postfix.

-- 
Mike Horwath           IRC: Drechsau         [EMAIL PROTECTED]
Home: 763-540-6815  1901 Sumter Ave N, Golden Valley, MN  55427
Opinions stated in this message, or any message posted by myself
through my Geeks.ORG address, are mine and mine alone, period.

_______________________________________________
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users

Reply via email to