[GH-ISSUE #2603] "Default password scheme" missing after fresh install #1649

Closed
opened 2026-02-27 11:18:22 +03:00 by kerem · 8 comments
Owner

Originally created by @stefaweb on GitHub (Sep 21, 2022).
Original GitHub issue: https://github.com/modoboa/modoboa/issues/2603

Impacted versions

  • OS Type: Debian
  • OS Version: bullseye
  • Database Type: PostgreSQL
  • Database version: 13.8-0+deb11u1
  • Modoboa:2.0.1
  • installer used: Yes
  • Webserver: Nginx

Steps to reproduce

Current behavior

Hello,

I installed the latest version of Modoboa on a Debian bullseye server with the modoboa-installer script.

At the exit of the installation, the encryption methods are missing in the administration interface v1 for "Default password scheme". In the v2 interface, the methods are all present but the modification of the default method is not saved when it is changed.

Video/Screenshot link (optional)

sc

sc1

Originally created by @stefaweb on GitHub (Sep 21, 2022). Original GitHub issue: https://github.com/modoboa/modoboa/issues/2603 # Impacted versions * OS Type: Debian * OS Version: bullseye * Database Type: PostgreSQL * Database version: 13.8-0+deb11u1 * Modoboa:2.0.1 * installer used: Yes * Webserver: Nginx # Steps to reproduce # Current behavior Hello, I installed the latest version of Modoboa on a Debian bullseye server with the modoboa-installer script. At the exit of the installation, the encryption methods are missing in the administration interface v1 for "Default password scheme". In the v2 interface, the methods are all present but the modification of the default method is not saved when it is changed. # Video/Screenshot link (optional) ![sc](https://user-images.githubusercontent.com/12907102/191456225-88941bc3-5812-4b49-8ea4-d3a58cbed689.png) ![sc1](https://user-images.githubusercontent.com/12907102/191456264-f06af4f5-a34d-4346-9722-6b150143439e.png)
kerem closed this issue 2026-02-27 11:18:22 +03:00
Author
Owner

@Spitfireap commented on GitHub (Sep 21, 2022):

Hi,

Could you check this : sudo -u modoboa doveadm pw -l if it returns anything?

You might need to use sudo usermod -a -G dovecot modoboa (see #1731).

<!-- gh-comment-id:1253563514 --> @Spitfireap commented on GitHub (Sep 21, 2022): Hi, Could you check this : `sudo -u modoboa doveadm pw -l` if it returns anything? You might need to use `sudo usermod -a -G dovecot modoboa` (see #1731).
Author
Owner

@stefaweb commented on GitHub (Sep 21, 2022):

Hi!

sudo -u modoboa doveadm pw -l
doveconf: Fatal: Error in configuration file /etc/dovecot/conf.d/10-ssl.conf line 15: ssl_cert: Can't open file /etc/letsencrypt/live/mail.xxxx.fr/fullchain.pem: Permission denied

lrwxrwxrwx 1 root root 41 Sep 20 12:42 /etc/letsencrypt/live/mail.aweb.fr/fullchain.pem -> ../../archive/mail.aweb.fr/fullchain1.pem

-rw-r--r-- 1 root root 5583 Sep 20 12:42 fullchain1.pem

/etc/letsencrypt/ and etc/letsencrypt/archives/ are 755.

drwxr-xr-x 9 root root 4096 Sep 21 10:14 letsencrypt
drwxr-xr-x 3 root root 4096 Sep 20 12:42 archive

doveadm pw -l
SHA1 SSHA512 SCRAM-SHA-256 BLF-CRYPT PLAIN HMAC-MD5 OTP SHA512 SHA DES-CRYPT CRYPT SSHA MD5-CRYPT PLAIN-MD4 PLAIN-MD5 SCRAM-SHA-1 SHA512-CRYPT CLEAR CLEARTEXT ARGON2I ARGON2ID SSHA256 MD5 PBKDF2 SHA256 CRAM-MD5 PLAIN-TRUNC SHA256-CRYPT SMD5 DIGEST-MD5 LDAP-MD5

"usermod -a -G dovecot modoboa"do not change error message or the problem in GUI.

<!-- gh-comment-id:1253582995 --> @stefaweb commented on GitHub (Sep 21, 2022): Hi! sudo -u modoboa doveadm pw -l doveconf: Fatal: Error in configuration file /etc/dovecot/conf.d/10-ssl.conf line 15: ssl_cert: Can't open file /etc/letsencrypt/live/mail.xxxx.fr/fullchain.pem: Permission denied lrwxrwxrwx 1 root root 41 Sep 20 12:42 /etc/letsencrypt/live/mail.aweb.fr/fullchain.pem -> ../../archive/mail.aweb.fr/fullchain1.pem -rw-r--r-- 1 root root 5583 Sep 20 12:42 fullchain1.pem /etc/letsencrypt/ and etc/letsencrypt/archives/ are 755. drwxr-xr-x 9 root root 4096 Sep 21 10:14 letsencrypt drwxr-xr-x 3 root root 4096 Sep 20 12:42 archive doveadm pw -l SHA1 SSHA512 SCRAM-SHA-256 BLF-CRYPT PLAIN HMAC-MD5 OTP SHA512 SHA DES-CRYPT CRYPT SSHA MD5-CRYPT PLAIN-MD4 PLAIN-MD5 SCRAM-SHA-1 SHA512-CRYPT CLEAR CLEARTEXT ARGON2I ARGON2ID SSHA256 MD5 PBKDF2 SHA256 CRAM-MD5 PLAIN-TRUNC SHA256-CRYPT SMD5 DIGEST-MD5 LDAP-MD5 "usermod -a -G dovecot modoboa"do not change error message or the problem in GUI.
Author
Owner

@Spitfireap commented on GitHub (Sep 21, 2022):

ok, so for your first error, can you check this : #2570 ? There are the commands needed to fix it. Then reboot, then retry the sudo -u modoboa doveadm pw -l and check the GUI if it works :)

<!-- gh-comment-id:1253585879 --> @Spitfireap commented on GitHub (Sep 21, 2022): ok, so for your first error, can you check this : #2570 ? There are the commands needed to fix it. Then reboot, then retry the `sudo -u modoboa doveadm pw -l` and check the GUI if it works :)
Author
Owner

@stefaweb commented on GitHub (Sep 21, 2022):

Thanks a lot.

All is fine now. Values are back on the GUI and doveadm now work with modoboa user.

In v2 admin GUI, save still do not work for "Default password scheme". Mods are still not saved.

Regards,

<!-- gh-comment-id:1253599976 --> @stefaweb commented on GitHub (Sep 21, 2022): Thanks a lot. All is fine now. Values are back on the GUI and doveadm now work with modoboa user. In v2 admin GUI, save still do not work for "Default password scheme". Mods are still not saved. Regards,
Author
Owner

@Spitfireap commented on GitHub (Sep 21, 2022):

Thanks for the feedback. There are some fixes regarding settings save for V2 that are not yet published. Would you mind opening the dev console of the browser and check the response code when you save settings in v2 ? :)

<!-- gh-comment-id:1253642578 --> @Spitfireap commented on GitHub (Sep 21, 2022): Thanks for the feedback. There are some fixes regarding settings save for V2 that are not yet published. Would you mind opening the dev console of the browser and check the response code when you save settings in v2 ? :)
Author
Owner

@stefaweb commented on GitHub (Sep 21, 2022):

I got this when I click on the Save button.

Failed to load resource: the server responded with a status of 400 (Bad Request)
https://mail.xxxxx.fr/api/v2/parameters/core/
<!-- gh-comment-id:1253841977 --> @stefaweb commented on GitHub (Sep 21, 2022): I got this when I click on the Save button. ``` Failed to load resource: the server responded with a status of 400 (Bad Request) https://mail.xxxxx.fr/api/v2/parameters/core/ ```
Author
Owner

@Spitfireap commented on GitHub (Sep 21, 2022):

Thanks, so it should be fixed with next release

<!-- gh-comment-id:1253887472 --> @Spitfireap commented on GitHub (Sep 21, 2022): Thanks, so it should be fixed with next release
Author
Owner

@Spitfireap commented on GitHub (Oct 27, 2022):

Modoboa user is now granted access to doveadm pw -l upon install.

<!-- gh-comment-id:1293413209 --> @Spitfireap commented on GitHub (Oct 27, 2022): Modoboa user is now granted access to ``doveadm pw -l`` upon install.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/modoboa-modoboa#1649
No description provided.