Problem with Dovecot 2.4.2 & debian 13

sebastian at debianfan.de sebastian at debianfan.de
Do Jan 1 21:38:56 CET 2026


Hi @all,

i build a new debian 13 system and tried to use dovcecot 2.4.2 with 
postfix & mysql.

I can receive mails without problems.

I want to use thunderbird for reading mails by using imap - journalctl said:


Jan 01 21:25:49 mail dovecot[1479]: imap-login: Login aborted: 
Connection closed (no auth attempts in 0 secs) (no_auth_attempts): 
user=<>, rip=55.158.127.16, lip=139.18.1.67, session=<Tnz/ZVlH4M1Xr2sa>

I used:

root:#  dovecot auth login sebastian at meinserver.de
Password:
passdb: sebastian at meinserver.de auth succeeded
extra fields:
   user=sebastian at meinserver.de
userdb user: sebastian at meinserver.de
userdb extra fields:
   quota_storage_size=999999999M
   auth_mech=PLAIN

to test by commandline - i think it is ok.

dovecot.conf

root at mail:/etc/dovecot# cat dovecot.conf
# Dovecot config and storage versions
dovecot_config_version = 2.4.0
dovecot_storage_version = 2.4.0


log_debug = category=ssl
log_debug = category=auth
log_debug = category=mail


###
### Protocol settings
#############################

protocols {
     lmtp = yes
     imap = yes
     sieve = yes
}


protocol imap {
     mail_plugins {
         imap_quota = yes
         imap_sieve = yes
     }
     mail_max_userip_connections = 50
     imap_idle_notify_interval = 29 mins
}

protocol lmtp {
     mail_plugins {
         sieve = yes
         notify = yes
         push_notification = yes
     }
     postmaster_address = postmaster at meinserver.de.de
}


##
##

ssl = required
ssl_server_cert_file = /etc/acme.sh/mail.meinserver.de/fullchain.pem
ssl_server_key_file = /etc/acme.sh/mail.meinserver.de/privkey.pem
ssl_server_dh_file = /etc/dovecot/dh4096.pem
ssl_cipher_list = 
ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:DHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES256-GCM-SHA384


###
### Dovecot services
################################

service imap-login {
     inet_listener imap {
         port = 143
     }
}


service managesieve-login {
     inet_listener sieve {
         port = 4190
     }
}

service lmtp {
     unix_listener /var/spool/postfix/private/dovecot-lmtp {
         mode = 0660
         group = postfix
         user = postfix
     }
}


service auth {
     ### Auth socket für Postfix
     unix_listener /var/spool/postfix/private/auth {
         mode = 0660
         user = postfix
         group = postfix
     }

     ### Auth socket für LMTP-Dienst
     unix_listener auth-userdb {
         mode = 0660
         user = vmail
         group = vmail
     }
}


###
### SQL settings
###

sql_driver = mysql
mysql /var/run/mysqld/mysqld.sock {
   user = meindbuser
   password = meindbpasswort
   dbname = meinemailuserdatenbank
}

###
### Client authentication
#############################

auth_mechanisms = plain login
auth_username_format = %{user | lower }

passdb sql {
     query = SELECT username AS user, domain, password FROM accounts 
WHERE username = '%{user | username | lower }' AND domain = '%{user | 
domain | lower}' and enabled = true;
}

userdb sql {
     query = SELECT concat(quota, 'M') AS quota_storage_size FROM 
accounts WHERE username = '%{user | username | lower }' AND domain = 
'%{user | domain | lower}' AND sendonly = false;
     iterate_query = SELECT username, domain FROM accounts where 
sendonly = false;
}


##
### Address tagging
###
recipient_delimiter = +

###
### Mail location
#######################

mail_uid = vmail
mail_gid = vmail
mail_privileged_group = vmail


mail_home = /var/vmail/mailboxes/%{user | domain }/%{user | username }
mail_driver = maildir
mail_path = ~/mail
mailbox_list_layout = fs


###
### Mailbox configuration
########################################

namespace inbox {
     inbox = yes

     mailbox Spam {
         auto = subscribe
         special_use = \Junk
     }

     mailbox Trash {
         auto = subscribe
         special_use = \Trash
     }

     mailbox Drafts {
         auto = subscribe
         special_use = \Drafts
     }

     mailbox Sent {
         auto = subscribe
         special_use = \Sent
     }
}



###
### Mail plugins
############################

mail_plugins {
     quota = yes
}


sieve_plugins {
     sieve_imapsieve = yes
     sieve_extprograms = yes
}

sieve_script spam-global {
     type = before
     path = /var/vmail/sieve/global/spam-global.sieve
}

sieve_script personal {
     type = personal
     path = /var/vmail/sieve/%{user | domain }/%{user | username }/scripts
     active_path = /var/vmail/sieve/%{user | domain }/%{user | username 
}/active-script.sieve
}


# From Mailbox to Spam
mailbox Spam {
     sieve_script spam {
         type = before
         cause = copy
         path = /var/vmail/sieve/global/learn-spam.sieve
     }
}

# From Spam to another folder (learn HAM)
imapsieve_from Spam {
     sieve_script ham {
         type = before
         cause = copy
         path = /var/vmail/sieve/global/learn-ham.sieve
     }
}



# Sieve extensions only allowed in global context
sieve_global_extensions {
     vnd.dovecot.pipe = yes
}
sieve_pipe_bin_dir = /usr/bin


###
### IMAP Quota
###########################

quota_exceeded_message = Benutzer %{user} hat das Speichervolumen 
ueberschritten. / User %{user} has exhausted allowed storage space.

quota "User quota" {
         driver = count
}



What can i do now to find a solution?


Tnx


Sebastian





Mehr Informationen über die Mailingliste Dovecot