Clients zeigen sporadisch Ordnerinhalte nicht an

Rainer Wiesenfarth rainer at rainer-wiesenfarth.de
Mi Mai 21 07:00:06 CEST 2025


Hallo Ihr,

ist meine Frage zu trivial oder mein Problem zu esoterisch?

Heute Morgen hatte ich das Problem wieder: Am Desktop (Thunderbird) kann 
ich bei allen Ordnern den Inhalt sehen - außer beim Posteingang, da 
steht in der Nachrichtenliste lapidar "Keine Nachricht gefunden". Für 
einen Test habe ich dann den Spam-Ordner als gelesen markiert.

Am Handy (K-9 Mail) sehe ich auch den Posteingang, und ein Update auf 
den Spam-Ordner zeigt die Nachrichten dann alle als gelesen - die Aktion 
auf dem Desktop kam also beim Server an.

Im Log ist nach wie vor nichts zu finden (auch nicht im dovecot.info). 
Ich hänge Euch mal doveconf -n und die Liste der laufenden 
Dovecot-Prozesse an.

Viele Grüße
Rainer

Am 14.05.2025 um 16:39 schrieb Rainer Wiesenfarth via Dovecot:
> Hallo Ihr,
> 
> ich habe eine Frage, bei der mir die Gurus wahrscheinlich auf Anhieb den 
> Parameter nennen können, an dem ich drehen muss.
> 
> Das Problem: Thunderbird, Outlook und K-9 Mail (evtl. auch andere) 
> zeigen sporadisch die Nachrichten einzelner Ordner nicht an, die Liste 
> bleibt einfach leer. In anderen Ordnern des selben Kontos kann ich mich 
> aber problemlos bewegen, dort kommen auch Nachrichten an. Nach einer 
> gewissen Zeit verschwindet das Problem und der Ordnerinhalt wird wieder 
> angezeigt - dafür aber vielleicht andere Ordner nicht.
> 
> Meine Vermutung: Dovecot läuft in irgendeine Beschränkung maximal 
> synchronisierter Ordner. Die Anzahl der TCP-Verbindungen ist unkritisch, 
> da sind nur Größenordnung zwanzig offen.
> 
> Folgendes Szenario:
> - Dovecot als Teil eines Univention Corporate Servers
> - nur ca. zehn Benutzer, aber drei Mal so viele Geräte
> - jeder Benutzer hat in seinem Client mehrere IMAP-Accounts eingerichtet
> - gefühlt Tausende von Ordnern bei einzelnen Accounts
> - Gesamtvolumen der E-Mails ca. 150 GB
> - im dovecot.{warn,err} ist außer meiner "Leiche" (s.u.) nichts zu finden
> 
> Habt Ihr eine Idee?
> 
> Viele Grüße
> Rainer
> 
> 
> 
> Zu meiner "Leiche im Keller": Ich habe eine shared mailbox "foo" wohl 
> nicht richtig / vollständig entfernt. Daher kommen in den Logs 
> Fehlermeldungen der Art
> 
> dovecot: imap(user at domain)<700706><o2HuFxc11JNd7sQ7>: Error: mkdir(/run/ 
> dovecot/user-not-found/foo at domain) failed: Permission denied 
> (euid=121(dovemail) egid=127(dovemail) missing +w perm: /run/dovecot, 
> dir owned by 0:0 mode=0755)
> 
> Das liegt meiner Vermutung nach daran, dass in den .../Maildir/ 
> subscriptions Dateien noch Einträge der Form "shared/foo at domain/INBOX" 
> zu finden sind, und in /var/lib/dovecot/shared-mailboxes noch (Gruppen-) 
> Berechtigungen.
> 
> "Bonusfrage": Es sollte doch ausreichen, dort die betreffenden Zeilen zu 
> löschen, oder?
> 


