[Eisfair] [E1 64]mail-dovecot error nach update

Hendrik Orep hendrik.orep+eisfair at mailbox.org
Do Jun 26 14:52:13 CEST 2025


Hallo,

ich habe hier auch ein (anderes) Problem seit dem Update von Dovecot.
Mit der neuen Version von mail-dovecot ist bei mir ein IMAP-Zugriff 
nicht mehr möglich, der Login scheitert.

Im Dovecot-Log erscheint dazu:
> Jun 26 13:13:54 auth: Error: passwd-file /etc/cram-md5.pwd:open(/etc/cram-md5.pwd) failed: No such file or directory
> Jun 26 13:13:54 auth: Error: passwd-file /etc/passwd:User root has invalid UID '0'
> Jun 26 13:13:54 auth: Error: passwd-file /etc/passwd:User eis has invalid UID '0'
> Jun 26 13:13:54 auth: Error: passwd-file /etc/passwd:User halt has invalid UID '0'
> Jun 26 13:13:54 auth: Error: passwd-file /etc/passwd:User reboot has invalid UID '0'
> Jun 26 13:13:54 auth: Error: passwd-file /etc/passwd:User uucp has invalid GID '0'
> Jun 26 13:13:54 auth: Error: passwd-file /etc/cram-md5.pwd:open(/etc/cram-md5.pwd) failed: No such file or directory
> Jun 26 13:13:54 auth: Error: passwd-file /etc/cram-md5.pwd:open(/etc/cram-md5.pwd) failed: No such file or directory
> Jun 26 13:13:54 auth: Error: passwd-file /etc/cram-md5.pwd:open(/etc/cram-md5.pwd) failed: No such file or directory
> Jun 26 13:13:54 auth: Error: passwd-file /etc/cram-md5.pwd:open(/etc/cram-md5.pwd) failed: No such file or directory
> Jun 26 13:14:08 imap-login: Info: Login aborted: Connection closed (auth failed, 3 attempts in 14 secs) (auth_failed): user=<hendrik>, method=PLAIN, rip=fd11:1111:1111:0:1234:1234:1234:1234, lip=fd11:1111:1111:0:4321:4321:4321:4321, TLS, session=<QCIyqHc4gtX95iIi5qoAALsT5958QpEr>
Installierte Paketversionen:
- mail 1.17.0
- mail-dovecot 1.3.0

Konfiguration (Auszug):
> #------------------------------------------------------------------------------
> # pop3/imap: general settings
> #------------------------------------------------------------------------------
> 
> START_POP3='no'                        # start POP3 server: yes or no
> START_IMAP='yes'                       # start IMAP server: yes or no
> POP3IMAP_MAILBOX_FORMAT='maildir'      # mailbox format: mbx, mbox, maildir
> POP3IMAP_TRANSPORT='tls'               # transport to use: default, tls or both
> POP3IMAP_IDENT_CALLBACKS='no'          # enable ident callbacks: yes or no
> 
> #------------------------------------------------------------------------------
> # pop3/imap: mail users and optional passwords
> #------------------------------------------------------------------------------
> 
> MAIL_USER_USE_MAILONLY_PASSWORDS='no'  # use seperate mail passwords: yes or no
> MAIL_USER_N='0'                        # number of mail-accounts


Ich habe den Eindruck, dass die Dovecot-Konfiguration für diese 
Einstellungen nicht richtig generiert wird.

Im Backup habe ich die von der vorherigen Paketversion generierte Datei 
'/etc/dovecot/conf.d/auth-system.conf.ext' mit folgendem Inhalt gefunden:
> #------------------------------------------------------------------
> # /etc/dovecot/conf.d/auth-system.conf.ext file generated by mail.sh v1.16.4
> #
> # Do not edit this file, edit /etc/config.d/mail
> # Creation Date: 2025-04-09 Time: 16:23:37
> #------------------------------------------------------------------
> # Authentication for system users. Included from 10-auth.conf.
> 
> passdb {
>   driver = pam
>   args   = %s
> }
> 
> ## User databases
> 
> userdb {
>   driver = passwd
> }


Die aktuelle Paketversion generiert bei mir eine 
'/etc/dovecot/conf.d/10-auth.conf' mit diesem Inhalt:
> #------------------------------------------------------------------
> # /etc/dovecot/conf.d/10-auth.conf file generated by mail.sh v1.17.0
> #
> # Do not edit this file, edit /etc/config.d/mail
> # Creation Date: 2025-06-25 Time: 22:30:33
> #------------------------------------------------------------------
> ## Authentication processes
> 
> auth_allow_cleartext   = no
> auth_username_format   = %{user | lower}
> auth_mechanisms        = plain login
> 
> ## Password and user databases
> 
> passdb aliases {
>   driver = passwd-file
>   passwd_file_path = /etc/dovecot/dovecot-aliases
> }
> 
> passdb md5-file {
>   driver = passwd-file
>   default_password_scheme = cram-md5
>   passwd_file_path = /etc/cram-md5.pwd
> }
> 
> userdb passwd-file {
>   driver = passwd-file
>   passwd_file_path = /etc/passwd
> }


Damit schlägt der Login fehl.
Testweise habe ich versucht, die Konfiguration aus der vorherigen 
Version an den Konfigurationssyntax von Dovecot 2.4 anzupassen.
Mit der so geänderten '/etc/dovecot/conf.d/10-auth.conf' funktioniert 
der Login wieder:
> #------------------------------------------------------------------
> # /etc/dovecot/conf.d/10-auth.conf file generated by mail.sh v1.17.0
> #
> # Do not edit this file, edit /etc/config.d/mail
> # Creation Date: 2025-06-25 Time: 22:30:33
> #------------------------------------------------------------------
> ## Authentication processes
> 
> auth_allow_cleartext   = no
> auth_username_format   = %{user | lower}
> auth_mechanisms        = plain login
> 
> ## Password and user databases
> 
> passdb pam {
>   service_name = %{protocol}
> }
> 
> userdb passwd {
> }


Viele Grüße

Hendrik


Mehr Informationen über die Mailingliste Eisfair