Re: [Dovecot] maildir_uidlist_create assertion failure

2007-12-20 Thread Andrew Garner
On Dec 20, 2007 11:10 AM, Timo Sirainen [EMAIL PROTECTED] wrote:
 On Mon, 2007-12-17 at 12:52 -0600, Andrew Garner wrote:
  I've been getting the following error fairly often, which tends to
  result in a corrupted dovecot-uidlist.
 
  dovecot: IMAP([EMAIL PROTECTED]): file maildir-uidlist.c: line 1009
  (maildir_uidlist_recreate): assertion failed: (file_size ==
  (uoff_t)st.st_size)

 What filesystem do you use?

This is an NFS filesystem on an EMC Clariion CX700 backend.   The
local client OS is Linux 2.6.18-5-686 (from debian/etch).


[Dovecot] maildir_uidlist_create assertion failure

2007-12-17 Thread Andrew Garner
I've been getting the following error fairly often, which tends to
result in a corrupted dovecot-uidlist.

dovecot: IMAP([EMAIL PROTECTED]): file maildir-uidlist.c: line 1009
(maildir_uidlist_recreate): assertion failed: (file_size ==
(uoff_t)st.st_size)
dovecot: IMAP([EMAIL PROTECTED]): Raw backtrace: imap [0x80cb740] -
imap [0x80cb64a] - imap [0x8070e58] - imap(maildir
_uidlist_sync_deinit+0xe8) [0x8072d18] - imap [0x806e9e2] -
imap(maildir_storage_sync_init+0x66) [0x806edf6] -
imap(imap_sync_init+0x4a) [0x80657da] - ima p(cmd_sync+0x9d)
[0x806590d] - imap(cmd_store+0x33d) [0x805e1ed] - imap(cmd_uid+0x57)
[0x805e737] - imap [0x805f009] - imap [0x805f0ae] - imap(client_inp
ut+0x65) [0x805f6c5] - imap(io_loop_handler_run+0x162) [0x80d3022] -
imap(io_loop_run+0x28) [0x80d2368] - imap(main+0x4ab) [0x806723b] -
/lib/tls/i686/cmo v/libc.so.6(__libc_start_main+0xc8) [0xb7dfdea8] -
imap [0x8059551]
dovecot: child 17997 (imap) killed with signal 6
dovecot: IMAP([EMAIL PROTECTED]):
rename(/home/vmail/domains/o/example.com/U/example/Maildir/dovecot-uidlist.tmp,
/home/vmail/domains/o/example.com/U/example/Maildir/dovecot-uidlist)
failed: No such file or directory
dovecot: IMAP([EMAIL PROTECTED]):
unlink(/home/vmail/domains/o/example.com/U/example/Maildir/dovecot-uidlist.tmp)
failed: No such file or directory
dovecot: IMAP([EMAIL PROTECTED]):
rename(/home/vmail/domains/o/example.com/U/example/Maildir/dovecot-uidlist.tmp,
/home/vmail/domains/o/example.com/U/example/Maildir/dovecot-uidlist)
failed: No such file or directory
dovecot: IMAP([EMAIL PROTECTED]):
unlink(/home/vmail/domains/o/example.com/U/example/Maildir/dovecot-uidlist.tmp)
failed: No such file or directory

Followed sometime later by:
dovecot: IMAP([EMAIL PROTECTED]): Invalid data in file
/home/vmail/domains/o/example.com/U/example/Maildir/dovecot-uidlist

Example of some corruption:
~/Maildir/dovecot-uidlist
...
7879 W193997 1195126451.4452.server023,S=191173:2,aopr
:1195126451.4452.server023,S=191173:2,aopr
...
9628 W665454 1197354124.5254.server019,S=651976:2,pr A0%
:1197354124.5254.server019,S=651976:2,pr


