1 (edited by alirezahbb 2013-12-03 23:12:15)

Topic: Problem With iredadmin-pro

==== Required information ====
- iRedMail version: 0.8.5
- Store mail accounts in which backend (LDAP/MySQL/PGSQL):  MYSQL
- Linux/BSD distribution name and version:  Debian 7
- Related log if you're reporting an issue:
====

recently i installed iredmail 0.8.5 and start using iRedadmin-Pro 1.7

in my admin pannel

when clicking on Edit Account profile or Edit Domain
i got blank page with internal server error

in my log:

[Tue Dec 03 18:25:58 2013] [error] [client X]   File "/usr/lib/python2.7/dist-packages/web/application.py", line 420, in _delegate
[Tue Dec 03 18:25:58 2013] [error] [client X]     return handle_class(cls)
[Tue Dec 03 18:25:58 2013] [error] [client X]   File "/usr/lib/python2.7/dist-packages/web/application.py", line 396, in handle_class
[Tue Dec 03 18:25:58 2013] [error] [client X]     return tocall(*args)
[Tue Dec 03 18:25:58 2013] [error] [client X]   File "/usr/share/apache2/iredadmin/controllers/decorators.py", line 11, in proxyfunc
[Tue Dec 03 18:25:58 2013] [error] [client X]     return func(self, *args, **kw)
[Tue Dec 03 18:25:58 2013] [error] [client X]   File "/usr/share/apache2/iredadmin/controllers/mysql/domain.py", line 127, in GET
[Tue Dec 03 18:25:58 2013] [error] [client X]     throttleLib = throttle.Throttle()
[Tue Dec 03 18:25:58 2013] [error] [client X] TypeError: __init__() should return None, not 'tuple'
[Tue Dec 03 18:25:58 2013] [error] [client X]


i noticed that there isn't any database postfixpolicyd  after installation

i tried importing Postfixpolicyd.sql from iredmail.org  but no success.


problem displayed also when clicking on Blacklist/whitelist 


[Tue Dec 03 18:37:53 2013] [error] [client X] Traceback (most recent call last):
[Tue Dec 03 18:37:53 2013] [error] [client X]   File "/usr/lib/python2.7/dist-packages/web/application.py", line 239, in process
[Tue Dec 03 18:37:53 2013] [error] [client X]     return self.handle()
[Tue Dec 03 18:37:53 2013] [error] [client X]   File "/usr/lib/python2.7/dist-packages/web/application.py", line 230, in handle
[Tue Dec 03 18:37:53 2013] [error] [client X]     return self._delegate(fn, self.fvars, args)
[Tue Dec 03 18:37:53 2013] [error] [client X]   File "/usr/lib/python2.7/dist-packages/web/application.py", line 420, in _delegate
[Tue Dec 03 18:37:53 2013] [error] [client X]     return handle_class(cls)
[Tue Dec 03 18:37:53 2013] [error] [client X]   File "/usr/lib/python2.7/dist-packages/web/application.py", line 396, in handle_class
[Tue Dec 03 18:37:53 2013] [error] [client X]     return tocall(*args)
[Tue Dec 03 18:37:53 2013] [error] [client X]   File "/usr/share/apache2/iredadmin/controllers/decorators.py", line 21, in proxyfunc
[Tue Dec 03 18:37:53 2013] [error] [client X]     return func(self, *args, **kw)
[Tue Dec 03 18:37:53 2013] [error] [client X]   File "/usr/share/apache2/iredadmin/controllers/policyd/blacklist.py", line 18, in GET
[Tue Dec 03 18:37:53 2013] [error] [client X]     blacklistLib = blist.Blacklist()
[Tue Dec 03 18:37:53 2013] [error] [client X] TypeError: __init__() should return None, not 'tuple'


Any Idea?

----

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

2

Re: Problem With iredadmin-pro

iRedAdmin-Pro doesn't support Policyd, but you enabled Policyd integration in iRedAdmin-Pro config file (/usr/share/apache2/iredadmin/settings.ini). Please fix it by following below steps:

*) Update iRedAdmin-Pro config file to disable Policyd integration:

[policyd]
enabled = False

*) Restart Apache service to reload updated iRedAdmin-Pro config file.

*) Logout from iRedAdmin-Pro, then re-login.

3

Re: Problem With iredadmin-pro

Thanks for your replay

but how can i use blacklist,WhiteList,throttling and ... with disabled policyd???

4

Re: Problem With iredadmin-pro

Upcoming iRedAdmin-Pro supports Cluebringer, so you can manage whitelist/blacklist/greylisting/throttling with iRedAdmin-Pro. Coming soon.

5

Re: Problem With iredadmin-pro

1- what will be happened if i install postfix-policyd with iredadmin-pro 1.7

and change setting.ini to:
# Enable policyd integration: True, False.
enabled = True

dose it works?

2- i noticed that Cluebringer is installed

i change my setting to:

# Enable policyd integration: True, False.
enabled = True

        Database name: cluebringer
        - Database user: cluebringer
        - Database password: *******

and my blacklist & whitelist is now accessible
but not sure they works properly or not
what is your idea?

6

Re: Problem With iredadmin-pro

alirezahbb wrote:

1- what will be happened if i install postfix-policyd with iredadmin-pro 1.7

Debian 7 doesn't provide Policyd package in official apt repository.

alirezahbb wrote:

2- i noticed that Cluebringer is installed
i change my setting to:
# Enable policyd integration: True, False.
enabled = True

The iRedAdmin-Pro version you're running doesn't support Cluebringer yet, so please don't enable it.
Just wait for some days please, new release of iRedMail and iRedAdmin-Pro are coming.

- iRedMail-0.8.6
- iRedAdmin-Pro-LDAP-2.1
- iRedAdmin-Pro-MySQL-1.8.0
- iRedAdmin-Pro-PGSQL-1.4.0