pls refer to :http://www.qmail-ldap.org/qmail/QLDAPINSTALL

ashish n kuvawala <[EMAIL PROTECTED]> wrote:

Hi all !


We have installed qmail with latest ldap patch qmail-ldap-1.03-20040101.patch.gz The openldap server is 2.0.27 . I am using Redhat 9 as operating system. The problem is that i have defined quota in ldapdefaultquota but still it allows messages more then defined quota size .



My example user ldap entry is # w.helpdesk, teaching, staff, welingkar, org
dn: cn=w.helpdesk, ou=teaching, ou=staff, dc=welingkar,dc=org
mailMessageStore: /mailbox/all/staff/teaching/w.helpdesk/
sn: w.helpdesk
mail: [EMAIL PROTECTED]
objectClass: top
objectClass: person
objectClass: inetOrgperson
objectClass: qmailuser
uid: w.helpdesk
accountStatus: active
cn: w.helpdesk
mailQuota: 1000000S,10000C
userPassword:: e2NyeXB0fVhPZk5YZGNrdHVBVGs=


The above entry signifies that the quota should be 1 mb but qmail allows mails with unlimited size.

The varius control files is as below




concurrencyincoming
50

custombouncetext
Please Contact the administrator for Problems.

defaultdomain
welingkar.org

dirmaker
/var/qmail/bin/dirmaker

ldapbasedn
dc=welingkar,dc=org

ldapdefaultquota
1000000S,200C

ldapgid
2110

ldaplocaldelivery
0

ldaplogin
cn=Manager,dc=welingkar,dc=org

ldapmessagestore
/mailbox/all

ldapobjectclass
qmailuser

ldappassword
manager

ldapserver
email.welingkar.org:389

ldapuid
11184

locals
localhost
welingkar.org

Makefile
# Simple Makefile to keep cdb databases up to date
# This Makefile assumes that tcprules and qmail-cdb are in your $PATH
# if not edit the next two lines.
TCPRULES=tcprules
QMAILRULES=qmail-cdb

FILES=     locals.cdb rcpthosts.cdb qmail-smtpd.cdb qmail-qmqpd.cdb \
     qmail-pop3d.cdb qmail-imapd.cdb

TMPFILE=rules.tmp

.SUFFIXES: .cdb .rules

all: $(FILES)
     @rm -f $(TMPFILE)

# locals and rcpthosts are special cases...
locals.cdb: locals
     $(QMAILRULES) locals.cdb $(TMPFILE) < locals

rcpthosts.cdb: rcpthosts
     $(QMAILRULES) rcpthosts.cdb $(TMPFILE) < rcpthosts

.rules.cdb:
     $(TCPRULES) $@ $(TMPFILE) < $<



me
welingkar.org

plusdomain
email.welingkar.org
welingkar.org

qmail-imapd.rules
:allow,IMAP_CAPABILITY="IMAP4rev1 CHILDREN NAMESPACE THREAD=ORDEREDSUBJECT THREAD=REFERENCES SORT QUOTA"

qmail-pop3d.rules
127.0.0.1:allow,NOPBS=""
# default allow
:allow

qmail-qmqpd.rules
accepts all
:deny

qmail-smtpd.rules

#
# SMTP server rules.
:allow

quotawarning
Your have exceeded the quota.remove the messages from your mailbox


rcpthosts
localhost
welingkar.org

smtproutes
:192.168.7.50


tcp.smtp
127.0.0.1:allow,RELAYCLIENT=""
192.168.:allow,RELAYCLIENT=""
:allow



If any one encountered same problem.


Ashish.




Do you Yahoo!?
Yahoo! Hotjobs: Enter the "Signing Bonus" Sweepstakes

Reply via email to