1

Topic: iredadmin increase log level?

==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version (check /etc/iredmail-release):
1.6.5 OPENLDAP edition.

- Deployed with iRedMail Easy or the downloadable installer?
- Linux/BSD distribution name and version:
ubuntu 20.04.6 lts

- Store mail accounts in which backend (LDAP/MySQL/PGSQL):
LDAP

- Web server (Apache or Nginx):
nginx

- Manage mail accounts with iRedAdmin-Pro?
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
====

When I navigate to:
https://server/iredadmin/admins

I get an internal server error. However, the logs aren't very helpful.

In syslog, only one line:
iredadmin: [192.168.1.1] GET /iredadmin/admins 500 198 "https://server/iredadmin/dashboard?checknew"

in nginx log:
192.168.1.1 - - [23/Nov/2023:14:39:42 +0100] "GET /iredadmin/admins HTTP/2.0" 500 21 "https://server/iredadmin/dashboard?checknew" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:109.0) Gecko/20100101 Firefox/118.0"

in iredapd.log, nothing new is printed.

Is there some other logfile I can look at? Or can I increase the log level to see what the actual error is? I even looked in the log table in the iredadmin database but there isn't anything relevant.

----

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

2

Re: iredadmin increase log level?

Append this line to /opt/www/iredadmin/settings.py, then restart "iredadmin" service:

MAIL_ERROR_TO_WEBMASTER = True

When "500 internal server error" happens, iRedAdmin-Pro will send a (HTML) email to webmaster with details.