Managing Cyrus IMAP server - Cyrus system administration
Cyrus IMAP is a well-known POP3 and IMAP server. It can also serve as an MDA, or Mail Delivery Agent.
This article covers commands for changing settings and troubleshooting.
Before you begin
- Run every command except telnet as the cyrus user.
- cyradm manages mailboxes in cyrus-imapd.
Usage and commands
-
Reset the administrator password with:
saslpasswd2 admin_userAfter changing the password, test it by connecting with telnet to port 143 and issuing login followed by the username and password, as shown:
telnet mailserver 143 Trying 192.168.1.1... Connected to mail0.intra.norang.ca. Escape character is '^]'. * OK mail Cyrus IMAP4 v2.1.17-IPv6-Debian-2.1.17-3 server ready . login admin_user password . OK User logged inAlternatively, use cyradm, which must be run as the cyrus user.
cyradm --user admin_user localhost Password: -
There are two ways to create mail accounts: Create a mailbox using telnet:
. CREATE user.nickCreate a mailbox using cyradm:
mail.ezylinux.com> create user.nick -
Delete a mailbox account using telnet:
. DELETE user.aliceUsing cyradm:
mail.ezylinux.com> dm user.alice -
Recover a mailbox with:
/usr/lib/cyrus-imapd/reconstruct -r user.alice -
Set a user quota using cyradm:
mail.ezylinux.com> setquota user.alice 1024000 -
Fix an incorrectly displayed quota:
/usr/lib/cyrus-imapd/quota -f/usr/lib/cyrus-imapd/quota -f user.alice -
Fix SQUAT failed in the log:
/usr/lib/cyrus/bin/squatter -r -v users/alice