Installing Cyrus
Prerequisites
Red Hat Linux installed
Windows 2000 Active Directory with Schema Extensions
LDAP
Installation
- Install Cyrus-SASL
- The first thing we need to do is get the software
- mkdir cyrus-sasl
- cd cyrus-sasl
- ftp ftp.andrew.cmu.edu
- get pub/cyrus-mail/cyrus-sasl-2.1.10.tar.gz
- gzip -d cyrus-sasl-2.1.10.tar.gz
- tar -xf cyrus-sasl-2.1.10.tar
- cd cyrus-sasl-2.1.10
- At this point you might want to do a ./configure --help and review the
options
- ./configure --disable-krb4 --disable-gssapi --disable-otp --disable-anon
- make
- make install
- Configure
- ln -s /usr/local/lib/sasl2 /usr/lib/sasl2
- cp /root/centaurus/initScripts/saslauthd /etc/rc.d/init.d/
- Install cyrus-imap
- mkdir /root/cyrus-imap
- cd /root/cyrus-imap
- cp /root/centaurus/programs/cyrus-imap/cyrus-imapd-2.1.11.tar.gz ./
- gzip -d cyrus-imapd-2.1.11.tar.gz
- tar –xf cyrus-imapd-2.1.11.tar
- cd cyrus-imapd-2.1.11
- ./configure –-enable-murder –-with-auth=unix –-without-krb
–-enable-fulldirhash –-disable-gssapi
- make depend
- make all
- make install
- Configure
- useradd cyrus –g mail
- edit /etc/syslog.conf and add
local6.debug /var/log/imapd.log
auth.debug /var/log/auth.log
c. touch /var/log/auth.log /var/log/imapd.log
d. cp /root/centaurus/ConfFiles/imapd.production.conf /etc/imapd.conf
e. cd /var
f. mkdir imap
g. chown cyrus imap
h. chgrp mail imap
i. chmod 750 imap
j. cd /var/spool
k. mkdir imap
l. chown cyrus imap
m. chgrp mail imap
n. chmod 750 imap
o. cd /usr
p. mkdir sieve
q. chown cyrus sieve
r. chgrp mail sieve
s. chmod 750 sieve
t. make sure the following are in /etc/services
pop3 110/tcp
imap 143/tcp
imsp 406/tcp
acap 674/tcp
imaps 993/tcp
pop3s 995/tcp
kpop 1109/tcp
sieve 2000/tcp
lmtp 2003/tcp
mupdate 2004/tcp
fud 4201/udp
u. cd /root
6. Install Cyrus 2.2
a. cvs -d :pserver:anoncvs@cvs.andrew.cmu.edu:/cvs login
password = anonymous
b. cvs -d :pserver:anoncvs@cvs.andrew.cmu.edu:/cvs co -d cyrus-imapd-cvs
-r cyrus-imapd-2_2 cyrus
c. cd cyrus-imapd-cvs/
d. sh SMakefile
e. ./configure –-enable-murder –-with-auth=unix –-without-krb
–-enable-fulldirhash -–disable-gssapi
f. make depend
g. ln /usr/include/et/com_err.h /usr/include/com_err.h
h. make all
i. make install
7. Configure
a. cp /root/cyrus-imapd-cvs/master/conf/prefork.conf /etc/cyrus.conf
b. mkdir /var/imap/socket
c. chown cyrus /var/imap/socket
d. chgrp mail /var/imap/socket
e. cp /etc/pam.d/smtp /etc/pam.d/imap
f. cp /etc/pam.d/smtp /etc/pam.d/pop3
g. cp /root/centaurus/initscripts/cyrus /etc/rc.d/init.d/
h. cp /root/cyrus-imapd-cvs/tools/mkimap /home/cyrus
i. chown cyrus /home/cyrus/mkimap
j. chgrp mail /home/cyrus/mkimap
k. su – cyrus
l. ./mkimap
m. exit
n. /etc/rc.d/init.d/cyrus start
o. telnet localhost 110
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
+OK zeus Cyrus POP3 v2.2.prealpha server ready 4159559065.1043351194@zeus
8. Configure the mupdate master
a. Vi /etc/cyrus.conf and add the following line to the “services”
section
mupdate cmd="/usr/cyrus/bin/mupdate -m" listen=mupdate prefork=1
b. /etc/rc.d/init.d/cyrus restart
c. saslpasswd2 –c cyrus
i. it’s going to ask you for the right pw
d. chown cyrus /etc/sasldb2
e. chgrp mail /etc/sasldb2
f. vi /etc/hosts
i. 10.78.249.26 draco
ii. yada yada
iii. yada yada
g.
9. Configure the back end servers
a. vi /etc/imapd.conf
b. Add the appropriate mupdate commands
mupdate_authname: cyrus
mupdate_password: t1m31$$
mupdate_port: 2004
# mupdate_realm:
mupdate_retry_delay: 20
mupdate_server: zeus.email.starband.net
mupdate_workers_start: 5
mupdate_workers_minspare: 2
mupdate_workers_maxspare: 10
mupdate_workers_max: 50
mupdate_username: cyrus
c. vi /etc/cyrus.conf and add the following line to the “services”
section
mupdate cmd="/usr/cyrus/bin/mupdate" listen=mupdate prefork=1
Table of Contents
Previous
Summary
© 2002 Henry Beatty Last Modified:
Disclaimer: I will not be held responsible for any problems encountered by
following these instructions. This is informational only. Do not use this on a
production system. Use at your own risk.