1

Topic: internal server error 500

==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version : 1.6.3
- Deployed with iRedMail Easy or the downloadable installer? downloadable installer
- Linux/BSD distribution name and version: Debian 11.7
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MySQL
- Web server (Apache or Nginx): Nginx
- Manage mail accounts with iRedAdmin-Pro? No
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
====

Hello, notification, when creating a new user, administrator, setup, information about an "internal server error" began to appear.

tail -f /var/log/messages

log in, GET /iredadmin/profile/user/general/postmaster@xxxx.xx 500 199

GET /iredadmin/create/admin 500 199
--------------------------------------------------
The server was rebooting, the configuration is fresh, test.
--------------------------------------------------
In the file /opt/www/iredadmin/libs/default_settings.py there were changes to
MAILDIR_HASHED = False
MAILDIR_APPEND_TIMESTAMP = False

but then I returned it to the standard values

MAILDIR_HASHED = True
MAILDIR_APPEND_TIMESTAMP = True

----

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

2

Re: internal server error 500

I ask for help, because I don't quite understand how to solve this problem, no more configuration files were touched. Before the error, everything worked well, we got several users to test the mail.

I apologize for the text, I may not be writing correctly

3

Re: internal server error 500

Any error in /var/log/syslog while this issue happens?
We need related log lines for troubleshooting.

4

Re: internal server error 500

Jun 27 07:56:41 mail iredadmin: [192.168.0.205] GET /iredadmin/create/admin 500 199 "/192.168.0.83/iredadmin/dashboard?checknew"
Jun 27 07:57:01 mail CRON[61513]: (root) CMD (/bin/bash /usr/local/bin/fail2ban_banned_db unban_db)
Jun 27 07:57:02 mail iredadmin: [192.168.0.205] GET /iredadmin/create/user 303 230 "/192.168.0.83/iredadmin/dashboard?checknew"
Jun 27 07:57:02 mail iredadmin: [192.168.0.205] GET /iredadmin/create/user/example.xxx 500 199 "/192.168.0.83/iredadmin/dashboard?checknew"

5

Re: internal server error 500

- Is "mlmmjadmin" service running?
- Any related error in /var/log/syslog?

6

Re: internal server error 500

systemctl status mlmmjadmin
● mlmmjadmin.service - RESTful API server used to manage mlmmj mailing list manager
     Loaded: loaded (/lib/systemd/system/mlmmjadmin.service; enabled; vendor preset: enabled)
     Active: active (running) since Mon 2023-06-26 11:29:47 +05; 3 days ago

7

Re: internal server error 500

Jun 30 10:47:13 mail systemd[1]: Stopping RESTful API server used to manage mlmmj mailing list manager...
Jun 30 10:47:15 mail systemd[1]: mlmmjadmin.service: Succeeded.
Jun 30 10:47:15 mail systemd[1]: Stopped RESTful API server used to manage mlmmj mailing list manager.
Jun 30 10:47:15 mail systemd[1]: mlmmjadmin.service: Consumed 14.898s CPU time.
Jun 30 10:47:15 mail systemd[1]: Starting RESTful API server used to manage mlmmj mailing list manager...
Jun 30 10:47:15 mail systemd[1]: Started RESTful API server used to manage mlmmj mailing list manager.

8

Re: internal server error 500

Jun 30 10:47:15 mail uwsgi[273482]: [uWSGI] getting INI configuration from /opt/mlmmjadmin/rc_scripts/uwsgi/debian.ini
Jun 30 10:47:49 mail roundcube: <a38dnt23> Successful login for user01@ (ID: 1) from 192.168.0.205 in session a38dnt23k91ntgu5
Jun 30 10:47:53 mail iredadmin: [192.168.0.205] GET /iredadmin/users/xxx.xx 303 233 "------192.168.0.83/iredadmin/domains"
Jun 30 10:47:53 mail iredadmin: [192.168.0.205] GET /iredadmin/login?msg=LOGIN_REQUIRED 200 5674 "------:192.168.0.83/iredadmin/domains"
Jun 30 10:47:59 mail iredadmin: [192.168.0.205] GET /iredadmin/login?lang=ru_RU 200 5419 "[]------:192.168.0.83/iredadmin/login?msg=LOGIN_REQUIRED[/]"
Jun 30 10:48:01 mail CRON[273532]: (root) CMD (/bin/bash /usr/local/bin/fail2ban_banned_db unban_db)
Jun 30 10:48:04 mail iredadmin Admin login success admin=postmaster@xxx.xx, domain=, username=, event=login, ip=192.168.0.205 (/opt/www/iRedAdmin-2.3/libs/logger.py, L72)
Jun 30 10:48:04 mail iredadmin: [192.168.0.205] POST /iredadmin/login 303 227 "------:192.168.0.83/iredadmin/login?lang=ru_RU"
Jun 30 10:48:05 mail iredadmin: [192.168.0.205] GET /iredadmin/dashboard?checknew 200 13700 "------:192.168.0.83/iredadmin/login?lang=ru_RU"
Jun 30 10:48:08 mail iredadmin: [192.168.0.205] GET /iredadmin/profile/user/general/postmaster@xxx.xx 500 199 "------:192.168.0.83/iredadmin/dashboard?checknew"
Jun 30 10:49:01 mail CRON[273579]: (root) CMD (/bin/bash /usr/local/bin/fail2ban_banned_db unban_db)

9

Re: internal server error 500

Hi, reinstall iredmail, old system testing