-- 
#  Rainer Wiesenfarth  *  rainer at rainer-wiesenfarth.de
#  Heulenbergweg 2/2  *  73432 Aalen  *  Germany
-------------- nächster Teil --------------
root at ucs:/etc/dovecot# doveconf -n
# 2.3.19.1 (9b53102964): /etc/dovecot/dovecot.conf
# Pigeonhole version 0.5.19 (4eae2f79)
# OS: Linux 6.1.0-31-amd64 x86_64 Univention Corporate Server 5.2-1 errata38 ext4
# Hostname: ucs.example.de
auth_cache_negative_ttl = 1 mins
auth_cache_size = 100 k
auth_cache_ttl = 5 mins
auth_master_user_separator = *
auth_mechanisms = plain login
debug_log_path = syslog
default_client_limit = 400
default_process_limit = 400
first_valid_gid = 127
first_valid_uid = 121
info_log_path = syslog
last_valid_gid = 127
last_valid_uid = 121
mail_gid = dovemail
mail_home = /var/spool/dovecot/private/%Ld/%Ln
mail_location = maildir:/var/spool/dovecot/private/%Ld/%Ln/Maildir
mail_plugins = " acl quota"
mail_privileged_group = dovemail
mail_uid = dovemail
managesieve_notify_capability = mailto
managesieve_sieve_capability = fileinto reject envelope encoded-character vacation subaddress comparator-i;ascii-numeric relational regex imap4flags copy include variables body enotify environment mailbox date index ihave duplicate mime foreverypart extracttext imapflags notify
namespace {
  list = children
  location = maildir:%%h/Maildir:INDEXPVT=~/Maildir/shared/%%u
  prefix = shared/%%u/
  separator = /
  subscriptions = no
  type = shared
}
namespace inbox {
  inbox = yes
  location =
  mailbox Archives {
    special_use = \Archive
  }
  mailbox Drafts {
    special_use = \Drafts
  }
  mailbox Entw&APw-rfe {
    special_use = \Drafts
  }
  mailbox "Gel&APY-schte Elemente" {
    special_use = \Trash
  }
  mailbox Gesendet {
    special_use = \Sent
  }
  mailbox "Gesendete Elemente" {
    special_use = \Sent
  }
  mailbox Ham {
    auto = subscribe
  }
  mailbox Junk-E-Mail {
    special_use = \Junk
  }
  mailbox Junk {
    special_use = \Junk
  }
  mailbox Papierkorb {
    special_use = \Trash
  }
  mailbox Sent {
    special_use = \Sent
  }
  mailbox "Sent Messages" {
    special_use = \Sent
  }
  mailbox Spam {
    auto = subscribe
    special_use = \Junk
  }
  mailbox Trash {
    special_use = \Trash
  }
  prefix =
  separator = /
  type = private
}
namespace public at local {
  list = children
  location = maildir:/var/spool/dovecot/public/local/public:INDEXPVT=~/Maildir/public/local/public
  prefix = public at local/
  separator = /
  subscriptions = no
  type = public
}
passdb {
  args = /etc/dovecot/master-users
  driver = passwd-file
  master = yes
}
passdb {
  args = cache_key=#hidden_use-P_to_show# dovecot
  driver = pam
}
plugin {
  acl = vfile:/etc/dovecot/global-acls:cache_secs=300
  acl_anyone = allow
  acl_shared_dict = file:/var/lib/dovecot/shared-mailboxes
  quota = maildir:User quota
  quota_grace = 10%%
  quota_rule = *:storage=0
  quota_rule2 = Trash:storage=+100M
  quota_status_nouser = DUNNO
  quota_status_overquota = 552 5.2.2 Mailbox is full
  quota_status_success = DUNNO
  quota_warning = storage=95%% quota-warning 95 %Lu
  quota_warning2 = storage=80%% quota-warning 80 %Lu
  sieve = file:~/sieve;active=~/.dovecot.sieve
  sieve_extensions = +notify +imapflags
  sieve_global = /var/lib/dovecot/sieve
}
pop3_client_workarounds = outlook-no-nuls oe-ns-eoh
protocols = " imap lmtp sieve"
service anvil {
  client_limit = 1603
}
service auth {
  client_limit = 2000
  unix_listener /var/spool/postfix/private/auth {
    group = postfix
    mode = 0666
    user = postfix
  }
}
service imap-login {
  client_limit = 400
  process_min_avail = 0
  service_count = 1
  vsz_limit = 256 M
}
service imap-postlogin {
  executable = script-login /usr/lib/dovecot/dovecot-postlogin.py
  user = $default_internal_user
}
service imap {
  executable = imap imap-postlogin
  process_limit = 400
  vsz_limit = 256 M
}
service lmtp {
  unix_listener /var/spool/postfix/private/dovecot-lmtp {
    group = postfix
    mode = 0600
    user = postfix
  }
}
service managesieve-login {
  inet_listener sieve {
    address = 0.0.0.0
    port = 4190
  }
  process_min_avail = 0
  service_count = 1
  vsz_limit = 256 M
}
service managesieve {
  process_limit = 400
}
service pop3-login {
  client_limit = 400
  process_min_avail = 0
  service_count = 1
  vsz_limit = 256 M
}
service pop3 {
  executable = pop3 imap-postlogin
  process_limit = 400
  vsz_limit = 256 M
}
service quota-status {
  client_limit = 1
  executable = quota-status -p postfix
  inet_listener {
    address = 127.0.0.1
    port = 12340
  }
}
service quota-warning {
  executable = script /usr/lib/dovecot/quota-warning.sh
  unix_listener quota-warning {
    user = dovemail
  }
  user = dovemail
}
ssl_ca = </etc/univention/ssl/imap.ile-ostalb.de/cert.pem
ssl_cert = </etc/univention/ssl/imap.ile-ostalb.de/cert.pem
ssl_cipher_list = EDH+CAMELLIA:EDH+aRSA:EECDH+aRSA+AESGCM:EECDH+aRSA+SHA384:EECDH+aRSA+SHA256:EECDH:+CAMELLIA256:+AES256:+CAMELLIA128:+AES128:+SSLv3:!aNULL:!eNULL:!LOW:!3DES:!MD5:!EXP:!PSK:!DSS:!RC4:!SEED:!ECDSA:CAMELLIA256-SHA:AES256-SHA:CAMELLIA128-SHA:AES128-SHA
ssl_client_ca_dir = /etc/ssl/certs
ssl_dh = # hidden, use -P to show it
ssl_key = # hidden, use -P to show it
ssl_prefer_server_ciphers = yes
ssl_verify_client_cert = yes
syslog_facility = local5
userdb {
  args = /etc/dovecot/dovecot-ldap.conf.ext
  driver = ldap
}
protocol lmtp {
  mail_plugins = " acl quota quota sieve"
}
protocol lda {
  mail_plugins = " acl quota sieve"
}
protocol imap {
  mail_plugins = " acl quota imap_acl imap_quota"
}
protocol sieve {
  mail_max_userip_connections = 10
}
-------------- nächster Teil --------------
root at ucs:/etc/dovecot# ps aux | grep dove
root         725  0.0  0.0  10368  4588 ?        Ss   Mär22   1:29 /usr/sbin/dovecot -F
dovecot     1132  0.0  0.0   4876  2776 ?        S    Mär22   0:20 dovecot/anvil
dovenull 1089826  0.0  0.0  11028  8460 ?        S    Mai20   0:00 dovecot/imap-login
dovenull 1089827  0.0  0.0  11028  7932 ?        S    Mai20   0:01 dovecot/imap-login
dovenull 1089829  0.0  0.0  10916  7744 ?        S    Mai20   0:01 dovecot/imap-login
dovemail 1089830  0.0  0.0  11188  7804 ?        S    Mai20   0:00 dovecot/imap imap-postlogin
dovemail 1089832  0.0  0.0  10572  6700 ?        S    Mai20   0:00 dovecot/imap imap-postlogin
dovemail 1089834  0.0  0.0  10712  7364 ?        S    Mai20   0:00 dovecot/imap imap-postlogin
dovenull 1089869  0.0  0.0  11028  8396 ?        S    Mai20   0:07 dovecot/imap-login
dovemail 1089870  0.0  0.0  11524  8384 ?        S    Mai20   0:01 dovecot/imap imap-postlogin
dovenull 1089872  0.0  0.0  10916  8324 ?        S    Mai20   0:09 dovecot/imap-login
dovemail 1089873  0.0  0.0  11072  7972 ?        S    Mai20   0:01 dovecot/imap imap-postlogin
dovenull 1089876  0.0  0.0  11028  8352 ?        S    Mai20   0:13 dovecot/imap-login
dovemail 1089877  0.0  0.0  11280  8120 ?        S    Mai20   0:01 dovecot/imap imap-postlogin
dovenull 1097041  0.0  0.0  10916  8328 ?        S    Mai20   0:09 dovecot/imap-login
dovemail 1097042  0.0  0.0  11152  8232 ?        S    Mai20   0:01 dovecot/imap imap-postlogin
dovenull 1102517  0.0  0.0  10916  8392 ?        S    Mai20   0:00 dovecot/imap-login
dovemail 1102518  0.0  0.0  11100  7976 ?        S    Mai20   0:00 dovecot/imap imap-postlogin
dovenull 1128218  0.0  0.0  11028  8296 ?        S    Mai20   0:00 dovecot/imap-login
dovemail 1128219  0.0  0.0  11988  8672 ?        S    Mai20   0:03 dovecot/imap imap-postlogin
dovecot  1146499  0.0  0.1  74340 21052 ?        S    06:06   0:00 dovecot/auth
dovenull 1147740  0.0  0.0  11028  8372 ?        S    06:28   0:00 dovecot/imap-login
dovemail 1147743  0.0  0.0  10572  6524 ?        S    06:28   0:00 dovecot/imap imap-postlogin
root     2628631  0.0  0.0   5268  2948 ?        S    Mai01   0:05 dovecot/log
dovecot  2628689  0.0  0.0   7612  4952 ?        S    Mai01   0:10 dovecot/stats
root     2628690  0.0  0.0  10764  5936 ?        S    Mai01   0:18 dovecot/config
-------------- nächster Teil --------------
Ein Dateianhang mit Binärdaten wurde abgetrennt...
Dateiname   : smime.p7s
Dateityp    : application/pkcs7-signature
Dateigröße  : 6243 bytes
Beschreibung: Kryptografische S/MIME-Signatur
URL         : <https://listen.jpberlin.de/pipermail/dovecot/attachments/20250521/0edff765/attachment.p7s>


Mehr Informationen über die Mailingliste Dovecot