Cyrus Admin User
The default admin user is cyrus; however, an additional admin may be needed, or for some reason the default does not work a new admin can be created. Create an admin user name on the system with a password first. cyrus is the default and will be created when cyrus IMAP is installed. However, a good password must be created, see the example.
# passwd cyrus
Changing password for user cyrus.
New UNIX password:
BAD PASSWORD: it is based on a dictionary word
Retype new UNIX password:
passwd: all authentication tokens updated successfully.
It may be a good idea to create a second admin account as is seen here:
useradd cyrusad
passwd cyrusad
Now create an admin with saslauthd:
Verify sasauthd is started with this command:
service saslauthd status
If the status is off it will need to be started with the command below.
Start saslauthd
Centos
# service saslauthd start
Starting saslauthd: [ OK ]
Suse or Ubuntu
/etc/init.d/saslauthd start
saslpasswd2 -c cyrus
Error Message – generic falure
If you get this message do not panic, just do the password again.
# saslpasswd2 -c cyrus
Password:
Again (for verification):
saslpasswd: generic failure
Second time it works!
# saslpasswd2 -c cyrus
Password:
Again (for verification):
Edit the file /etc/impad.conf and view the line that lists admins, add the second admin that was just created and add the third admin if needed.
admins: cyrus
Note: You should not use regular users who have mailboxes as admins. This adds to the security risk.
Create cyrus Folders
su to the user cyrus
su cyrus
Create the necessary file and directories for Cyrus to run by executing this script.
/usr/lib/cyrus-imapd/mkimap
Here is what it looks like from the console.
bash-3.00$ /usr/lib/cyrus-imapd/mkimap
reading configure file…
i will configure directory /var/lib/imap.
i saw partition /var/spool/imap.
done
configuring /var/lib/imap…
creating /var/spool/imap…
done
Return to the root user by using the exit command:
exit
You will probably need to reboot to get everything running.

