1

Topic: Unlimited mail quota allocation

==== Required information ====
- iRedMail version (check /etc/iredmail-release): 0.9.4
- Linux/BSD distribution name and version: CentOS6.5
- Store mail accounts in which backend (LDAP/MySQL/PGSQL):LDAP
- Web server (Apache or Nginx):Apache
- Manage mail accounts with iRedAdmin-Pro? No
- Related log if you're reporting an issue: No
====

Hi,
I've successfully migrated from old version to new version 0.9.4. Thanks to the migration document. Though I ran into some trouble while restoring LDAP account, we were able to fix it.

As we have migrated to a better system, I want to allocate unlimited mail quota to all the users. I've around 2200 user accounts and is tough job to update the mail quota for each user from admin console, please suggest me if there is any alternative way to update the quota value globally..

Thanks
Divakar BM

----

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

2

Re: Unlimited mail quota allocation

The easiest way is writing a script in shell/Python/Perl/..., query all mail accounts, then update them.

I will try to implement this as a RESTful API in future release of iRedAdmin-Pro.

3

Re: Unlimited mail quota allocation

Just found the script (update_mailbox_quota_ldap.py ) i wrote about 5 years ago:
https://bitbucket.org/zhb/iredmail/src/ … at=default

You need to update several parameters before running it:

# Note:
#   * bind_dn must have write privilege on LDAP server.
uri = 'ldap://127.0.0.1:389'
bind_dn = 'cn=vmailadmin,dc=iredmail,dc=org'
bind_pw = 'passwd'

# Base dn used to update ALL mail users.
basedn = 'o=domains,dc=iredmail,dc=org'
# Base dn used to update users under domain 'example.com'.
#basedn = 'ou=Users,domainName=example.com,o=domains,dc=iredmail,dc=org'

new_quota = 2048   # quota size in MB

4

Re: Unlimited mail quota allocation

Thanks Zhang.. I'll try the script and post back..

Divakar BM