Quantcast
Channel: iRedMail — iRedMail Support
Viewing all 43338 articles
Browse latest View live

iRedMail on freebsd 13.3

$
0
0

==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version (check /etc/iredmail-release): 1.7.0
- Deployed with iRedMail Easy or the downloadable installer?Yes
- Linux/BSD distribution name and version: Freebsd 13.3
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): PGSQL
- 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.
====

Installation fails, for freebsd 13.3 , getting the following error.

===>  lsof-4.99.3_2,8 requires kernel sources.
*** Error code 1

Stop.
make[1]: stopped in /usr/ports/sysutils/lsof
*** Error code 1

Stop.
make: stopped in /usr/ports/devel/py-Jinja2
<< ERROR >> Failed in downloading package(s), please fix it manually and then relaunch iRedMail installer.


Re: netdata connection refused after upgrade to iredmail 1.6.3

$
0
0

Restarting php-fpm didn't help. I don't see that line:

# grep listen /etc/php/8.2/fpm/pool.d/www.conf 
; - 'listen' (unixsocket)
;   'ip.add.re.ss:port'    - to listen on a TCP socket to a specific IPv4 address on
;   '[ip:6:addr:ess]:port' - to listen on a TCP socket to a specific IPv6 address on
;   'port'                 - to listen on a TCP socket to all addresses
;   '/path/to/unix/socket' - to listen on a unix socket.
listen = /run/php/php8.2-fpm.sock
; Set listen(2) backlog.
;listen.backlog = 511
listen.owner = www-data
listen.group = www-data
;listen.mode = 0660
; When set, listen.owner and listen.group are ignored
;listen.acl_users =
;listen.acl_groups =
; PHP FCGI (5.2.2+). Makes sense only with a tcp listening socket. Each address
;listen.allowed_clients = 127.0.0.1
;listen.setfib = 1
;   listen queue         - the number of request in the queue of pending
;                          connections (see backlog in listen(2));
;   max listen queue     - the maximum number of requests in the queue
;   listen queue len     - the size of the socket queue of pending connections;
;   listen queue:         0
;   max listen queue:     1
;   listen queue len:     42
;   'ip.add.re.ss:port'    - to listen on a TCP socket to a specific IPv4 address on
;   '[ip:6:addr:ess]:port' - to listen on a TCP socket to a specific IPv6 address on
;   'port'                 - to listen on a TCP socket to all addresses
;   '/path/to/unix/socket' - to listen on a unix socket.
; Default Value: value of the listen option
;pm.status_listen = 127.0.0.1:9001

Different domain for roundcube webmail than mailserver domain

$
0
0

==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version (check /etc/iredmail-release): 1.7.0
- Deployed with iRedMail Easy or the downloadable installer? downloadable installer
- Linux/BSD distribution name and version: Ubuntu 24.04
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MariaDB
- 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.
====

Hi there,
is it possible to set a different domain for roundcube webmail and iRedAdmin than the one used as hostname?
My mailserver hostname is mail.xyz.com and roundcube is on mail.xyz.com/mail
I want to use a different domain for webmail and iRedAdmin like roundcube.xyz.com/mail

Thanks.

iRedMail-1.7.0. ://ip/iredadmin/login - internal server error

$
0
0

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

- Deployed with iRedMail Easy or the downloadable installer?
downloadable installer

- Linux/BSD distribution name and version:
Ubuntu 24.04 LTS

- 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.
====


I get an error after entering my name and password - "internal server error"

://ip/iredadmin/login
"internal server error"


/var/log/syslog

mail iredadmin: WSGI app 1 (mountpoint='192.168.100.191|/iredadmin') ready in 0 seconds on interpreter 0x75f8fd0cc930 pid: 1496
mail iredadmin: [172.88.41.191] GET /iredadmin/ 200 5526 "-"
mail iredadmin: WSGI app 1 (mountpoint='192.168.100.191|/iredadmin') ready in 0 seconds on interpreter 0x75f8fd0cc930 pid: 1497
mail iredadmin: [172.88.41.191] POST /iredadmin/login 500 199
://192.168.100.191/iredadmin/"

