I'm trying to get quotas configured, and I'm having an issue with
maildrop not delivering the warning message.

It does in fact start to reject messages so I know that maildrop is in
fact reading in this information from ldap.  For some reason it won't
deliver the warning.


CONFIGS!

/etc/maildropldap.config
hostname                10.0.253.82
basedn                  ou=people,dc=horvitznewspapers,dc=net
filter                  &(objectclass=inetorgperson)
timeout                 5
search_method           mail
mail_attr               mail
uid_attr                uid
uidnumber_attr          uidNumber
gidnumber_attr          gidNumber
maildir_attr            gidNumber
maildir_attr            mailbox
homedirectory_attr      homeDirectory
quota_attr              quota

Maildrop is getting called via postfix's master.cf like so:
maildrop  unix  -       n       n       -       -       pipe
  flags=Rhu user=vmail argv=/usr/local/bin/maildrop -d ${recipient} -w 75

/etc/courier-imap/quotawarnmsg
From: Mail Delivery System <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
To: Valued Customer:;
Subject: Mail quota warning
Mime-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 7bit

Your mailbox on the server is now more than 90% full. So that you can continue
to receive mail you need to remove some messages from your mailbox.

<<I know the message says 90% and my postfix master.cf says 75%>>

LDAP entry for my test user with a 9 meg (-ish) quota.
dn: uid=bammbamm,ou=it,ou=people,dc=horvitznewspapers,dc=net
uid: bammbamm
givenName: Bamm
sn: Bamm
cn: Bamm Bamm
userPassword:: YmFtbV9zZWNyZXQ=
homeDirectory: /var/spool/mail/bammbamm
mail: [EMAIL PROTECTED]
maildrop: [EMAIL PROTECTED]
maildrop: [EMAIL PROTECTED]
maildrop: [EMAIL PROTECTED]
objectClass: CourierMailAlias
objectClass: CourierMailAccount
objectClass: inetOrgPerson
uidNumber: 1003
gidNumber: 1003
mailbox: /var/spool/mail/bammbamm/Maildir
quota: 9990507S

<<I don't care that I jsut posted the plaintext base64 password>>

--Bryan


-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
_______________________________________________
courier-users mailing list
[email protected]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users

Reply via email to