Setup neko cyrus imapd
After installing the latest neko_cyrus_imapd and neko_cyrus_sasl...
Edit /usr/nekoware/etc/imapd.conf to make it look like this:
configdirectory: /usr/nekoware/var/imap partition-default: /usr/nekoware/var/spool/imap admins: cyrus root srvtab: /usr/nekoware/var/imap/srvtab allowanonymouslogin: no sasl_pwcheck_method: saslauthd allowplaintext: yes sasl_mech_list: PLAIN altnamespace: 1
This will give you a simple authentication mechanism. Next, you'll want to start the saslauthd daemon.
# saslauthd -a shadow
Contrary to what you might think, this does not just allow regular /etc/shadow (unix) users. First, add a sasl password for root:
# saslpasswd2 root
To add more imap users, you can also just add them to the sasl database:
# saslpasswd2 newuser
Make certain that the newly created authentication database is readable by the 'cyrus' user:
# chown cyrus /usr/nekoware/etc/sasldb2
Check to make sure you are pointed to nekoware_perl rather than the SGI perl 5 which installs as an optional system.
Then you can create mailboxes.
$ cyradm --user newuser localhost localhost> cm sent-mail localhost> cm drafts localhost> cm spam
... and so on. You can check what mailboxes you have as a user:
$ cyradm --user newuser localhost localhost> lm INBOX (\HasChildren) sentmail (\HasNoChildren) drafts (\HasNoChildren) spam (\HasNoChildren)
Done and done. Fire up your preferred mail client, and add the IMAP account. If you want everything to be automatically started at boottime, you'll have to use a rather dirty hack: edit /etc/init.d/neko_cyrus_imapd and add the saslauthd startup stuff, and do
# chkconfig neko_cyrus_imapd on
Share your opinion