On Wed, May 12, 2004 at 11:17:56AM +0200, Ana wrote:
Hello! I need help to configure quotas with maildrop-ldap. I've read
a lot of messages abouts this, but I'm not able to get this works.
My setup:
Postfix 2.1
Courier-imap 3.0
Maildrop 1.6.3 with suppor for LDAP
OpenLDAP 2.1
I've virtual users and I've configured my maildropldap.conf to use
quotas.
Postfix: mailbox_command= maildrop
Courier-Imap: LDAP_MAILDIRQUOTA quota
Maildropldap.conf: quota_attr quota
All users authenticated OK, but quota doesn't work OK. Must I
configure maildroprc? How? homeDirectory is in LDAP.
Beside, If I want to send quotawarnmsg, I thint I have to use
deliverquota: deliverquota -w 90 500S ./Maildir, but 500S is storaged
in LDAP server and ./Maildir too.
You don't need to use deliverquota; most of the functionality in it was
rolled into maildrop some versions back. The -w option was added to
maildrop back in version 1.5.1 according to the Changelog.
Did you enable the maildir quota extensions when you built your
maildrop? "maildrop -v" should report with a line:
"Maildir quota extension enabled."
If that isn't there then re-run your ./configure and append
--enable-maildirquota and rebuild.
Must I use .mailfilter for each
user?
No, it is not necessary unless you have some specific per-user configs.
How can I get create Maildir the first time user receives an e-mail?
There have been a number of filter rules posted to this list outlining
how to check for a maildir and create it if it doesn't exist. Check the
archives.
Personally, I think it is a waste of disk activity having to do that with
every message delivered. You should add initial Maildir creation to
your account creation script. If you create the Maildir when the
account is created you never have to worry about it again.