cd /opt/www/iredadmin/
python3 iredadmin.py

Traceback (most recent call last):
  File "/opt/www/iRedAdmin-2.6/iredadmin.py", line 16, in <module>
    app.run()
  File "/opt/www/iRedAdmin-2.6/web/application.py", line 357, in run
    return wsgi.runwsgi(self.wsgifunc(*middleware))
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/www/iRedAdmin-2.6/web/wsgi.py", line 66, in runwsgi
    return httpserver.runsimple(func, server_addr)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/www/iRedAdmin-2.6/web/httpserver.py", line 152, in runsimple
    server = WSGIServer(server_address, func)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/www/iRedAdmin-2.6/web/httpserver.py", line 173, in WSGIServer
    from cheroot import wsgi
ModuleNotFoundError: No module named 'cheroot'



service iredadmin status


● iredadmin.service - iRedAdmin daemon service
     Loaded: loaded (/usr/lib/systemd/system/iredadmin.service; enabled; preset: enabled)
     Active: active (running) since Sat 2024-08-03 19:35:15 MSK; 6min ago
    Process: 1065 ExecStartPre=/bin/mkdir -p /var/run/iredadmin (code=exited, status=0/SUCCESS)
    Process: 1145 ExecStartPre=/bin/chown iredadmin:iredadmin /var/run/iredadmin (code=exited, status=0/SUCCESS)
    Process: 1162 ExecStartPre=/bin/chmod 0755 /var/run/iredadmin (code=exited, status=0/SUCCESS)
   Main PID: 1173 (uwsgi)
      Tasks: 6 (limit: 4614)
     Memory: 74.7M (peak: 74.9M)
        CPU: 765ms
     CGroup: /system.slice/iredadmin.service
             ├─1173 /usr/bin/uwsgi --ini /opt/www/iredadmin/rc_scripts/uwsgi/debian.ini --pidfile /var/run/iredadmin/iredadmin.pid
             ├─1484 /usr/bin/uwsgi --ini /opt/www/iredadmin/rc_scripts/uwsgi/debian.ini --pidfile /var/run/iredadmin/iredadmin.pid
             ├─1485 /usr/bin/uwsgi --ini /opt/www/iredadmin/rc_scripts/uwsgi/debian.ini --pidfile /var/run/iredadmin/iredadmin.pid
             ├─1492 /usr/bin/uwsgi --ini /opt/www/iredadmin/rc_scripts/uwsgi/debian.ini --pidfile /var/run/iredadmin/iredadmin.pid
             ├─1496 /usr/bin/uwsgi --ini /opt/www/iredadmin/rc_scripts/uwsgi/debian.ini --pidfile /var/run/iredadmin/iredadmin.pid
             └─1497 /usr/bin/uwsgi --ini /opt/www/iredadmin/rc_scripts/uwsgi/debian.ini --pidfile /var/run/iredadmin/iredadmin.pid

авг 03 19:35:16 mail.tds-sofi.spb.ru iredadmin[1173]: spawned uWSGI master process (pid: 1173)
авг 03 19:35:16 mail.tds-sofi.spb.ru iredadmin[1173]: spawned uWSGI worker 1 (pid: 1484, cores: 1)
авг 03 19:35:16 mail.tds-sofi.spb.ru iredadmin[1173]: spawned uWSGI worker 2 (pid: 1485, cores: 1)
авг 03 19:35:16 mail.tds-sofi.spb.ru iredadmin[1173]: spawned uWSGI worker 3 (pid: 1492, cores: 1)
авг 03 19:35:16 mail.tds-sofi.spb.ru iredadmin[1173]: spawned uWSGI worker 4 (pid: 1496, cores: 1)
авг 03 19:35:16 mail.tds-sofi.spb.ru iredadmin[1173]: spawned uWSGI worker 5 (pid: 1497, cores: 1)
авг 03 19:37:24 mail.tds-sofi.spb.ru iredadmin[1173]: WSGI app 1 (mountpoint='192.168.100.191|/iredadmin') ready in 0 seconds on interpreter 0x75f8fd0cc930 pid: 1496
авг 03 19:37:25 mail.tds-sofi.spb.ru iredadmin[1173]: [172.88.41.191] GET /iredadmin/ 200 5526 "-"
авг 03 19:37:43 mail.tds-sofi.spb.ru iredadmin[1173]: WSGI app 1 (mountpoint='192.168.100.191|/iredadmin') ready in 0 seconds on interpreter 0x75f8fd0cc930 pid: 1497
авг 03 19:37:43 mail.tds-sofi.spb.ru iredadmin[1173]: [172.88.41.191] POST /iredadmin/login 500 199 "://192.168.100.191/iredadmin"



