1

Topic: Can't add any Domains/Users

==== Required information ====
- iRedMail version: 0.8.3
- Store mail accounts in which backend (LDAP/MySQL/PGSQL):  Mysql
- Linux/BSD distribution name and version: Debian 6 Squeeze
- Related log if you're reporting an issue:
====
Hi,

I have since yesterday a problem i cant add users:

http://s14.directupload.net/file/d/3147 … ph_png.htm
http://s1.directupload.net/file/d/3147/om6336oh_png.htm
So how can i fix this? Thanks.

----

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

2

Re: Can't add any Domains/Users

no solution?

3

Re: Can't add any Domains/Users

No idea yet, sorry. Does logout and re-login fix this issue?

4

Re: Can't add any Domains/Users

I found the Bug, when you change the Password from the user postmaster..... nothing works anymore only rouncubemail

5

Re: Can't add any Domains/Users

It's a bug in iRedAdmin-Pro-MySQL-1.5.1, May i know which version of iRedAdmin do you use? iRedAdmin-Pro-MySQL?
I can send you the development edition if you want.

6 (edited by Neoon 2013-02-02 08:15:39)

Re: Can't add any Domains/Users

I use the Free Version Mysql, the newst.

7

Re: Can't add any Domains/Users

Could you please try this patch, then restart Apache server and try again?
https://bitbucket.org/zhb/iredadmin-ose … 87b892dc73

8 (edited by haosteam 2013-02-14 17:21:19)

Re: Can't add any Domains/Users

ZhangHuangbin wrote:

Could you please try this patch, then restart Apache server and try again?
https://bitbucket.org/zhb/iredadmin-ose … 87b892dc73

Now after trying add new user: Internal server error
In Apache error log:

 Traceback (most recent call last):
 File "/usr/lib/pymodules/python2.7/web/application.py", line 242, in process
 return self.handle()
 File "/usr/lib/pymodules/python2.7/web/application.py", line 233, in handle
 return self._delegate(fn, self.fvars, args)
 File "/usr/lib/pymodules/python2.7/web/application.py", line 415, in _delegate
     return handle_class(cls)
 File "/usr/lib/pymodules/python2.7/web/application.py", line 390, in handle_class
 return tocall(*args)
 File "/usr/share/apache2/iredadmin/controllers/decorators.py", line 33, in decorated
 return f(*args, **kw)
 File "/usr/share/apache2/iredadmin/controllers/decorators.py", line 11, in proxyfunc
return func(self, *args, **kw)
 File "/usr/share/apache2/iredadmin/controllers/mysql/user.py", line 202, in POST
 result = userLib.add(domain=self.cur_domain, data=i)
 File "/usr/share/apache2/iredadmin/libs/mysql/decorators.py", line 21, in proxyfunc
return func(*args, **kw)
   File "/usr/share/apache2/iredadmin/libs/mysql/user.py", line 229, in add
   passwd = iredutils.generate_password_for_sql_mail_account(resultOfPW[1], pwscheme=pwscheme)
 AttributeError: 'module' object has no attribute 'generate_password_for_sql_mail_account'

9

Re: Can't add any Domains/Users

May i know which version of iRedAdmin you're running? Is it iRedAdmin-Pro?

10

Re: Can't add any Domains/Users

I have this problem too after changing password.
I try your patch, but did not work.
I'm using non pro version.

11

Re: Can't add any Domains/Users

Hello,

I guess the problem is in the update password form, because there was no record in domain_admins table, so I added defaut recort in domain_admins and all work now.

I'm sorry for my English...

12

Re: Can't add any Domains/Users

Hi georgy.vas,

Here's patch to fix this issue:
https://bitbucket.org/zhb/iredadmin-ose … 87b892dc73

It should work as expected. If it doesn't, please paste command and output while you patching it.