On Wed, 11 Sep 2024, at 10:55 PM, Albert Shih wrote:
> If I keep the delprune inside START section everytime I restart cyrus-imapd
> it seem cyrus launch a cyr_expire on all mailbox and that's take a lot of
> time and during this time I'm unable to login. After the cyr_expire end I'm
> able to login without any issue.
>
> Is that a normal behavior of cyrus ?
Yes, tasks in the START section run to completion before anything else starts up. See the cyrus.conf man page for details.
We have a bunch of cyrus.conf examples in github and they all put the delprune task under EVENTS, so I'd suggest doing the same.
Cheers,
ellie