apt list --installed | grep pyt



libpython3-dev/noble,now 3.12.3-0ubuntu1 amd64 [установлен, автоматически]
libpython3-stdlib/noble,now 3.12.3-0ubuntu1 amd64 [установлен, автоматически]
libpython3.12-dev/noble-updates,noble-security,now 3.12.3-1ubuntu0.1 amd64 [установлен, автоматически]
libpython3.12-minimal/noble-updates,noble-security,now 3.12.3-1ubuntu0.1 amd64 [установлен, автоматически]
libpython3.12-stdlib/noble-updates,noble-security,now 3.12.3-1ubuntu0.1 amd64 [установлен, автоматически]
libpython3.12t64/noble-updates,noble-security,now 3.12.3-1ubuntu0.1 amd64 [установлен, автоматически]
python-apt-common/noble,now 2.7.7ubuntu1 all [установлен, автоматически]
python-babel-localedata/noble,now 2.10.3-3build1 all [установлен, автоматически]
python3-apport/noble-updates,now 2.28.1-0ubuntu3 all [установлен, автоматически]
python3-apt/noble,now 2.7.7ubuntu1 amd64 [установлен, автоматически]
python3-argcomplete/noble,now 3.1.4-1 all [установлен, автоматически]
python3-attr/noble,now 23.2.0-2 all [установлен, автоматически]
python3-automat/noble,now 22.10.0-2 all [установлен, автоматически]
python3-babel/noble,now 2.10.3-3build1 all [установлен, автоматически]
python3-bcrypt/noble,now 3.2.2-1build1 amd64 [установлен]
python3-blinker/noble,now 1.7.0-1 all [установлен, автоматически]
python3-bpfcc/noble,now 0.29.1+ds-1ubuntu7 all [установлен, автоматически]
python3-certifi/noble,now 2023.11.17-1 all [установлен, автоматически]
python3-cffi-backend/noble,now 1.16.0-2build1 amd64 [установлен, автоматически]
python3-chardet/noble,now 5.2.0+dfsg-1 all [установлен, автоматически]
python3-click/noble,now 8.1.6-2 all [установлен, автоматически]
python3-colorama/noble,now 0.4.6-4 all [установлен, автоматически]
python3-commandnotfound/noble,now 23.04.0 all [установлен, автоматически]
python3-configobj/noble,now 5.0.8-3 all [установлен, автоматически]
python3-constantly/noble,now 23.10.4-1 all [установлен, автоматически]
python3-cryptography/noble-updates,noble-security,now 41.0.7-4ubuntu0.1 amd64 [установлен, автоматически]
python3-dbus/noble,now 1.3.2-5build3 amd64 [установлен, автоматически]
python3-debconf/noble,now 1.5.86ubuntu1 all [установлен, автоматически]
python3-debian/noble,now 0.1.49ubuntu2 all [установлен, автоматически]
python3-dev/noble,now 3.12.3-0ubuntu1 amd64 [установлен, автоматически]
python3-distro-info/noble,now 1.7build1 all [установлен, автоматически]
python3-distro/noble,now 1.9.0-1 all [установлен, автоматически]
python3-distupgrade/noble-updates,now 1:24.04.19 all [установлен, автоматически]
python3-dnspython/noble,now 2.6.1-1ubuntu1 all [установлен]
python3-gdbm/noble,now 3.12.3-0ubuntu1 amd64 [установлен, автоматически]
python3-gi/noble,now 3.48.2-1 amd64 [установлен, автоматически]
python3-greenlet/noble,now 3.0.3-0ubuntu5 amd64 [установлен, автоматически]
python3-hamcrest/noble,now 2.1.0-1 all [установлен, автоматически]
python3-httplib2/noble,now 0.20.4-3 all [установлен, автоматически]
python3-hyperlink/noble,now 21.0.0-5 all [установлен, автоматически]
python3-idna/noble-updates,noble-security,now 3.6-2ubuntu0.1 all [установлен, автоматически]
python3-incremental/noble,now 22.10.0-1 all [установлен, автоматически]
python3-jinja2/noble-updates,noble-security,now 3.1.2-1ubuntu1.1 all [установлен]
python3-json-pointer/noble,now 2.0-0ubuntu1 all [установлен, автоматически]
python3-jsonpatch/noble,now 1.32-3 all [установлен, автоматически]
python3-jsonschema/noble,now 4.10.3-2ubuntu1 all [установлен, автоматически]
python3-jwt/noble,now 2.7.0-1 all [установлен, автоматически]
python3-launchpadlib/noble,now 1.11.0-6 all [установлен, автоматически]
python3-lazr.restfulclient/noble,now 0.14.6-1 all [установлен, автоматически]
python3-lazr.uri/noble,now 1.0.6-3 all [установлен, автоматически]
python3-magic/noble,now 2:0.4.27-3 all [установлен, автоматически]
python3-markdown-it/noble,now 3.0.0-2 all [установлен, автоматически]
python3-markupsafe/noble,now 2.1.5-1build2 amd64 [установлен, автоматически]
python3-mdurl/noble,now 0.1.2-1 all [установлен, автоматически]
python3-minimal/noble,now 3.12.3-0ubuntu1 amd64 [установлен, автоматически]
python3-netaddr/noble,now 0.8.0-2ubuntu1 all [установлен, автоматически]
python3-netifaces/noble,now 0.11.0-2build3 amd64 [установлен]
python3-netplan/noble-updates,noble-security,now 1.0-2ubuntu1.2 amd64 [установлен, автоматически]
python3-newt/noble,now 0.52.24-2ubuntu2 amd64 [установлен, автоматически]
python3-oauthlib/noble,now 3.2.2-1 all [установлен, автоматически]
python3-openssl/noble,now 23.2.0-1 all [установлен, автоматически]
python3-packaging/noble,now 24.0-1 all [установлен, автоматически]
python3-pexpect/noble,now 4.9-2 all [установлен, автоматически]
python3-pip-whl/noble,now 24.0+dfsg-1ubuntu1 all [установлен, автоматически]
python3-pip/noble,now 24.0+dfsg-1ubuntu1 all [установлен]
python3-pkg-resources/noble,now 68.1.2-2ubuntu1 all [установлен, автоматически]
python3-platformdirs/noble,now 4.2.0-1 all [установлен, автоматически]
python3-problem-report/noble-updates,now 2.28.1-0ubuntu3 all [установлен, автоматически]
python3-psutil/noble,now 5.9.8-2build2 amd64 [установлен, автоматически]
python3-ptyprocess/noble,now 0.7.0-5 all [установлен, автоматически]
python3-pyasn1-modules/noble,now 0.2.8-1 all [установлен, автоматически]
python3-pyasn1/noble,now 0.4.8-4 all [установлен, автоматически]
python3-pyasyncore/noble,now 1.0.2-2 all [установлен, автоматически]
python3-pygments/noble,now 2.17.2+dfsg-1 all [установлен, автоматически]
python3-pyinotify/noble,now 0.9.6-2ubuntu1 all [установлен, автоматически]
python3-pymysql/noble-updates,noble-security,now 1.0.2-2ubuntu1.1 all [установлен]
python3-pyparsing/noble,now 3.1.1-1 all [установлен, автоматически]
python3-pyrsistent/noble,now 0.20.0-1build2 amd64 [установлен, автоматически]
python3-requests/noble,now 2.31.0+dfsg-1ubuntu1 all [установлен]
python3-rich/noble,now 13.7.1-1 all [установлен, автоматически]
python3-serial/noble,now 3.5-2 all [установлен, автоматически]
python3-service-identity/noble,now 24.1.0-1 all [установлен, автоматически]
python3-setuptools-whl/noble,now 68.1.2-2ubuntu1 all [установлен, автоматически]
python3-setuptools/noble,now 68.1.2-2ubuntu1 all [установлен]
python3-simplejson/noble,now 3.19.2-1build2 amd64 [установлен]
python3-six/noble,now 1.16.0-4 all [установлен, автоматически]
python3-software-properties/noble,now 0.99.48 all [установлен, автоматически]
python3-sqlalchemy-ext/noble,now 1.4.50+ds1-1build1 amd64 [установлен, автоматически]
python3-sqlalchemy/noble,now 1.4.50+ds1-1build1 all [установлен]
python3-systemd/noble,now 235-1build4 amd64 [установлен, автоматически]
python3-twisted/noble,now 24.3.0-1 all [установлен, автоматически]
python3-tz/noble,now 2024.1-2 all [установлен, автоматически]
python3-update-manager/noble,now 1:24.04.6 all [установлен, автоматически]
python3-urllib3/noble,now 2.0.7-1 all [установлен, автоматически]
python3-userpath/noble,now 1.9.1-1 all [установлен, автоматически]
python3-venv/noble,now 3.12.3-0ubuntu1 amd64 [установлен, автоматически]
python3-wadllib/noble,now 1.3.6-5 all [установлен, автоматически]
python3-wheel/noble,now 0.42.0-2 all [установлен]
python3-xkit/noble,now 0.5.0ubuntu6 all [установлен, автоматически]
python3-yaml/noble,now 6.0.1-2build2 amd64 [установлен, автоматически]
python3-zope.interface/noble,now 6.1-1build1 amd64 [установлен, автоматически]
python3.12-dev/noble-updates,noble-security,now 3.12.3-1ubuntu0.1 amd64 [установлен, автоматически]
python3.12-minimal/noble-updates,noble-security,now 3.12.3-1ubuntu0.1 amd64 [установлен, автоматически]
python3.12-venv/noble-updates,noble-security,now 3.12.3-1ubuntu0.1 amd64 [установлен, автоматически]
python3.12/noble-updates,noble-security,now 3.12.3-1ubuntu0.1 amd64 [установлен, автоматически]
python3/noble,now 3.12.3-0ubuntu1 amd64 [установлен]
uwsgi-plugin-python3/noble,now 2.0.24-2ubuntu10 amd64 [установлен]

