BSD DevCenter

oreilly.comSafari Books Online.Conferences.

We've expanded our LAMP news coverage and improved our search! Search for all things LAMP across O'Reilly!

Search
Search Tips

advertisement

Listen Print Discuss Subscribe to BSD Subscribe to Newsletters

Running Cyrus IMAP
Pages: 1, 2, 3, 4



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.)

configdirectory: /var/imap [1]
partition-default: /var/imap/spool
sievedir: /var/imap/sieve
admins: user1@domain1 user2@domain2 admin [2]
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 [3]
loginrealms: domain1,domain2 [4]

[1] To use a different location for your email storage, change the configdirectory, partition-default, and 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.

[2] If you want an ID to manage all domains, create it without a domain. IDs created with domains can manage only their own domain.

[3] This is the domain the system will add if you create a user without adding a domain.

[4] 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 man imapd.conf.

Now you must create several directories and files to prepare Cyrus for operation. Become user cyrus and run mkimap:

# 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 a1 logout

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 test. Replace domain1 with a valid domain you plan to host. First, create the user in SASL2:

#saslpasswd2 -c test@domain1
Password:
Again (for verification):

# sasldblistusers2
test@domain1.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 saslpasswd2 admin:

#cyradm --user admin localhost
Password:
localhost.domain1>
cm user.test@domain1
lm
test@domain1 (\HasNoChildren)
quit

Pages: 1, 2, 3, 4

Next Pagearrow




Sponsored Resources

  • Inside Lightroom
Advertisement

Sponsored by:

O'Reilly Media

©2009, O'Reilly Media, Inc.
(707) 827-7000 / (800) 998-9938
All trademarks and registered trademarks appearing on oreilly.com are the property of their respective owners.
About O'Reilly
Academic Solutions
Authors
Contacts
Customer Service
Jobs
Newsletters
O'Reilly Labs
Press Room
Privacy Policy
RSS Feeds
Terms of Service
User Groups
Writing for O'Reilly
Content Archive
Business Technology
Computer Technology
Google
Microsoft
Mobile
Network
Operating System
Digital Photography
Programming
Software
Web
Web Design
More O'Reilly Sites
O'Reilly Radar
Ignite
Tools of Change for Publishing
Digital Media
Inside iPhone
O'Reilly FYI
makezine.com
craftzine.com
hackszine.com
perl.com
xml.com

Partner Sites
InsideRIA
java.net
O'Reilly Insights on Forbes.com