Cyrus IMAP
Cyrus-imap version
-
Change to the cyrus user
su - cyrus
-
Login to the administration tool
cyradm --user cyrus-admin localhost
Note: You will be prompted for your password.
-
Get the version
localhost> ver
Example output:
name : Cyrus IMAPD version : git2.5+0-Kolab-2.5-108.1.el6.kolab_3.4 vendor : Project Cyrus support-url: http://www.cyrusimap.org os : Linux os-version : 2.6.32-504.16.2.el6.x86_64 environment: Built w/Cyrus SASL 2.1.23 Running w/Cyrus SASL 2.1.23 Built w/OpenSSL 1.0.1e-fips 11 Feb 2013 Running w/OpenSSL 1.0.1e-fips 11 Feb 2013 Built w/zlib 1.2.3 Running w/zlib 1.2.3 CMU Sieve 2.4 TCP Wrappers NET-SNMP mmap = shared lock = fcntl nonblock = fcntl idle = idled
Recovering the Cyrus Admin password
You can’t recover the password as such. What you can do is reset it. To do that login to your IMAPD server as root and run:
saslpasswd2 cyrus-admin
Recovering a corrupt mailbox
- Change to the cyrus user.
sudo su - cyrus
- Change to the directory above the corrupt database. For example if the mailbox is user@example.com you would go to:
cd /var/spool/imap/domain/e/example.com/e
- Then rebuild the mailbox
Note: This is very extreme and may result in all your mail appearing in both the inbox and any sub folders you previously saved the message in.
/usr/lib/cyrus-imapd/reconstruct -r -f -U user/user@example.com