Error: autoexpunge: Couldn't create dovecot.autoexpunge.lock lock

mail at matthias-koestler.de mail at matthias-koestler.de
Mi Apr 15 10:37:54 CEST 2020


Hallo zusammen,

 

Ich habe damals einen Mailserver mit Postfix und Dovecot in Debian 9
aufgesetzt.

Die letzte funktionierende Versionen auf Debian 9 waren Postfix 3.1.14 und
Dovecot 2.2.27.

Ich habe gestern ein update von Debian 9 auf Debian 10 gefahren. Soweit
funktioniert alles einwandfrei, bis auf einen Fehler im Dovecot log:

 

Error: autoexpunge: Couldn't create dovecot.autoexpunge.lock lock

 

Meine aktuelle Versionen unter Debian 10 sind Dovecot 2.3.4.1 und Postfix
3.4.8.

 

Meine Dovecot konfiguration:

 

# 2.3.4.1 (f79e8e7e4): /etc/dovecot/dovecot.conf

# Pigeonhole version 0.5.4 ()

# OS: Linux 4.9.0 x86_64 Debian 10.3 ext4

# Hostname: h2837029.stratoserver.net

auth_debug = yes

auth_mechanisms = plain login

auth_verbose = yes

debug_log_path = /var/log/dovecot-debug.log

deliver_log_format = msgid=%m: %s: %f: %$:

hostname = imap.it-koestler.de

info_log_path = /var/log/mail.log

listen = *

log_path = /var/log/dovecot.log

login_log_format_elements = user=<%u> method=%m rip=%r lip=%l mpid=%e %c %k

mail_debug = yes

mail_location =
mdbox:/var/virtmail/maildir/%Ld/%Ln:INDEX=/var/virtmail/indexes/%Ld/%Ln

mail_plugins = " quota acl zlib"

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

mdbox_preallocate_space = yes

namespace {

  hidden = no

  ignore_on_failure = no

  inbox = no

  list = children

  location =
mdbox:/var/virtmail/%%Ld/%%Ln:INDEX=/var/virtmail/indexes/%%Ld/%%Ln

  prefix = shared/%%u/

  separator = /

  subscriptions = yes

  type = shared

}

namespace inbox {

  hidden = no

  inbox = yes

  list = yes

  location = 

  mailbox Drafts {

    auto = subscribe

    special_use = \Drafts

  }

  mailbox Junk-E-Mail {

    auto = subscribe

    autoexpunge = 15 days

    special_use = \Junk

  }

  mailbox Sent {

    auto = subscribe

    special_use = \Sent

  }

  mailbox "Sent Messages" {

    special_use = \Sent

  }

  mailbox Trash {

    auto = subscribe

    special_use = \Trash

  }

  prefix = INBOX/

  separator = /

  subscriptions = yes

  type = private

}

passdb {

  args = /etc/dovecot/dovecot-sql.conf.ext

  driver = sql

}

plugin {

  mail_log_events = delete undelete expunge copy mailbox_delete
mailbox_rename

  mail_log_fields = uid box msgid size

  sieve = /var/virtmail/sieve/%Lu.sieve

  sieve_before = /var/virtmail/sieve/spam-global.sieve

  sieve_dir = /var/virtmail/sieve/scripts/%Lu

  zlib_save = gz

  zlib_save_level = 6

}

postmaster_address = postmaster at it-koestler.de

protocols = " imap lmtp sieve pop3"

service auth {

  unix_listener /var/spool/postfix/private/auth {

    group = postfix

    mode = 0660

    user = postfix

  }

  unix_listener auth-userdb {

    group = virtmail

    mode = 0660

    user = virtmail

  }

}

service imap-login {

  inet_listener imap {

    port = 143

  }

  inet_listener imaps {

    port = 993

    ssl = yes

  }

}

service lmtp {

  inet_listener lmtp {

    address = 127.0.0.1

    port = 24

  }

  unix_listener /var/spool/postfix/private/dovecot-lmtp {

    group = postfix

    mode = 0660

    user = postfix

  }

}

service managesieve-login {

  inet_listener sieve {

    port = 4190

  }

}

service pop3-login {

  inet_listener pop3 {

    port = 0

  }

  inet_listener pop3s {

    port = 0

  }

}

ssl = required

ssl_cert = </etc/letsencrypt/live/imap.it-koestler.de/fullchain.pem

ssl_cipher_list =
ALL:!aNULL:!eNULL:!EXPORT:!DES:!3DES:!MD5:!PSK:!RC4:!ADH:!LOW at STRENGTH:!LOW

ssl_client_ca_dir = /etc/ssl/certs

ssl_dh = # hidden, use -P to show it

ssl_key = # hidden, use -P to show it

ssl_min_protocol = TLSv1.1

ssl_options = no_compression

ssl_prefer_server_ciphers = yes

userdb {

  args = /etc/dovecot/dovecot-sql.conf.ext

  driver = sql

}

verbose_proctitle = yes

verbose_ssl = yes

protocol lmtp {

  mail_plugins = " quota acl zlib sieve quota"

  postmaster_address = postmaster at matthias-koestler.de

}

protocol lda {

  mail_plugins = " quota acl zlib sieve"

}

protocol imap {

  mail_plugins = " quota acl zlib imap_quota imap_acl imap_zlib mail_log
notify"

}

 

 

Die komplette Meldung im log lautet:

 

Apr 15 10:07:20 imap(mail at matthias-koestler.de)<23705><ojghyk+jCO9ehiPT>:
Error: autoexpunge: Couldn't create dovecot.autoexpunge.lock lock:
file_create_locked(/var/virtmail/matthias-koestler.de/mail//dovecot.autoexpu
nge.lock) failed:
safe_mkstemp(/var/virtmail/matthias-koestler.de/mail//dovecot.autoexpunge.lo
ck) failed: No such file or directory

 

 

Danke für eure Hilfe.

 

Beste Grüße

Matthias Köstler

-------------- nächster Teil --------------
Ein Dateianhang mit HTML-Daten wurde abgetrennt...
URL: <https://listen.jpberlin.de/pipermail/dovecot/attachments/20200415/12cc8f27/attachment-0001.html>


Mehr Informationen über die Mailingliste Dovecot