Mail

Managing Cyrus IMAP server - Cyrus system administration

cyrus imap 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

  1. Reset the administrator password with:

    saslpasswd2 admin_user

    After 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 in

    Alternatively, use cyradm, which must be run as the cyrus user.

    cyradm --user admin_user localhost
    Password:
  2. There are two ways to create mail accounts: Create a mailbox using telnet:

    . CREATE user.nick

    Create a mailbox using cyradm:

    mail.ezylinux.com> create user.nick
  3. Delete a mailbox account using telnet:

    . DELETE user.alice

    Using cyradm:

    mail.ezylinux.com> dm user.alice
  4. Recover a mailbox with:

    /usr/lib/cyrus-imapd/reconstruct -r  user.alice
  5. Set a user quota using cyradm:

    mail.ezylinux.com> setquota user.alice 1024000
  6. Fix an incorrectly displayed quota:

    /usr/lib/cyrus-imapd/quota -f
    /usr/lib/cyrus-imapd/quota -f user.alice
  7. Fix SQUAT failed in the log:

    /usr/lib/cyrus/bin/squatter -r -v users/alice

Zimbra Mail Server installation services

EOF.← Back to articles