Cyrus Mail database and quota issues

I migrated from Tiger to Leopard Server recently and all went pretty well, except I get a daily problem when the cyrus quota process runs. It's like it gets caught in a loop and consumes all available processor cycles. Actually, cycles are shared between syslogd and quota. I also get a message in my mail client that I am @ 97% capacity when it isn't true. If I kill the quota process, then kill the syslogd process eventually things get back to normal. Except, the cyrus imap database directory is huge compared to Tiger Server. In my case I only have 4 test email accounts working on this server and whereas the database used to be around 30MB. with a mail store of approx. 400MB. The database in Leopard is 340MB with the 400MB mail store.

Any ideas?

MacMini 2ghz core 2 Duo with 1 gig RAM, Mac OS X (10.5.2)

Posted on Apr 8, 2008 12:30 PM

Reply
4 replies

May 28, 2008 6:32 AM in response to pnickol

I was able to solve my issue.

First, the database size difference is not a problem, but rather a change that Apple has made to the mail database, so even a database with no records is about 313 MB to start off.

With respect to the cpu being hijacked, the problem for me was that the mailbox quotas were wonked. The way to fix the quotas (or quota roots, I think they're called) is by using the /usr/bin/cyrus/bin/cyrus-quota command with the -f option which fixes any errant mailbox quotas. once I did this, and restarted the mail service, the daily quota process became better behaved and syslogd also stayed under control. I guess there was something wrong with the quota roots. Since then, I no longer get negative numbers in the Server Admin > Mail > Maintenance >Accounts pane.

Hope this helps

Jul 8, 2008 11:58 AM in response to Luda Wieland

I am having the exact same problem. When the system automatically runs this command:


/usr/bin/cyrus/bin/cyrus-quota cyrus-quota -q


it gets stuck in a loop until I either quit the process or reboot the system. When looking at the system logs for that time period (which are several hundred MB), I have this entry...


Jul 6 23:33:34 MiniMe cyrus-quota[21941]: IOERROR: writing /var/imap/quota/i/user.inhelder kelseyinhelder.NEW: No such file or directory


The file that is 'missing' is actually there. I have repaired that mailbox using the mailbfr utility. The next day, the exact same problem occurred with the exact same error message before the loop begins.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Cyrus Mail database and quota issues

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.