On Wednesday, August 18, 2021 4:17:16 PM CEST Karl Pielorz wrote:
> Hi,
> 
> All the Cyrus IMAP servers I've ever setup - I've setup squatter to index
> the mailboxes.
> 
> I keep the data for it on a separate meta partition. Recently we lost that
> partition (but not the main mail spools) - this had a nasty effect of
> having Cyrus declare every mailbox as 'invalid' - because it couldn't find
> the mailboxes directory or data in the meta partition hierarchy (because it
> was empty).
> 
> I disabled squatter support in imapd.conf - and the server is happy to
> serve mailboxes again.
> 
> Is there any way to have the system go through and recreate the directory
> hierarchy that was lost?

Not certain, but before I configure Cyrus to do it on a schedule itself, I had 
the following in my crontab:
/bin/su -s /bin/sh -c "/usr/sbin/squatter -v -r -i user" cyrus

> Anyone know if it's more tolerant if the files are missing - rather than
> the whole directory?

I don't think I ever had cyrus fail to start due to missing files, I always had 
it happily rebuild it on startup.
Only exception to this was when the format changed, but it was well-documented 
on how to convert the format.

> And the final question is - does anyone still use squatter? - A lot of mail
> clients now seem to just "download everything" anyway?

I really dislike clients that insist on downloading and indexing the emails 
itself, but don't have much choice when it comes to desktop-apps.
Web-based email clients do tend to use squatter (server-based search) and this 
is why I still have it enabled.

--
Joost



------------------------------------------
Cyrus: Devel
Permalink: 
https://cyrus.topicbox.com/groups/devel/T82aa2a332e2b856b-M1359f3d225428e79d665ed14
Delivery options: https://cyrus.topicbox.com/groups/devel/subscription

Reply via email to