On 19/03/11 09:49, Simon Brereton wrote:
From: owner-postfix-us...@postfix.org [mailto:owner-postfix-
us...@postfix.org] On Behalf Of Daniel Bromberg
Just being a googlebot again, but does this help?
http://www.courier-mta.org/imap/README.maildirquota.html
Using the Maildir++ extended Maildir format:
http://en.wikipedia.org/wiki/Maildir#Maildir.2B.2B
All thoughts are appreciated. I'll investigate further, but I think
my original issue was this warning (without wanting to drag Courier
into the Postfix list)..
If you would like to have a quota on your maildir mailboxes, the best
solution is to always use filesystem-based quotas: per-user usage
quotas that is enforced by the operating system.
This is the best solution when the default Maildir is located in each
account's home directory. This solution will NOT work if Maildirs are
stored elsewhere, or if you have a large virtual domain setup where a
single userid is used to hold many individual Maildirs, one for each
virtual user.
I have a virtual domain set up and one UID for delivering mail. I
suppose this might be hacked to work but would require more skill
than I have. Since I assume Postfix won't respect the quota
extension the issue remains a) how to get the MTA to stop delivering
mail to the maildir and b) how to warn the user that they are close
to over quota and will lose mail.
(It may make the blood of some on this list run cold, but I would
never configure a Postfix installation of mine to send DNSs back to
the sender telling them their precious mail could not be delivered).
At best it would have to be silently dropped as it would have already
gone through the content-filter (amavisd) and therefore
envelope-sender could no longer be trusted.
Now, if the quota could be checked (perhaps when doing the mysql
lookup on valide users) before the sending agent disconnects - that
would be truly marvellous.
I think you misunderstand that warning. My read on it is that it is
telling you that disk based quotas are better than Maildir quotas, but
there are cases where disk based quotas won't work (such as yours). In
your case use Maildir quotas which should work fine and which are
explained beyond that paragraph.
Peter
(new to posting here, but have been following the list for a while now).