> "Tomas Kuliavas" <[EMAIL PROTECTED]> wrote on 04/23/2005
> 01:04:31 AM:
>
>> Courier IMAP supports IMAP Quota extension
>>
>> There are SquirrelMail plugins that utilize IMAP Quota extension.
>>
>> Possible issue - message deletion when user is over quota.
>>
>
> sorry if this post is more on courier-imap than qmail-ldap
>
> i've read the courier-imap docs on maildir quota saying that this will not
> work if
> "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. "
>
> so is it true that if i am using vmail as user and group, i will not be
> able to use this functionality?
> all my user maildirs are inside /var/vmail (virtual user setup)
>
> any suggestions? because i would like all my webmail users (squirrelmail)
> to see their maildir usage.

courier-authlib 0.55.
 ./configure --prefix=/opt/courier4 \
 --without-authpam --without-authuserdb --without-authpwd \
 --without-authshadow --without-authcram --with-authldap \
 --without-authmysql --without-authvchkpw --without-authpgsql \
 --without-authcustom

it is possible that some flags are not correct. I've only copied options
from courier-imap 3.0.8 config and courier docs argue about not using
them.

authldaprc diff attached

courier-imap 4.0.2

 export COURIERAUTHCONFIG=/opt/courier4/bin/courierauthconfig
 export CFLAGS=-I/opt/courier4/include
 ./configure --prefix=/opt/courier4 \
  --enable-workarounds-for-imap-client-bugs \
  --enable-unicode


imap configuration file modified to increase maxperip and enabled imap start.

main issues
 - no default quota value. must set it in ldap.
 - courier can use combined size and count quota format. qmail uses two
ldap attributes.

Quota Usage plugin 1.3
http://www.squirrelmail.org/plugin_view.php?id=59 - Works. config file is
copied from sample file. nothing changed.

Check Quota plugin 1.4
http://www.squirrelmail.org/plugin_view.php?id=237 - Works. config file is
copied from sample file. nothing changed.

You can use courier's authldap module with qmail-ldap, but courier 3.0.8
with qmail's auth-imap is better. It is provides better support and
flexibility. I suspect that with courier authldap module ldap server must
support authentication schemas used in passwords. openldap does not
support some of schemas used by qmail-ldap. It would be better to write
own authentication module designed for qmail-ldap, but use of courier's
authentication daemon only adds one more point of failure and limits
number of concurrent connections.

-- 
Tomas
--- authldaprc.orig	2005-04-27 13:35:33.000000000 +0300
+++ authldaprc	2005-04-27 14:25:01.004243600 +0300
@@ -27,7 +27,7 @@
 # Location of your LDAP server. If you have multiple LDAP servers,
 # you can list them separated by spaces, and they will be tried in turn.
 
-LDAP_SERVER		ldap.example.com
+LDAP_SERVER		localhost
 LDAP_PORT		389
 
 ##NAME: LDAP_PROTOCOL_VERSION:0
@@ -40,15 +40,15 @@
 #
 # Look for authentication here:
 
-LDAP_BASEDN		o=example, c=com
+LDAP_BASEDN		ou=pastas,dc=topolis,dc=inet
 
 ##NAME: LDAP_BINDDN:0
 #
 # You may or may not need to specify the following.  Because you've got
 # a password here, authldaprc should not be world-readable!!!
 
-LDAP_BINDDN		cn=administrator, o=example, c=com
-LDAP_BINDPW		toto
+LDAP_BINDDN		cn=qmail,dc=topolis,dc=inet
+LDAP_BINDPW		********
 
 ##NAME: LDAP_TIMEOUT:0
 #
@@ -65,13 +65,13 @@
 # Additionally, if LDAP_AUTHBIND is 1 then password changes are done under
 # the credentials of the user themselves, not LDAP_BINDDN/BINDPW
 #
-# LDAP_AUTHBIND		1
+LDAP_AUTHBIND		1
 
 ##NAME: LDAP_MAIL:0
 #
 # Here's the field on which we query
 
-LDAP_MAIL		mail
+LDAP_MAIL		uid
 
 ##NAME: LDAP_FILTER:0
 #
@@ -80,7 +80,7 @@
 # defined to be "(objectClass=CourierMailAccount)" the query that is performed
 # will be "(&(objectClass=CourierMailAccount)(mail=<someAccount>))"
 #
-# LDAP_FILTER           (objectClass=CourierMailAccount)
+LDAP_FILTER           (objectClass=qmailUser)
 
 ##NAME: LDAP_DOMAIN:0
 #
@@ -94,8 +94,8 @@
 # This is convenient if your LDAP specifies a bunch of virtual mail accounts
 # The values can be usernames or userids:
 #
-# LDAP_GLOB_UID		vmail
-# LDAP_GLOB_GID		vmail
+LDAP_GLOB_UID		vmail
+LDAP_GLOB_GID		vmail
 
 ##NAME: LDAP_HOMEDIR:0
 #
@@ -118,7 +118,7 @@
 # The MAILDIR attribute is OPTIONAL, and specifies the location of the
 # mail directory.  If not specified, ./Maildir will be used
 
-LDAP_MAILDIR		mailbox
+#LDAP_MAILDIR		mailbox
 
 ##NAME: LDAP_DEFAULTDELIVERY:0
 #
@@ -126,14 +126,14 @@
 # instructions for this account (if defined) -- essentially overrides
 # DEFAULTDELIVERY from ${sysconfdir}/courierd
 
-LDAP_DEFAULTDELIVERY	defaultDelivery
+#LDAP_DEFAULTDELIVERY	defaultDelivery
 
 ##NAME: LDAP_MAILDIRQUOTA:0
 #
 # The following variable, if defined, specifies the field containing the
 # maildir quota, see README.maildirquota for more information
 #
-# LDAP_MAILDIRQUOTA	quota
+LDAP_MAILDIRQUOTA	mailQuotaSize
 
 
 ##NAME: LDAP_FULLNAME:0
@@ -148,7 +148,7 @@
 # ONE OF THESE TWO ATTRIBUTES IS REQUIRED.  If CLEARPW is provided, and
 # libhmac.a is available, CRAM authentication will be possible!
 
-LDAP_CLEARPW		clearPassword
+#LDAP_CLEARPW		clearPassword
 LDAP_CRYPTPW		userPassword
 
 ##NAME: LDAP_IDS:0

Reply via email to