[Dovecot] lda reports a lot of errors

Thomas Balsfulland tbals at ctrl-c.de
Mon Apr 23 00:53:29 EEST 2007


hello,

i am using dovecot 1.0.rc15-1~bpo1 (from backports.org) on an debian
sarge machine as lda imapd and pop3d with postfix 2.1.5-9.

sometimes docvecot lda cannot write an mail to an existing mbox-file and
the logfiles fills up with:

deliver(user1 at domain.tld): "2007-04-22 23:17:32
"Error: Cached message offset 6937844 is invalid for mbox file /home/vmail/domain.tld/user1
deliver(user1 at domain.tld): "2007-04-22 23:17:32
"Error: Cached message offset 6937844 is invalid for mbox file /home/vmail/domain.tld/user1
deliver(user1 at domain.tld): "2007-04-22 23:17:32
"Error: Cached message offset 6937844 is invalid for mbox file /home/vmail/domain.tld/user1
deliver(user1 at domain.tld): "2007-04-22 23:17:32
"Error: Cached message offset 6937844 is invalid for mbox file /home/vmail/domain.tld/user1

40 lines from this per second and will never stop!
i need to stop postfix and dovecot, kill -9 the deliver-process, fix the
mbox (unlock it with mutt) and start dovecot and postfix again. then the
mail will be deliverd without errors.

some minutes to hours later i got the same problem with a random user
and domain.

my configs:

 /etc/postfix/main.cf:
   :
  virtual_mailbox_domains = /etc/postfix/virtual_domains
  virtual_mailbox_base = /home/vmail
  virtual_mailbox_maps = hash:/etc/postfix/virtual_boxes
  virtual_alias_maps = hash:/etc/postfix/virtual_user
  virtual_minimum_uid = 100
  virtual_uid_maps = static:1005
  virtual_gid_maps = static:1005
  virtual_transport = dovecot
  dovecot_destination_recipient_limit = 1
   :

 /etc/postfix/master.cf:
   :
# dovecot lda
# ==============================================================================
# service           type  private unpriv  chroot  wakeup  maxproc
# command + args
#                         (yes)   (yes)   (yes)   (never) (100)
# ==============================================================================
dovecot             unix  -       n       n       -       -       pipe
  flags=DRhu user=vmail:vmail argv=/usr/lib/dovecot/deliver -d ${recipient}


the dovecot.conf is attached, the mailuser-file looks like:

user1 at domain.tld:password:1005:1005::/home/vmail/domain.tld



can someone help?

thanks a lot.

regards
  thomas

-- 
thomas balsfulland                           tbals at ctrl-c.de
                zwischen mut und dummheit liegt nur ein grat
            der sich durch das vorbereitetsein unterscheidet
-------------- next part --------------
protocols = imaps imap pop3s pop3
disable_plaintext_auth = no
log_path = /var/log/dovecot.log
info_log_path = /var/log/dovecot.log
log_timestamp = "%Y-%m-%d %H:%M:%S "
ssl_disable = no
ssl_cert_file = /etc/ssl/certs/dovecot.pem
ssl_key_file = /etc/ssl/private/dovecot.pem
mail_location = mbox:/home/vmail/%d/%n:INBOX=/home/vmail/%d/%n:INDEX=/home/vmail/index/%u

protocol imap {
  listen = 127.0.0.1
  ssl_listen = 85.x.y.z
  mail_plugins = quota imap_quota
  imap_client_workarounds = outlook-idle delay-newmail
}

protocol pop3 {
  listen = 85.x.y.z
  ssl_listen = 85.x.y.z
  pop3_uidl_format = %08Xu%08Xv
  mail_plugins = quota
  pop3_client_workarounds = outlook-no-nuls oe-ns-eoh
}

protocol lda {
  postmaster_address = postmaster at domain.tld
  mail_plugins = cmusieve quota
  auth_socket_path = /var/run/dovecot/auth-master
  log_path = /var/log/dovecot-deliver.log
  info_log_path = /var/log/dovecot-deliver.log
}

auth_verbose = yes
auth default {
  mechanisms = plain digest-md5 cram-md5
  passdb passwd-file {
    args = /etc/dovecot/mailuser
  }
  userdb passwd-file {
    args = /etc/dovecot/mailuser
  }
  user = vmail
  socket listen {
    master {
      path = /var/run/dovecot/auth-master
      mode = 0600
      user = vmail
    }
  }
}

dict {
}
plugin {
  quota = maildir:storage=262144
}


More information about the dovecot mailing list