1

Topic: Debian 10 to 11 : some update information and a question

==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version (check /etc/iredmail-release): 1.4.2 LDAP
- Deployed with iRedMail Easy or the downloadable installer? downloadable
- Linux/BSD distribution name and version: Debian GNU/Linux 11 (bullseye)
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): LDAP
- Web server (Apache or Nginx): Nginx
- Manage mail accounts with iRedAdmin-Pro? No
====

I do a complete upgrade from debian buster 10 to debian 11 bullseye.
After upgrading i have 3 issue that need manual update, 2 seems related with iredmail, other is realted to nginx with php.
I always choose No for updating etc, maybe i do an error for dovecot.

1st : dovecote disn't start

root@belar:~# service dovecot status
● dovecot.service - Dovecot IMAP/POP3 email server
     Loaded: loaded (/lib/systemd/system/dovecot.service; enabled; vendor preset: enabled)
     Active: failed (Result: exit-code) since Sun 2021-10-10 18:18:57 UTC; 37s ago
       Docs: man:dovecot(1)
             [url]http://wiki2.dovecot.org/[/url]
    Process: 480 ExecStart=/usr/sbin/dovecot -F (code=exited, status=89)
   Main PID: 480 (code=exited, status=89)
        CPU: 79ms

oct. 10 18:18:50 belar systemd[1]: Starting Dovecot IMAP/POP3 email server...
oct. 10 18:18:56 belar dovecot[586]: doveconf: Fatal: Error in configuration file /etc/dovecot/dovecot.conf line 428: Unknown setting: metric { event_name
oct. 10 18:18:57 belar dovecot[480]: doveconf: Error: managesieve-login: dump-capability process returned 89
oct. 10 18:18:57 belar dovecot[480]: doveconf: Fatal: Error in configuration file /etc/dovecot/dovecot.conf line 428: Unknown setting: metric { event_name
oct. 10 18:18:57 belar systemd[1]: dovecot.service: Main process exited, code=exited, status=89/n/a
oct. 10 18:18:57 belar systemd[1]: dovecot.service: Failed with result 'exit-code'.
oct. 10 18:18:57 belar systemd[1]: Failed to start Dovecot IMAP/POP3 email server.

Then i look at dovecot.conf : i comment this part

metric imap_command_finished {
    event_name = imap_command_finished
}

Question : Maybe it's best to get the new dovecot.conf and add !include_try /etc/dovecot/iredmail/*.conf
at end after ?

After restarting dovecot : i can get my email ! (happy)

But can not send email, then i check iredapd was not started

root@belar:~# service iredapd restart
Job for iredapd.service failed because the control process exited with error code.
See "systemctl status iredapd.service" and "journalctl -xe" for details.
root@belar:~# systemctl status iredapd.service
● iredapd.service - iRedAPD (A simple posfix policy server)
     Loaded: loaded (/lib/systemd/system/iredapd.service; enabled; vendor preset: enabled)
     Active: failed (Result: exit-code) since Sun 2021-10-10 18:25:38 UTC; 6s ago
    Process: 8054 ExecStart=/usr/bin/python3 /opt/iredapd/iredapd.py (code=exited, status=1/FAILURE)
        CPU: 384ms

oct. 10 18:25:38 belar systemd[1]: Starting iRedAPD (A simple posfix policy server)...
oct. 10 18:25:38 belar python3[8054]: Traceback (most recent call last):
oct. 10 18:25:38 belar python3[8054]:   File "/opt/iredapd/iredapd.py", line 20, in <module>
oct. 10 18:25:38 belar python3[8054]:     from libs import __version__, daemon, utils
oct. 10 18:25:38 belar python3[8054]:   File "/opt/iRedAPD-5.0.3/libs/utils.py", line 19, in <module>
oct. 10 18:25:38 belar python3[8054]:     from web import sqlquote
oct. 10 18:25:38 belar python3[8054]: ModuleNotFoundError: No module named 'web'
oct. 10 18:25:38 belar systemd[1]: iredapd.service: Control process exited, code=exited, status=1/FAILURE
oct. 10 18:25:38 belar systemd[1]: iredapd.service: Failed with result 'exit-code'.
oct. 10 18:25:38 belar systemd[1]: Failed to start iRedAPD (A simple posfix policy server).

Then :
a simple

# apt-get install python3-webpy
# service iredapd restart

fix my issue.

My final issue was for ngixn : all php website broke with 504 issue.

Conf file for php7.3 need to be move to php7.4 if needed

cp /etc/php/7.3/fpm/pool.d/* /etc/php/7.4/fpm/pool.d/

restart php7.4-fpm and nginx : it's OK.

The last question : did there are a best method to upgrade  iredmail ? Maybe need to get the new conf file and update it after ?

Thanks a lot !!!!

2

Re: Debian 10 to 11 : some update information and a question

FYI: https://docs.iredmail.org/upgrade.debian.10-11.html

----

Buy me a cup of coffee ($5) to support iRedMail:

buy me a cup of coffee

3

Re: Debian 10 to 11 : some update information and a question

Yes sorry …
And great thanks

Question : apt-get install python3-webpy OR pip3 install -U web.py ?
What is the best, in my opinion  apt is always the best (if it work).