# dovecot -n
# 1.1.beta11: /etc/dovecot/dovecot.conf
base_dir: /var/run/dovecot/
protocols: imap imaps pop3 pop3s
login_dir: /var/run/dovecot/login
login_executable(default): /usr/lib/dovecot/imap-login
login_executable(imap): /usr/lib/dovecot/imap-login
login_executable(pop3): /usr/lib/dovecot/pop3-login
verbose_proctitle: yes
mail_uid: 89
mail_gid: 89
mail_location: maildir:~/Maildir
mail_debug: yes
mmap_disable: yes
mail_nfs_storage: yes
mail_nfs_index: yes
mail_executable(default): /usr/lib/dovecot/rawlog /usr/lib/dovecot/imap
mail_executable(imap): /usr/lib/dovecot/rawlog /usr/lib/dovecot/imap
mail_executable(pop3): /usr/lib/dovecot/pop3
mail_plugins(default): fts fts_squat
mail_plugins(imap): fts fts_squat
mail_plugins(pop3):
mail_plugin_dir(default): /usr/lib/dovecot/modules/imap/
mail_plugin_dir(imap): /usr/lib/dovecot/modules/imap/
mail_plugin_dir(pop3): /usr/lib/dovecot/modules/
imap_client_workarounds(default): delay-newmail
imap_client_workarounds(imap): delay-newmail
imap_client_workarounds(pop3):
pop3_uidl_format(default): %08Xu%08Xv
pop3_uidl_format(imap): %08Xu%08Xv
pop3_uidl_format(pop3): %f
pop3_client_workarounds(default):
pop3_client_workarounds(imap):
pop3_client_workarounds(pop3): outlook-no-nuls oe-ns-eoh
auth default:
  mechanisms: login plain cram-md5 digest-md5
  username_format: %Lu
  verbose: yes
  debug: yes
  passdb:
driver: sql
args: /etc/dovecot/dovecot-sql.conf
  userdb:
driver: sql
args: /etc/dovecot/dovecot-sql.conf
  socket:
type: listen
client:
  path: /var/spool/postfix/private/auth
  user: postfix
  group: postfix
master:
  path: /var/run/dovecot/auth-master
  user: vmail
  group: vmail
plugin:
  quota: maildir
  quota_rule: *:storage=102400:messages=3
  fts: squat


Re: [Dovecot] Dovecot + SASL + allow_nets

