1

Topic: Error: Exceeded domain account limit.

I'm having trouble creating new accounts in iRedAdmin-Pro.

Even with available accounts for the domain (You can create 53 more mail user(s) under domain xxx.com), when trying to create new accounts, the error occurs:

Error: Exceeded domain account limit. Please contact your administrator or service provider to increase it.

I searched the forum and found the topic:

http://www.iredmail.org/forum/topic2020 … viour.html

We applied the changes to the script but the error persists.

which we use the iRedAdmin-Pro 1.1.0 Mysql.

How to proceed to solve?

----

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

2

Re: Error: Exceeded domain account limit.

M Martinatti wrote:

I searched the forum and found the topic:
http://www.iredmail.org/forum/topic2020 … viour.html
We applied the changes to the script but the error persists.

It should fix this issue. Did you restart Apache web server?

3

Re: Error: Exceeded domain account limit.

Hi ,

Yes, Apache was restart but error persists.

Exists an user admin who manages three domains. In each domain can create 100 accounts. Currently there are 50/100, 43/100, 3/100 and are not able to create any new account for any of the domains of user admin.

(?)

4

Re: Error: Exceeded domain account limit.

Did you successfully apply that patch (execute command 'patch' without option '--dry-run')? It should be fixed, still no idea why it doesn't work for you.

5

Re: Error: Exceeded domain account limit.

Hi Zhang,

The patch is only this? :


--- libs/mysql/admin.py    2011-05-18 14:54:44.000000000 +0800
+++ libs/mysql/admin.py    2011-05-19 22:09:37.000000000 +0800
@@ -119,7 +119,13 @@
         elif accountType == 'user':
             try:
                 if self.isGlobalAdmin(self.admin):
-                    result = self.conn.select('mailbox', what='COUNT(username) AS total')
+                    if len(self.domains) == 0:
+                        result = self.conn.select('mailbox', what='COUNT(username) AS total')
+                    else:
+                        result = self.conn.select('mailbox',
+                                                  what='COUNT(username) AS total',
+                                                  where='domain IN %s' % web.sqlquote(self.domains),
+                                                 )
                 else:
                     self.sql_append_where = ''
                     if len(self.domains) == 0:

6

Re: Error: Exceeded domain account limit.

One detail:

When new accounts are created with "Global  Admin" the error did not occur.

But when trying to create new accounts with the user who manages only those domains, it does the error mentioned.

Tks

7

Re: Error: Exceeded domain account limit.

I can't reproduce this issue, is it possible to let me login to your iRedAdmin-Pro and test it? Thanks for your help. smile