Debian 12 iredmail 1.7.0 iredapd issues

$
0
0

==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version (check /etc/iredmail-release): 1.7.0 MARIADB edition.
- Deployed with iRedMail Easy or the downloadable installer? download installer
- Linux/BSD distribution name and version: Debian 12
- 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.
====

hi
this is a brand new build of Debian 12 and iredmail 1.7.0

everyhing is good except i cannot start iredapd the service seems to want to use python2 however debian 12 does not have python2 i have to use python3 .

heres a snippet of the journel
"[353458]: iredapd.service: Failed at step EXEC spawning /usr/bin/python2: No such file or directory
░░ Subject: Process /usr/bin/python2 could not be executed
░░ Defined-By: systemd
░░ Support:
"
i have tried to install python2 and 2.7  however this does not seem to exist in the debian 12 apt cache.
is there some upgrade or something i need to complete ..

thanks

Re: Debian 12 iredmail 1.7.0 iredapd issues

$
0
0

i have tried to install python 2.7 from a previous debian however that was missing multiple modules that apt would not let me install

Re: can't start iredadmin service

$
0
0

I believe we're running into issues with new defaults for AppArmor.  The concerns at the link below sounds quite similar and is the avenue I'm researching now as a possible root cause.

Unfortunately my account can't post external links.  You can simply google this term "lxc 24.04 uwsgi" and you'll find a forum post on LWN about apparmor profiles causing issues.

