[Dovecot] 1.2.15 can't get zlib working

Stan Hoeppner stan at hardwarefreak.com
Wed Nov 23 00:25:13 EET 2011


On 11/22/2011 12:30 PM, Timo Sirainen wrote:
> On 22.11.2011, at 19.00, Stan Hoeppner wrote:
> 
>> The current operation on '1-Spam-l' did not succeed.  The mail server
>> for account stan at hardwarefreak.com responded: Mailbox doesn't exist:
>> 1-Spam-l
> ..
>> /$ la /home/stan/mail/1-Spam-l.gz
>> -r-------- 1 stan stan 14M Oct 28  2010 /home/stan/mail/1-Spam-l.gz
> 
> The name is now "1-Spam-l.gz", not "1-Spam-l". (Subscription file not updated?)

Aha.  That was it.  Thanks Timo.  For some reason my read of the wiki
page made me think this was handled transparently--just zip the file and
everything works as it did before.  Apparently it's not as simple as the
wiki leads one (me anyway) to believe.

This bit of the wiki caused me some confusion as well:
"Compressed mbox files can be accessed only as read-only"

Thus I chmod'ed the .gz file to read-only.  This creates a problem.  It
appears that when Dovecot creates the .imap folder of the same name it
inherits the permissions of the zipped mbox file.  Thus it can't create
the indexes:

2011-11-22 14:59:23 IMAP(stan): Error:
file_dotlock_open(/home/stan/mail/.imap/1-Spam-l.gz/dovecot.index.log)
failed: Permission denied (euid=1000(stan) egid=1000(stan)
access(/home/stan/mail/.imap/1-Spam-l.gz/dovecot.index.log, 4) failed:
No such file or directory)

Reverting with 'chmod +w' fixed this.  Maybe that sentence in the wiki
could be reworded in a way that doesn't prompt some folks to manually
make the zipped files read-only.

It took a while for Dovecot to index the 15K+ messages.  With that
finished, accessing the folder is similar to before, but there's a small
lag when opening messages.  As this is an archive folder the contents
won't change, so Squat FTS should be very fast after the first search,
just as before.  Interestingly, it appears my squat indexes aren't
updating--for any folder.  I've searched 4 folders via Tbird body search
with xyzzyx (took forever) and I see no changes to the dates or sizes of
existing indexes.  I deleted the squat indexes for one folder and ran
the search again.  No new squat indexes were created.  No errors in the
logs.

Any ideas why the squat indexes aren't updating?  IIRC this happened
once before and I was able to fix it.  Don't recall how I did it though....

Once again:

# 1.2.15: /etc/dovecot/dovecot.conf
# OS: Linux 2.6.38.6 i686 Debian 6.0.3 xfs
log_path: /var/log/dovecot.err
info_log_path: /var/log/dovecot.log
log_timestamp: %Y-%m-%d %H:%M:%S
protocols: imap
ssl_parameters_regenerate: 0
disable_plaintext_auth: no
login_dir: /var/run/dovecot/login
login_executable: /usr/lib/dovecot/imap-login
login_process_per_connection: no
login_process_size: 16
login_processes_count: 1
login_max_processes_count: 1
login_max_connections: 8
max_mail_processes: 4
mail_privileged_group: mail
mail_location: mbox:/home/%u/mail:INBOX=/var/mail/%u
mailbox_idle_check_interval: 15
mbox_write_locks: fcntl
mbox_very_dirty_syncs: yes
mbox_lazy_writes: no
mail_process_size: 320
mail_plugins: zlib
imap_client_workarounds: tb-extra-mailbox-sep
lda:
  postmaster_address: postmaster at hardwarefreak.com
  mail_plugins: sieve
auth default:
  worker_max_count: 1
  process_size: 16
  passdb:
    driver: pam
    args: max_requests=1
  userdb:
    driver: passwd
plugin:
  fts: squat
  fts_squat: partial=4 full=10


Thanks.

-- 
Stan





More information about the dovecot mailing list