Cyrus
Syntax used in this document includes the following.
- example.com - a domain name
- username - a username or local part of an email address
- cyradm> - a cyradm prompt (already authenticated as an admin user)
- cyrus$ - shell prompt for the cyrus user (in some cases you can also do the command using su cyrus -c "..." but be careful to correctly escape characters)
- root# - shell prompt for the root user
The example commands given are for installations where the imapd.conf has the following options (among others)
admins: cyrusadmin defaultdomain: cyrusdomain allowusermoves: on deletedprefix: DELETED delete_mode: delayed expunge_mode: delayed unixhierarchysep: on virtdomains: userid hashimapspool: true fulldirhash: on
Listing and fixing mailbox quotas (both use and limit)
Check mailbox quota use for the domain example.com
cyrus$ /usr/lib/cyrus-imapd/quota -d example.com
To check and fix the mailbox quota use for the domain example.com
cyrus$ /usr/lib/cyrus-imapd/quota -d example.com -f
If a mailbox quota is incorrect on the mailstore it can be changed from cyradm. The below example sets the quota to 40MB (the number is the mailbox quota in KB)
cyradm> setquota user/username@example.com 40960
To view the current quota for a mailbox
cyradm> listquota user/username@example.com
This is when the number of files/processes that cyrus is using has exceeded the ulimit variables.
To fix, add the following into /etc/security/limits.d/90-nproc.conf
cyrus soft nproc unlimited cyrus hard nproc unlimited cyrus soft nofile 30000 cyrus hard nofile 30000
And then reboot the server (can we just do this instead? service cyrus-imapd stop ; service cyrus-imapd start)