Investigating further...

Re: can't start iredadmin service

$
0
0

A confirmation that this has to do with the default apparmor profile for uwsgi that ships with the LXC image for Ubuntu 24.04 (trimmed to just the commands and the service output for clarity):

# apt install apparmor-utils
# aa-complain /etc/apparmor.d/uwsgi-core
# systemctl restart iredadmin
# systemctl status iredadmin
* iredadmin.service - iRedAdmin daemon service
     Loaded: loaded (/usr/lib/systemd/system/iredadmin.service; enabled; preset: enabled)
     Active: active (running) since Sun 2024-08-04 05:52:24 UTC; 1s ago
    Process: 303676 ExecStartPre=/bin/mkdir -p /var/run/iredadmin (code=exited, status=0/SUCCESS)
    Process: 303678 ExecStartPre=/bin/chown iredadmin:iredadmin /var/run/iredadmin (code=exited, status=0/SUCCESS)
    Process: 303680 ExecStartPre=/bin/chmod 0755 /var/run/iredadmin (code=exited, status=0/SUCCESS)
   Main PID: 303682 (uwsgi)
      Tasks: 6 (limit: 115860)
     Memory: 23.7M (peak: 24.8M)
        CPU: 370ms
     CGroup: /system.slice/iredadmin.service
             |-303682 /usr/bin/uwsgi --ini /opt/www/iredadmin/rc_scripts/uwsgi/debian.ini --pidfile /var/run/iredadmin/>
             |-303684 /usr/bin/uwsgi --ini /opt/www/iredadmin/rc_scripts/uwsgi/debian.ini --pidfile /var/run/iredadmin/>
             |-303685 /usr/bin/uwsgi --ini /opt/www/iredadmin/rc_scripts/uwsgi/debian.ini --pidfile /var/run/iredadmin/>
             |-303686 /usr/bin/uwsgi --ini /opt/www/iredadmin/rc_scripts/uwsgi/debian.ini --pidfile /var/run/iredadmin/>
             |-303687 /usr/bin/uwsgi --ini /opt/www/iredadmin/rc_scripts/uwsgi/debian.ini --pidfile /var/run/iredadmin/>
             `-303688 /usr/bin/uwsgi --ini /opt/www/iredadmin/rc_scripts/uwsgi/debian.ini --pidfile /var/run/iredadmin/>

Aug 04 05:52:24 mx systemd[1]: Starting iredadmin.service - iRedAdmin daemon service...
Aug 04 05:52:24 mx systemd[1]: Started iredadmin.service - iRedAdmin daemon service.

Not necessarily recommending ignoring the uwsgi apparmor configuration, just need to investigate what configuration is required to allow the port to bind.


Re: Upgrade Debian 11 with iRedMail to Debian 12

$
0
0

My server was initially running iredmail version 1.4.0 on debian 10 and i upgraded from release to release as they came out and debian 10 to 11 when 11 came out and today i upgraded from debian 11 to 12. after upgrading to debian 12, i had to run mysql_upgrade and also edit my debian.cnf to be root and it's password like it would be on a fresh install of 1.7.0 (i was getting errors root couldnt authenticate itself when trying to run debian-startup and tons of issues with tables). i also updated my.cnf to match the contents of the file on a fresh install of 1.7.0, not sure if editing my.cnf was necessary but mysql_upgrade and editing debian.cnf definitely were to get mariadb to stop throwing errors. the server did function without those changes being made and i wouldnt have noticed anything was amiss without checking logs but i didnt like all the errors i was seeing.

Last Login

$
0
0

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

Redmail 1.70
Downloaded Installer
Ubuntu 22.04.4 LTS
Database: PGSQL
Nginx
iRedAdmin

Implemented the Track User Last login time.

Getting the following error:

Aug  4 00:57:27 redmail dovecot: imap(user@server.com)<4552><+DTKEtYetKZ/AAAB>: Error: last_login_dict: Failed to write value: dict-server returned failure: sql dict: commit failed: ERROR:  permission denied for table last_login (reply took 0.002 secs (0.000 in dict wait, 0.002 in other ioloops, 0.000 in locks, async-id reply 0.001 secs ago, started on dict-server 0.002 secs ago, took 0.000 secs))

Using the Postgres SQL DB.  I am guessing a permission didn't get set correctly.  Not a db guy, not sure how to check the db.

Jeff

Re: Debian 12 iredmail 1.7.0 iredapd issues

Re: Last Login

$
0
0

Nevermind.  I figured it out.  For some reason my dovecot-last-login.conf file already existed and was set to use vmail as the user instead of vmailadmin. Changed that and got the password and it is working and adding entries to the DB now.

Jeff 



jreiter1975 wrote:

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

Redmail 1.70
Downloaded Installer
Ubuntu 22.04.4 LTS
Database: PGSQL
Nginx
iRedAdmin

Implemented the Track User Last login time.

Getting the following error:

Aug  4 00:57:27 redmail dovecot: imap(user@server.com)<4552><+DTKEtYetKZ/AAAB>: Error: last_login_dict: Failed to write value: dict-server returned failure: sql dict: commit failed: ERROR:  permission denied for table last_login (reply took 0.002 secs (0.000 in dict wait, 0.002 in other ioloops, 0.000 in locks, async-id reply 0.001 secs ago, started on dict-server 0.002 secs ago, took 0.000 secs))

Using the Postgres SQL DB.  I am guessing a permission didn't get set correctly.  Not a db guy, not sure how to check the db.

Jeff

Re: iRedMail on freebsd 13.3

$
0
0

I had the same. I used the help of codepilot (chatgpt) and I got through it. but when chatgpt asks to uninstall something and then reinstall and then start the iredmail installer i had the error coming back, so i just uninstalled and then let the iredmail installer handle the rest.

cron emails with errors arriving after installation

$
0
0

==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version (check /etc/iredmail-release): 1.7.0
- Deployed with iRedMail Easy or the downloadable installer? download
- Linux/BSD distribution name and version: freebsd 14
- Store mail accounts in which backend (LDAP/MySQL/PGSQL):
- Web server (Apache or Nginx): nginx
- Manage mail accounts with iRedAdmin-Pro? yes
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
====
so there are various errors coming to my postmaster mailbox through Cron,

here is the first:

Cron <root@mail> /usr/local/bin/python3 /opt/iredapd/tools/spf_to_greylist_whitelists.py >/dev/null

raceback (most recent call last):
  File "/opt/iredapd/tools/spf_to_greylist_whitelists.py", line 70, in <module>
    from libs import utils, dnsspf
  File "/opt/iredapd/tools/../libs/dnsspf.py", line 2, in <module>
    from dns import resolver
  File "/usr/local/lib/python3.11/site-packages/dns/resolver.py", line 30, in <module>
    import dns._ddr
  File "/usr/local/lib/python3.11/site-packages/dns/_ddr.py", line 12, in <module>
    import dns.nameserver
  File "/usr/local/lib/python3.11/site-packages/dns/nameserver.py", line 5, in <module>
    import dns.asyncquery
  File "/usr/local/lib/python3.11/site-packages/dns/asyncquery.py", line 32, in <module>
    import dns.quic
  File "/usr/local/lib/python3.11/site-packages/dns/quic/__init__.py", line 7, in <module>
    import aioquic.quic.configuration  # type: ignore
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/aioquic/quic/configuration.py", line 6, in <module>
    from ..tls import (
  File "/usr/local/lib/python3.11/site-packages/aioquic/tls.py", line 26, in <module>
    import service_identity
  File "/usr/local/lib/python3.11/site-packages/service_identity/__init__.py", line 6, in <module>
    from . import cryptography, hazmat, pyopenssl
  File "/usr/local/lib/python3.11/site-packages/service_identity/cryptography.py", line 11, in <module>
    from cryptography.x509 import (
  File "/usr/local/lib/python3.11/site-packages/cryptography/x509/__init__.py", line 7, in <module>
    from cryptography.x509 import certificate_transparency, verification
  File "/usr/local/lib/python3.11/site-packages/cryptography/x509/certificate_transparency.py", line 11, in <module>
    from cryptography.hazmat.bindings._rust import x509 as rust_x509
RuntimeError: OpenSSL 3.0's legacy provider failed to load. This is a fatal error by default, but cryptography supports running without legacy algorithms by setting the environment variable CRYPTOGRAPHY_OPENSSL_NO_LEGACY. If you did not expect this error, you have likely made a mistake with your OpenSSL configuration.

here is the second:

Cron <root@mail> /usr/local/bin/python3 /usr/local/www/iredadmin/tools/delete_mailboxes.py

* OpenSSL 3.0's legacy provider failed to load. This is a fatal error by default, but cryptography supports running without legacy algorithms by setting the environment variable CRYPTOGRAPHY_OPENSSL_NO_LEGACY. If you did not expect this error, you have likely made a mistake with your OpenSSL configuration.
Traceback (most recent call last):
  File "/usr/local/www/iredadmin/tools/delete_mailboxes.py", line 184, in <module>
    qr_mailboxes = conn_deleted_mailboxes.select('deleted_mailboxes', where=sql_where)
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'select'

here is the third:

Cron <root@mail> /usr/local/bin/python3 /opt/iredapd/tools/cleanup_db.py >/dev/null

Traceback (most recent call last):
  File "/opt/iredapd/tools/cleanup_db.py", line 28, in <module>
    cleanup_sql_table(conn=conn_iredapd,
  File "/opt/iredapd/tools/../tools/__init__.py", line 89, in cleanup_sql_table
    _qr = conn.select(sql_table,
          ^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'select'


can anyone help me with this please?
thanks

Re: cron emails with errors arriving after installation

$
0
0

Will try to reproduce this issue later, thanks for the feedback and patience. smile


Re: can't start iredadmin service

$
0
0

Does it work if you disable apparmor service?

Re: Debian 12 iredmail 1.7.0 iredapd issues

$
0
0

- iRedAPD (and mlmmjadmin, iRedAPD, iRedAdmin-Pro) uses Python v3, not v2.
- No similar report from other Debian 12 users so far. And i cannot reproduce this issue locally.

Re: can't start iredadmin service

$
0
0
ZhangHuangbin wrote:

Does it work if you disable apparmor service?

I didn't try disabling apparmor entirely.  I simply moved the uwsgi-core profile into complain instead of enforce mode and everything seems to work just fine.  Probably need to build a proper profile for it, but after review, and for my own needs, this is probably fine since I don't expose iredadmin to the internet.

# apt install apparmor-utils
# aa-complain /etc/apparmor.d/uwsgi-core
# systemctl restart iredadmin

Re: dovecot log: imap: Error: DETAIL: Key (username, domain) already exis

$
0
0
ZhangHuangbin wrote:

I cannot reproduce this issue locally (both iRedMail and iRedMail Enterprise Edition).
Is it possible to give me direct ssh access with root privilege, and a testing email account to reproduce the issue?

Hi ZhangHuangbin,

Apologies for the delay.  I missed your latest post somehow.

I cannot immediately provide ssh access with root privilege, but I was able to re-create the issue -- re-imaging the server, re-installing iRedMail with postgreSQL and then re-doing the steps to get SpamAssassin.  I realize I didn't test to see if the PG primary key error happens before running the SpamAssassin install.

Happy to test again and run any instructions.  If that's not practical on your end, let me know and I'll see what else I can work out.

Re: dovecot log: imap: Error: DETAIL: Key (username, domain) already exis

$
0
0
communque wrote:

re-imaging the server, re-installing iRedMail with postgreSQL and then re-doing the steps to get SpamAssassin.

What do you mean "get SpamAssassin"?

I cannot reproduce this issue locally.

Viewing all 43338 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>