1

Topic: mysql quota wrong calculation...

==== Provide basic information to help troubleshoot ====
LDAP backend

Quota gets calculated per user and per alias if you login with shadowaddress, so both emails gets their own quota. Problem is
when you login and clean messages as shadowaddress and relog as mail the quotas are different... so basically you just need to standardize the username to either one of them and have password_query and user_query return "user" field for that

pass_attrs      = userPassword=password
user_attrs  = homeDirectory=home,mailMessageStore=mail=maildir:/var/vmail/%$/Maildir/,mailQuota=quota_rule=*:bytes=%$

should be

pass_attrs      = mail=user,userPassword=password
user_attrs = mail=user,homeDirectory=home,mailMessageStore=mail=maildir:/var/vmail/%$/Maildir/,mailQuota=quota_rule=*:bytes=%$



- iRedMail version: 0.7.3
- Linux/BSD distribution name and version: fbsd 8.2
- Any related log? Log is helpful for troubleshooting.
======== Provide basic information to help troubleshoot ====
- iRedMail version:
- Linux/BSD distribution name and version:
- Any related log? Log is helpful for troubleshooting.
====

----

Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.

2

Re: mysql quota wrong calculation...

Looks like a bug in iRedMail, i will test your solution and fix it in next release.

Thanks very much for your contribution. smile

3

Re: mysql quota wrong calculation...

Fixed moment ago:
https://bitbucket.org/zhb/iredmail/chan … 5d4e38ff5f

Thanks again for your feedback and fix.