The primary configuration file for Cyrus is /usr/local/etc/imapd.conf. Replace your imapd.conf with the following. (The bracketed numbers refer to footnotes; remove those.)
partition-default: /var/imap/spool sievedir: /var/imap/sieve admins: user1@domain1 user2@domain2 admin
allowanonymouslogin: no autocreatequota: 10240 reject8bit: no quotawarn: 90 timeout: 30 poptimeout: 10 dracinterval: 0 drachost: localhost sasl_pwcheck_method: auxprop lmtp_overquota_perm_failure: no unixhierarchysep: no virtdomains: userid defaultdomain: domain1
 To use a different location for your email storage, change the
sievedir to point to your preferred location. The
partition-default doesn't have to be inside the same directory as the
configdirectory, but it makes it easier to back up if it is.
 If you want an ID to manage all domains, create it without a domain. IDs created with domains can manage only their own domain.
 This is the domain the system will add if you create a user without adding a domain.
 List all the domains for which you plan to host email. For an explanation of the options in imapd.conf, see /usr/local/etc/imapd.conf.original and
Now you must create several directories and files to prepare Cyrus for operation. Become user
cyrus and run
# su cyrus >/usr/local/cyrus/bin/mkimap
As root, start Cyrus:
# /usr/local/etc/rc.d/imapd.sh start
To test whether Cyrus is running, use this:
#telnet localhost 143 Escape character is '^]'. * OK computer.domain.com Cyrus IMAP4 v2.2.12 server ready
To exit, type
For each mailbox you will host, you must create an ID in SASL2 and in Cyrus. For example, here's how to create the user
domain1 with a valid domain you plan to host. First, create the user in SASL2:
#saslpasswd2 -c test@domain1 Password: Again (for verification): # sasldblistusers2 email@example.com: userPassword
Then create it in Cyrus. You will need the password you used for user admin. If you don't recall the password, reset it using
#cyradm --user admin localhost Password: localhost.domain1> cm user.test@domain1 lm test@domain1 (\HasNoChildren) quit