1

Topic: Debian-6.0 + iRedMail-0.7 + iRedAdminPro-1.4.1

I'm setting up a new Squeeze based iRedMail 0.7 server but have run into some issues with iRedAdmin Pro LDAP v-1.4.1. The install of iRedMail goes very smoothly but when I upgrade iRedAdmin to iRedAdmin Pro following the upgrade guide I encountered numerous errors.

Currently my iRedAdmin page states:
Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, webmaster@localhost and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.

The relevant log:
"[Thu Mar 24 09:48:34 2011] [notice] Apache/2.2.16 (Debian) mod_ssl/2.2.16 OpenSSL/0.9.8o mod_wsgi/3.3 Python/2.6.6 configured -- resuming normal operations
[Thu Mar 24 09:49:01 2011] [error] [client 66.7.96.4] mod_wsgi (pid=1172): Target WSGI script '/usr/share/apache2/iredadmin/iredadmin.py' cannot be loaded as Python module.
[Thu Mar 24 09:49:01 2011] [error] [client 66.7.96.4] mod_wsgi (pid=1172): Exception occurred processing WSGI script '/usr/share/apache2/iredadmin/iredadmin.py'.
[Thu Mar 24 09:49:01 2011] [error] [client 66.7.96.4] Traceback (most recent call last):
[Thu Mar 24 09:49:01 2011] [error] [client 66.7.96.4]   File "/usr/share/apache2/iredadmin/iredadmin.py", line 10, in <module>
[Thu Mar 24 09:49:01 2011] [error] [client 66.7.96.4]     from libs import iredbase
[Thu Mar 24 09:49:01 2011] [error] [client 66.7.96.4]   File "/usr/share/apache2/iredadmin/libs/iredbase.py", line 34, in <module>
[Thu Mar 24 09:49:01 2011] [error] [client 66.7.96.4]     webmaster = cfg.general.get('webmaster', 'root')
[Thu Mar 24 09:49:01 2011] [error] [client 66.7.96.4]   File "/usr/lib/pymodules/python2.6/web/utils.py", line 71, in __getattr__
[Thu Mar 24 09:49:01 2011] [error] [client 66.7.96.4]     raise AttributeError, k
[Thu Mar 24 09:49:01 2011] [error] [client 66.7.96.4] AttributeError: 'general'
[Thu Mar 24 09:49:01 2011] [error] [client 66.7.96.4] File does not exist: /var/www/favicon.ico"

2

Re: Debian-6.0 + iRedMail-0.7 + iRedAdminPro-1.4.1

monknoiz wrote:

[Thu Mar 24 09:49:01 2011] [error] [client 66.7.96.4]     raise AttributeError, k
[Thu Mar 24 09:49:01 2011] [error] [client 66.7.96.4] AttributeError: 'general'

You dont't have correct file permission on iRedAdmin config file: settings.ini. It must be owned by user 'iredadmin', file permission is 0700 or 0500.

3

Re: Debian-6.0 + iRedMail-0.7 + iRedAdminPro-1.4.1

Thanks!

4

Re: Debian-6.0 + iRedMail-0.7 + iRedAdminPro-1.4.1

I also think based on your tutorial there should be a trailing slash at the end :

# chown -R iredadmin:iredadmin iredadmin/              # <- Set correct file permission for iRedAdmin-Pro.

(http://www.iredmail.org/wiki/index.php? … ro/OSE-Pro)

After adding this (under ubuntu) the owner was fixed and it worked

5

Re: Debian-6.0 + iRedMail-0.7 + iRedAdminPro-1.4.1

Jochie wrote:

I also think based on your tutorial there should be a trailing slash at the end :

Updated, thanks very much. smile

6

Re: Debian-6.0 + iRedMail-0.7 + iRedAdminPro-1.4.1

I have also Debian 6.0 IredMail 0.7.1 and iRedAdmin v0.1.4.

When i want to create a user it just tells me:
Error: Page not found. (/create/user/test.local) Go back.

What can i do?

wynniphil

7

Re: Debian-6.0 + iRedMail-0.7 + iRedAdminPro-1.4.1

wynniphil wrote:

Error: Page not found. (/create/user/test.local) Go back.

iRedAdmin can handle domains which ends with dot + 2-4 characters, "test.local" is not a valid/real domain name (ends with dot + 5 characters), please use a valid one.

8

Re: Debian-6.0 + iRedMail-0.7 + iRedAdminPro-1.4.1

i am not sure if such a strict limit makes sense, if i use local domains in my lan, it also should work. also there is one valid topleveldomain i know which has 6 chars. -> .travel (don't know how to qualify to buy such a domain but it exists)

9

Re: Debian-6.0 + iRedMail-0.7 + iRedAdminPro-1.4.1

c33s wrote:

there is one valid top level domain i know which has 6 chars. -> .travel

Thanks for letting me know, fixed in iRedAdmin moment ago.