2007-12-17 Thread Andrew Garner
On Dec 13, 2007 4:36 AM, Marc Cuypers [EMAIL PROTECTED] wrote:
 Andrew Garner schreef:

  Timo Sirainen schreef:
  On Mon, 2007-12-03 at 14:36 +0100, Marc Cuypers wrote:
  When using dovecot for authentication of an SASL (postfix) request, i
  cannot use the allow_nets parameter.  The IP-address of the requester is
  not known in dovecot.
 
  I would like to allow sasl for certain users, others are not allowed to
  access via SASL.
  Some users can have access to imap and pop3 from certain IP-addresses.
 
  How could i combine this in then dovecot configuration?
  Since Postfix doesn't send the IP to Dovecot, there isn't anything on
  Dovecot's side you can do. You could try asking about this in Postfix
  list.. Someone at least had a patch which allowed sending local IP to
  Dovecot (http://marc.info/?t=119306971600010r=1w=2). Maybe it sends
  remote IP as well.
 
  I wrote that patch.   It passes both endpoints (remote  local)
  through to dovecot .This lets you restrict smtp-auth just like
  pop3 or imap using the remote IP.In my case, I had played around
  with a quick hack for doing per-ip realming (using the local IP) w/
  dovecot-sql.
 Hi Andrew,

 Where can i find the patch?

 --
 Marc


Sorry for taking so long to respond.Here's the patch, attached.
It's been tested against the Postfix 2.3/2.4 series, but not the 2.5.x
non-production/development series.People have reported success
on Postfix 2.4.6+. I'm not sure that it'll get accepted for the
stable series, and I need to clean it up for 2.5 (which changed the
dovecot xsasl plugin somewhat).I'll try to work on getting it
integrated, since there seems to be some interest and no one else has
submitted a better/any_other patch.


postfix_dovecot_xsasl_liprip.patch
Description: Binary data


Re: [Dovecot] Dovecot + SASL + allow_nets

2007-12-03 Thread Andrew Garner
 Timo Sirainen schreef:
  On Mon, 2007-12-03 at 14:36 +0100, Marc Cuypers wrote:
  When using dovecot for authentication of an SASL (postfix) request, i
  cannot use the allow_nets parameter.  The IP-address of the requester is
  not known in dovecot.
 
  I would like to allow sasl for certain users, others are not allowed to
  access via SASL.
  Some users can have access to imap and pop3 from certain IP-addresses.
 
  How could i combine this in then dovecot configuration?
 
  Since Postfix doesn't send the IP to Dovecot, there isn't anything on
  Dovecot's side you can do. You could try asking about this in Postfix
  list.. Someone at least had a patch which allowed sending local IP to
  Dovecot (http://marc.info/?t=119306971600010r=1w=2). Maybe it sends
  remote IP as well.

I wrote that patch.   It passes both endpoints (remote  local)
through to dovecot .This lets you restrict smtp-auth just like
pop3 or imap using the remote IP.In my case, I had played around
with a quick hack for doing per-ip realming (using the local IP) w/
dovecot-sql.


[Dovecot] deliver+quota assertion

2007-11-30 Thread Andrew Garner
When stressing dovecot's delivery agent, I sporadically encountered
the following assertion failures and the associated errors.   I was
trickling in ~50 messages per minute to this mailbox via postal.

Nov 30 09:38:41 mail deliver([EMAIL PROTECTED]):
close(/home/vmail/domains//+/example.com/k/example//Maildir/maildirsize)
failed: Bad file descriptor
Nov 30 09:38:41 mail deliver([EMAIL PROTECTED]):
rename(/home/vmail/domains//+/example.com/k/example//Maildir/maildirsize.lock,
/home/vmail/domains//+/example.com/k/example//Maildir/maildirsize)
failed
: No such file or directory
Nov 30 09:38:41 mail deliver([EMAIL PROTECTED]):
file_dotlock_replace(/home/vmail/domains//+/example.com/k/example//Maildir/maildirsize)
failed: No such file or directory
Nov 30 09:38:41 mail deliver([EMAIL PROTECTED]): Internal quota
calculation error
Nov 30 09:38:41 mail deliver([EMAIL PROTECTED]): file
index-transaction.c: line 54 (index_transaction_finish_rollback):
assertion failed: (t-mail_ref_count == 0)
Nov 30 09:38:41 mail deliver([EMAIL PROTECTED]): Raw backtrace:
/usr/lib/dovecot/deliver(i_syslog_fatal_handler+0x2b) [0x80bf0ab] -
/usr/lib/dovecot/deliver [0x80beeba] - /usr/lib/dovecot/deliver [0x
808f243] - /usr/lib/dovecot/deliver(index_transaction_rollback+0x1a)
[0x808f06a] - /usr/lib/dovecot/modules/lda/lib10_quota_plugin.so
[0xb7ea2f13] - /usr/lib/dovecot/deliver(deliver_save+0x212)
[0x8059412]
 - /usr/lib/dovecot/deliver(main+0x12cb) [0x805a79b] -
/lib/tls/i686/cmov/libc.so.6(__libc_start_main+0xc8) [0xb7ebcea8] -
/usr/lib/dovecot/deliver [0x8058611]


# dovecot -n
# 1.1.beta9: /etc/dovecot/dovecot.conf
base_dir: /var/run/dovecot/
protocols: imap imaps pop3 pop3s
login_dir: /var/run/dovecot/login
login_executable(default): /usr/lib/dovecot/imap-login
login_executable(imap): /usr/lib/dovecot/imap-login
login_executable(pop3): /usr/lib/dovecot/pop3-login
login_greeting: Nationwide Internet Mail Server ready.
verbose_proctitle: yes
first_valid_uid: 89
last_valid_uid: 89
first_valid_gid: 89
last_valid_gid: 89
mail_uid: 89
mail_gid: 89
mail_location: maildir:/home/vmail/domains/%h/Maildir
mail_debug: yes
mmap_disable: yes
mail_nfs_storage: yes
mail_nfs_index: yes
lock_method: dotlock
mail_executable(default): /usr/lib/dovecot/rawlog /usr/lib/dovecot/imap
mail_executable(imap): /usr/lib/dovecot/rawlog /usr/lib/dovecot/imap
mail_executable(pop3): /usr/lib/dovecot/pop3
mail_plugin_dir(default): /usr/lib/dovecot/imap
mail_plugin_dir(imap): /usr/lib/dovecot/imap
mail_plugin_dir(pop3): /usr/lib/dovecot/modules/pop3
imap_client_workarounds(default): delay-newmail
imap_client_workarounds(imap): delay-newmail
imap_client_workarounds(pop3):
pop3_uidl_format(default): %08Xu%08Xv
pop3_uidl_format(imap): %08Xu%08Xv
pop3_uidl_format(pop3): %f
pop3_client_workarounds(default):
pop3_client_workarounds(imap):
pop3_client_workarounds(pop3): outlook-no-nuls oe-ns-eoh
auth default:
  mechanisms: login plain cram-md5 digest-md5
  username_format: %Lu
  verbose: yes
  debug: yes
  passdb:
driver: sql
args: /etc/dovecot/dovecot-sql.conf
  userdb:
driver: sql
args: /etc/dovecot/dovecot-sql.conf
  socket:
type: listen
client:
  path: /var/spool/postfix/private/auth
  mode: 432
  user: postfix
  group: postfix
master:
  path: /var/run/dovecot/auth-master
  mode: 384
  user: vmail
  group: vmail
plugin:
  quota: maildir
  quota_rule: *:storage=102400


This is the latest hg sources, somewhat after beta9:
$ hg tip
changeset:   6877:a5a7d38b6df7
branch:  HEAD
tag: tip
user:Timo Sirainen [EMAIL PROTECTED]
date:Thu Nov 29 19:38:06 2007 +0200


[Dovecot] imap search/content-transfer-encoding assertion failed

2007-11-05 Thread Andrew Garner
When performing an imap search, I hit the following assertion failure:
imap(vmail): Panic: file unichar.c: line 128 (uni_ucs4_to_utf8_c):
assertion failed: (chr = 0x4000)
imap(vmail): Error: Raw backtrace: /usr/lib/dovecot/imap [0x80c7f7f]
- /usr/lib/dovecot/imap [0x80c7d6a] - /usr/lib/dovecot/imap
[0x80d8616] - /usr/lib/dovecot/imap(uni_utf8_to_decomposed_titlecase+0x9f)
[0x80d892f] - /usr/lib/dovecot/imap(message_decoder_decode_next_block+0x679)
[0x80c46e9] - /usr/lib/dovecot/imap(message_search_more+0x3e)
[0x80c2e8e] - /usr/lib/dovecot/imap(message_search_msg+0x72)
[0x80c3012] - /usr/lib/dovecot/imap [0x8093f47] -
/usr/lib/dovecot/imap [0x80b7719] -
/usr/lib/dovecot/imap(mail_search_args_foreach+0x32) [0x80b77c2] -
/usr/lib/dovecot/imap(index_storage_search_next_nonblock+0x243)
[0x8093af3] - /usr/lib/dovecot/imap [0x805cdc7] -
/usr/lib/dovecot/imap [0x805d138] -
/usr/lib/dovecot/imap(io_loop_handle_timeouts+0x112) [0x80ce892] -
/usr/lib/dovecot/imap(io_loop_handler_run+0x66) [0x80cf316] -
/usr/lib/dovecot/imap(io_loop_run+0x28) [0x80ce768] -
/usr/lib/dovecot/imap(main+0x4ab) [0x806675b] -
/lib/tls/i686/cmov/libc.so.6(__libc_start_main+0xc8) [0xb7e68ea8] -
/usr/lib/dovecot/imap [0x8059141]

My quick analysis: This seemed to be caused by a single message in
this mailbox. I think dovecot is expanding base64 encoded binary data
and then inevitably failing on the utf8 conversion of the decoded
random binary data.

The mime headers for this message are:
MIME-Version: 1.0
Content-Type: multipart/mixed;
 boundary=080305000603070709090808
...
This is a multi-part message in MIME format.
--080305000603070709090808
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
text content
...
--080305000603070709090808
Content-Type: application/x-zip-compressed;
 name=.zip
Content-Transfer-Encoding: base64
Content-Disposition: inline;
 filename=.zip

base64 encoded zip file
...
--080305000603070709090808--

# dovecot -n
# 1.1.beta6: /etc/dovecot/dovecot.conf
protocols: imap pop3
listen: 127.0.0.1
disable_plaintext_auth: no
login_dir: /var/run/dovecot/login
login_executable(default): /usr/lib/dovecot/imap-login
login_executable(imap): /usr/lib/dovecot/imap-login
login_executable(pop3): /usr/lib/dovecot/pop3-login
login_greeting_capability(default): yes
login_greeting_capability(imap): yes
login_greeting_capability(pop3): no
first_valid_uid: 89
mail_location: maildir:~/Maildir
mail_debug: yes
mmap_disable: yes
mail_nfs_storage: yes
mail_nfs_index: yes
mail_executable(default): /usr/lib/dovecot/rawlog /usr/lib/dovecot/imap
mail_executable(imap): /usr/lib/dovecot/rawlog /usr/lib/dovecot/imap
mail_executable(pop3): /usr/lib/dovecot/rawlog /usr/lib/dovecot/pop3
mail_plugins(default):  fts fts_lucene
mail_plugins(imap): fts fts_lucene
mail_plugins(pop3): quota
mail_plugin_dir(default): /usr/lib/dovecot/modules/imap
mail_plugin_dir(imap): /usr/lib/dovecot/modules/imap
mail_plugin_dir(pop3): /usr/lib/dovecot/modules/pop3
mail_log_prefix: %Us(%u[%r]):
mail_log_max_lines_per_sec: 100
pop3_uidl_format(default): %08Xu%08Xv
pop3_uidl_format(imap): %08Xu%08Xv
pop3_uidl_format(pop3): %f
auth default:
  mechanisms: plain cram-md5
  verbose: yes
  debug: yes
  debug_passwords: yes
  passdb:
driver: sql
args: /etc/dovecot/dovecot-sql.conf
  userdb:
driver: sql
args: /etc/dovecot/dovecot-sql.conf
  socket:
type: listen
client:
  path: /var/spool/postfix/private/auth
  mode: 432
  user: postfix
  group: postfix
master:
  path: /var/run/dovecot/auth-master
  mode: 384
  user: vmail
  group: vmail
plugin:
  fts: lucene


[Dovecot] imap sort assertion failure

2007-10-01 Thread Andrew Garner
The following error occurred after a SORT (TO) US-ASCII ALL command.
  This only seems to happen with to, all our other tests work as
expected.

Oct  1 20:32:49 dovecot: IMAP([EMAIL PROTECTED]):
pool_data_stack_realloc(): stack frame changed
Oct  1 20:32:49 dovecot: IMAP([EMAIL PROTECTED]): Raw backtrace:
imap [0x80c5ed1] -
imap [0x80c5dec] -
imap [0x80cde63] -
imap [0x80c43c0] -
imap(buffer_write+0x85) [0x80c46f5] -
imap(buffer_append+0x26) [0x80c4766] -
imap [0x80be2f5] -
imap(message_header_decode+0x75) [0x80be3d5] -
imap(message_header_decode_utf8+0x56) [0x80be5f6] -
imap [0x80903c4] -
imap(index_mail_get_first_header+0x3e) [0x809125e] -
imap(mail_get_first_header_utf8+0x26) [0x80b4726] -
imap [0x809386b] -
imap [0x8093900] -
imap [0x809414e] -
imap(index_sort_list_finish+0x33) [0x80949d3] -
imap(index_storage_search_next_nonblock+0x3b6) [0x80924a6] -
imap(mailbox_search_next+0x30) [0x80b5b70] -
imap(imap_sort+0xdd) [0x806407d] -
imap(cmd_sort+0x2a4) [0x805d454] -
imap [0x805e7b9] -
imap [0x805e862] -
imap(client_input+0x65) [0x805ee85] -
imap(io_loop_handler_run+0x162) [0x80cc2a2] -
imap(io_loop_run+0x28) [0x80cb628] -
imap(main+0x4ab) [0x806643b] -
/lib/tls/i686/cmov/libc.so.6(__libc_start_main+0xc
Oct  1 20:32:49 dovecot: child 31161 (imap) killed with signal 6

# dovecot -n
# 1.1.beta2: /etc/dovecot/dovecot.conf
protocols: imap pop3
listen: 127.0.0.1
disable_plaintext_auth: no
login_dir: /var/run/dovecot/login
login_executable(default): /usr/lib/dovecot/imap-login
login_executable(imap): /usr/lib/dovecot/imap-login
login_executable(pop3): /usr/lib/dovecot/pop3-login
first_valid_uid: 89
mail_location: maildir:~/Maildir
mail_debug: yes
mmap_disable: yes
mail_nfs_storage: yes
mail_nfs_index: yes
lock_method: dotlock
mail_executable(default): /usr/lib/dovecot/rawlog /usr/lib/dovecot/imap
mail_executable(imap): /usr/lib/dovecot/rawlog /usr/lib/dovecot/imap
mail_executable(pop3): /usr/lib/dovecot/pop3
mail_plugins(default):
mail_plugins(imap):
mail_plugins(pop3):
mail_plugin_dir(default): /usr/lib/dovecot/modules/imap
mail_plugin_dir(imap): /usr/lib/dovecot/modules/imap
mail_plugin_dir(pop3): /usr/lib/dovecot/modules/pop3
auth default:
  mechanisms: plain cram-md5
  verbose: yes
  debug: yes
  debug_passwords: yes
  passdb:
driver: sql
args: /etc/dovecot/dovecot-sql.conf
  userdb:
driver: sql
args: /etc/dovecot/dovecot-sql.conf
  socket:
type: listen
client:
  path: /var/spool/postfix/private/auth
  mode: 432
  user: postfix
  group: postfix
master:
  path: /var/run/dovecot/auth-master
  mode: 384
  user: vmail
  group: vmail


[Dovecot] dovecot 1.1alpha6 deliver+quota bugs

2007-09-21 Thread Andrew Garner
I was playing around with dovecot-1.1 and maildir++ quotas, and ran
into a reproducible error with indexing.This only seems to be a
problem for new maildirs.   If I send a message without the quota
plugin on, and  seed the index/control files, future deliveries with
the quota plugin seem to succeed without errors.


Version: 1.1alpha6
OS: Debian etch/x86 (ext3 filesystem)


# dovecot -n
# 1.1.alpha6: /etc/dovecot/dovecot.conf
login_dir: /var/run/dovecot/login
login_executable: /usr/lib/dovecot/imap-login
mail_location: maildir:~/Maildir
mail_debug: yes
mmap_disable: yes
lock_method: dotlock
mail_executable: /usr/lib/dovecot/gdbhelper /usr/lib/dovecot/imap
mail_plugins: quota imap_quota
auth default:
  verbose: yes
  debug: yes
  debug_passwords: yes
  passdb:
driver: sql
args: /etc/dovecot/dovecot-sql.conf
  userdb:
driver: sql
args: /etc/dovecot/dovecot-sql.conf
  socket:
type: listen
client:
  path: /var/spool/postfix/private/auth
  mode: 432
  user: postfix
  group: postfix
master:
  path: /var/run/dovecot/auth-master
  mode: 384
  user: vmail
  group: vmail
plugin:
  quota: maildir
  quota_rule: *:storage=102400

Here's the deliver-log from a fresh Maildir (just ~/Maildir/{cur,new,tmp}):

deliver([EMAIL PROTECTED]): Sep 21 18:39:48 Info: Loading modules
from directory: /usr/lib/dovecot/modules/lda
deliver([EMAIL PROTECTED]): Sep 21 18:39:48 Info: Module loaded:
/usr/lib/dovecot/modules/lda/lib10_quota_plugin.so
deliver([EMAIL PROTECTED]): Sep 21 18:39:48 Info: auth input:
[EMAIL PROTECTED]
deliver([EMAIL PROTECTED]): Sep 21 18:39:48 Info: auth input:
home=/home/vmail/domains/example.com/example
deliver([EMAIL PROTECTED]): Sep 21 18:39:48 Info: auth input: uid=1014
deliver([EMAIL PROTECTED]): Sep 21 18:39:48 Info: auth input: gid=1014
deliver([EMAIL PROTECTED]): Sep 21 18:39:48 Info: Quota rule: root=
mailbox= storage=102400kB messages=0
deliver([EMAIL PROTECTED]): Sep 21 18:39:48 Info: maildir:
data=/home/vmail/domains/example.com/example/Maildir
deliver([EMAIL PROTECTED]): Sep 21 18:39:48 Info: maildir++:
root=/home/vmail/domains/example.com/example/Maildir, index=,
control=, inbox=/home/vmail/domains/example.com/ex
ample/Maildir
deliver([EMAIL PROTECTED]): Sep 21 18:39:48 Error: uid_validity
mismatch in file
/home/vmail/domains/example.com/example/Maildir/dovecot.list.index.uidmap:
1190399988 != 0
deliver([EMAIL PROTECTED]): Sep 21 18:39:48 Error: Corrupted mailbox
list index file
/home/vmail/domains/example.com/example/Maildir/dovecot.list.index.uidmap:
dir_size is s
maller than record count
deliver([EMAIL PROTECTED]): Sep 21 18:39:48 Error: Internal quota
calculation error
deliver([EMAIL PROTECTED]): Sep 21 18:39:48 Info:
msgid=[EMAIL PROTECTED]: save failed to INBOX: Internal error
occurred. Refer to server log for more information.
[2007-09-21 18:39:48]

Turning off the quota plugin will allow the delivery to succeed:

deliver([EMAIL PROTECTED]): Sep 21 18:42:08 Info: auth input:
[EMAIL PROTECTED]
deliver([EMAIL PROTECTED]): Sep 21 18:42:08 Info: auth input:
home=/home/vmail/domains/example.com/example
deliver([EMAIL PROTECTED]): Sep 21 18:42:08 Info: auth input: uid=1014
deliver([EMAIL PROTECTED]): Sep 21 18:42:08 Info: auth input: gid=1014
deliver([EMAIL PROTECTED]): Sep 21 18:42:08 Info: maildir:
data=/home/vmail/domains/example.com/example/Maildir
deliver([EMAIL PROTECTED]): Sep 21 18:42:08 Info: maildir++:
root=/home/vmail/domains/example.com/example/Maildir, index=,
control=, inbox=/home/vmail/domains/example.com/ex
ample/Maildir
deliver([EMAIL PROTECTED]): Sep 21 18:42:08 Info:
msgid=[EMAIL PROTECTED]: saved mail to INBOX

Turning quota back on has a temporary complaint about uidvalidity:

deliver([EMAIL PROTECTED]): Sep 21 18:44:17 Info: Loading modules
from directory: /usr/lib/dovecot/modules/lda
deliver([EMAIL PROTECTED]): Sep 21 18:44:17 Info: Module loaded:
/usr/lib/dovecot/modules/lda/lib10_quota_plugin.so
deliver([EMAIL PROTECTED]): Sep 21 18:44:17 Info: auth input:
[EMAIL PROTECTED]
deliver([EMAIL PROTECTED]): Sep 21 18:44:17 Info: auth input:
home=/home/vmail/domains/example.com/example
deliver([EMAIL PROTECTED]): Sep 21 18:44:17 Info: auth input: uid=1014
deliver([EMAIL PROTECTED]): Sep 21 18:44:17 Info: auth input: gid=1014
deliver([EMAIL PROTECTED]): Sep 21 18:44:17 Info: Quota rule: root=
mailbox= storage=102400kB messages=0
deliver([EMAIL PROTECTED]): Sep 21 18:44:17 Info: maildir:
data=/home/vmail/domains/example.com/example/Maildir
deliver([EMAIL PROTECTED]): Sep 21 18:44:17 Info: maildir++:
root=/home/vmail/domains/example.com/example/Maildir, index=,
control=, inbox=/home/vmail/domains/example.com/ex
ample/Maildir
deliver([EMAIL PROTECTED]): Sep 21 18:44:17 Error: uid_validity
mismatch in file
/home/vmail/domains/example.com/example/Maildir/dovecot.list.index.uidmap:
1190400128 != 119
0400088
deliver([EMAIL PROTECTED]): Sep 21 18:44:17 Warning: