1

Topic: Debian 13 Trixi

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

Quick question: Has anyone successfully migrated to Deb13?

After four hours, I used a backup because I was hopelessly stuck with Dovecot 2.3 -> 2.4.

There were so many changes that I gave up... :S

Maybe someone has an documentation? Or maybe an officially one? sad((

----

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

2

Re: Debian 13 Trixi

- Debian 13 is not yet released.
- We need some time to migrate Dovecot 2.3 too. Stay tuned.

3

Re: Debian 13 Trixi

ZhangHuangbin wrote:

- Debian 13 is not yet released.
- We need some time to migrate Dovecot 2.3 too. Stay tuned.

Yeah I know.

I am the type of person who likes to be prepared, so I tested it now so that I can work through it relaxed on the day.

But that's no problem, it could have been that someone else was further ahead than me. smile

4 (edited by mrozkarol 2025-08-14 19:45:00)

Re: Debian 13 Trixi

jacky_009 wrote:

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

Quick question: Has anyone successfully migrated to Deb13?

After four hours, I used a backup because I was hopelessly stuck with Dovecot 2.3 -> 2.4.

There were so many changes that I gave up... :S

Maybe someone has an documentation? Or maybe an officially one? sad((


U mnie tak samo.... Przekonwertowanie pliku konfiguracyjnego Dovecot do kilku dodatkowych ze zmiana nazw właściwości to jakas masakra..

W nowym Dovecot 2.4.1 w głównym pliku konfiguracyjnym jest niewiele ustawień, większość znajduje się w plikach w podkatalogu: codf.d.
W nim znajduje się plik do zapytań o hasło i użytkownika oraz ścięzkę do MailDir: auth-sql.conf.ext  Wstępnie ten plik wygląda u nie tak:

driver = pgsql
connect = host=127.0.0.1 port=5432 dbname=vmail user=vmail password=password
default_password_scheme = CRYPT

# -----------------
# PASSDB - sprawdzanie hasła
# -----------------
passdb {
  driver = sql
  args = /etc/dovecot/conf.d/auth-sql.conf.ext
}

password_query = \
  SELECT mailbox.password, mailbox.allow_nets \
  FROM mailbox, domain \
  WHERE mailbox.username = '%{user}' \
    AND mailbox."enable%Ls%Lc" = 1 \
    AND mailbox.active = 1 \
    AND mailbox.domain = domain.domain \
    AND domain.backupmx = 0 \
    AND domain.active = 1

# -----------------
# USERDB - dane użytkownika
# -----------------
userdb {
  driver = sql
  args = /etc/dovecot/conf.d/auth-sql.conf.ext
}

user_query = \
  SELECT \
    LOWER('%{user}') AS master_user, \
    LOWER(CONCAT(mailbox.storagebasedirectory, '/', mailbox.storagenode, '/', mailbox.maildir)) AS home, \
    CONCAT(mailbox.mailboxformat, ':~/', mailbox.mailboxfolder) AS mail, \
    CONCAT('*:bytes=', mailbox.quota * 1048576) AS quota_rule \
  FROM mailbox, domain \
  WHERE mailbox.username = '%{user}' \
    AND mailbox."enable%Ls%Lc" = 1 \
    AND mailbox.active = 1 \
    AND mailbox.domain = domain.domain \
    AND domain.backupmx = 0 \
    AND domain.active = 1

iterate_query = \
  SELECT username AS user FROM mailbox

5

Re: Debian 13 Trixi

Don't rush to update. Don't make the same mistakes I did. But if you did upgrade to Debian 13 and didn't make any backups, you can still fix it.

After updating, you need to downgrade the Dovecot package from 2.4 to 2.3. Adding the repository to the apt/sources.list. Don't forget to keep an old configuration files.
repo.dovecot.org
Bullseye (11.0) with Dovecot 2.3

Downgrade OpenSSL from 3.5 to 3.0.6(Download it from snapshot rep and install dpkg -i openssl_3.0.16-1~deb12u1_amd64.deb)
Switch  PHP version from 8.4 to 8.2
    ( a2dismod php8.4 and a2enmod php8.2)
    (check for all required packages and extensions(apache2/php.ini) for php8.2 (pdo,intl,mbstring,mysql etc...)
Install the Python legacy package for work iredapd ( apt install python3-legacy-cgi)

All this worked specifically in my case. But maybe it will help someone.
P.S. this is not an instruction manual, use at your own risk.
P.S.2 Read this before upgrade your OS debian.org/releases/trixie/release-notes

6

Re: Debian 13 Trixi

- Do NOT upgrade to Debian 13 right now.
- We are working on Debian 13 support.
- Dovecot 2.4 is not backward compatible and the changes are so huge, although I finished most migrations, it still needs some more time.

7

Re: Debian 13 Trixi

Jeszcze nie zaktualizowałem Debiana. Zainstalowałem Dovecot 2.4 w Docker i sprawdzam po kolei pliki konfiguracyjne po zmianach smile Rzeczywiście jest tych zmian bardzo dużo, szczególnie że niektóre opcje całkiem już są nieużywane.


buckar00_b wrote:

Don't rush to update. Don't make the same mistakes I did. But if you did upgrade to Debian 13 and didn't make any backups, you can still fix it.

After updating, you need to downgrade the Dovecot package from 2.4 to 2.3. Adding the repository to the apt/sources.list. Don't forget to keep an old configuration files.
repo.dovecot.org
Bullseye (11.0) with Dovecot 2.3

Downgrade OpenSSL from 3.5 to 3.0.6(Download it from snapshot rep and install dpkg -i openssl_3.0.16-1~deb12u1_amd64.deb)
Switch  PHP version from 8.4 to 8.2
    ( a2dismod php8.4 and a2enmod php8.2)
    (check for all required packages and extensions(apache2/php.ini) for php8.2 (pdo,intl,mbstring,mysql etc...)
Install the Python legacy package for work iredapd ( apt install python3-legacy-cgi)

All this worked specifically in my case. But maybe it will help someone.
P.S. this is not an instruction manual, use at your own risk.
P.S.2 Read this before upgrade your OS debian.org/releases/trixie/release-notes

8 (edited by WhoAmI68 2025-08-20 21:39:04)

Re: Debian 13 Trixi

ZhangHuangbin wrote:

- Do NOT upgrade to Debian 13 right now.
- We are working on Debian 13 support.
- Dovecot 2.4 is not backward compatible and the changes are so huge, although I finished most migrations, it still needs some more time.

These guys are looking for a thrill the hard way before the official release smile)