How to Instructions

Lee Hoffman lee_hoffman at brown.edu
Mon Sep 23 15:43:20 EDT 2002


Here are my install commands for cyrus/sasl on RH7.3. Some things have
been updated, you'll have to change version numbers where appropriate.
Also this install cyrus data in a shared partition /export (changing
this is easy).

# CYRUS

mkdir cyrus

ls /export/

cd cyrus/

wget http://www.sleepycat.com/update/snapshot/db-4.0.14.tar.gz

tar -xzf db-4.0.14.tar.gz 

cd db-4.0.14

ls

cd build_unix/

../dist/configure

make

make install

cd ..

cd ..

wget ftp://ftp.andrew.cmu.edu/pub/cyrus-mail/cyrus-imapd-2.1.5.tar.gz

wget ftp://ftp.andrew.cmu.edu/pub/cyrus-mail/cyrus-sasl-2.1.7.tar.gz

groupadd cyrus

useradd -g cyrus cyrus

ls

tar -xzf cyrus-sasl-2.1.7.tar.gz

cd cyrus-sasl-2.1.7

export CPPFLAGS="-I/usr/local/BerkeleyDB.4.0/include"
LDFLAGS="-L/usr/local/BerkeleyDB.4.0/lib"

./configure --enable-plain --disable-krb4
--with-saslauthd=/var/run/saslauthd --with-ldap

make

make install

cd ..

tar -xzf cyrus-imapd-2.1.5.tar.gz 

cd cyrus-imapd-2.1.5

cd ../cyrus-sasl-2.1.7

mkdir -p /var/run/saslauthd

cd saslauthd

make testsaslauthd

cp testsaslauthd /usr/local/bin

ldconfig 

cd ..

cd ../cyrus-imapd-2.1.5

export CPPFLAGS="-I/usr/include/et"; ./configure
--with-sasl=/usr/local/lib --with-perl --with-auth=unix --with-ssl
--with-dbdir=/usr/local/BerkeleyDB.4.0 --with-ucdsnmp=no

make depend

make

make isntall

make install

emacs /etc/init.d/cyrus

chmod 755 /etc/init.d/cyrus 

ln -s /etc/rc.d/init.d/cyrus /etc/rc.d/rc3.d/S20cyrus

ln -s /etc/rc.d/init.d/cyrus /etc/rc.d/rc3.d/K10cyrus 

mkdir /export/cyrus

mkdir /export/cyrus/imap

touch /export/cyrus/imapd.conf

ln -s /export/cyrus/imapd.conf /etc/imapd.conf

touch /export/cyrus/ldap.conf

ln -s /export/cyrus/ldap.conf /etc/ldap.conf

mv /etc/ldap.conf /export/cyrus/

ln -s /export/cyrus/ldap.conf /etc/ldap.conf

emacs /etc/services

ls -al /etc/imapd.conf 

ls -al /etc/cyrus.conf

touch /export/cyrus/cyrus.conf

ln -s /export/cyrus/cyrus.conf /etc/cyrus.conf

put saslauthd.conf in /export/cyrus/

 

# UNINSTALL SENDMAIL FIRST

 

# POSTFIX

cd cyrus/

ls

wget http://www.gcfl.net/postfix-download/official/postfix-1.1.11.tar.gz

ls

tar -xzf postfix-1.1.11.tar.gz 

ls

cd postfix-1.1.11

ls

less INSTALL 

./configure

ls

less INSTALL 

make

ln -s /export/cyrus/postfix/etc /etc/postfix 

emacs /etc/init.d/postfix

useradd postfix

groupadd mail

emacs /etc/passwd # add postfix to mail and cyrus groups

emacs /etc/group

make install

# CREATE SELF-SIGNED CERTIFICATE

openssl req -new -nodes -out req.pem -keyout key.pem  
openssl rsa -in key.pem -out new.key.pem
openssl x509 -in req.pem -out ca-cert -req \
-signkey new.key.pem -days 999 

cp new.key.pem /export/cyrus/server.pem
rm new.key.pem

chown cyrus:mail /export/cyrus/server.pem
chmod 600 /export/cyrus/server.pem 


--------------------------------------------

SASLAUTHD.CONF

ldap_servers: ldaps://yourserver.yourdomain.com # ldap not ldaps if no
SSL
ldap_bind_dn: cn=admin,ou=users,dc=domain,dc=com
ldap_bind_pw: password
ldap_auth_method: bind
ldap_search_base: ou=users,dc=domains,dc=com


--------------------------------------------

# Cyrus Imapd.conf Configuration

configdirectory: /export/cyrus/imap
partition-default: /export/cyrus/spool/imap
admins: admin
#sasl_pwcheck_method: pam

# For SSL
tls_cert_file: /export/cyrus/server.pem
tls_key_file: /export/cyrus/server.pem

allowanonymouslogin: no
allowplaintext: yes
sasl_mech_list: PLAIN
servername: localhost
autocreatequota: 10000
reject8bit: no
quotawarn: 90
timeout: 30
poptimeout: 10
dracinterval: 0
drachost: localhost
sasl_pwcheck_method: saslauthd
#sievedir: /usr/sieve
#sendmail: /usr/sbin/sendmail
#sieve_maxscriptsize: 32
#sieve_maxscripts: 5

# Get rid of folders as subfolders of INBOX
altnamespace: yes 
unixhierarchysep: yes


Hope this helps.

Lee


-----Original Message-----
From: owner-info-cyrus at lists.andrew.cmu.edu
[mailto:owner-info-cyrus at lists.andrew.cmu.edu] On Behalf Of Kimberly
Triplett
Sent: Monday, September 23, 2002 1:19 PM
To: info-cyrus at lists.andrew.cmu.edu
Subject: How to Instructions

I am still having problems getting my redhat linux 7.2 - cyrus -ldap
config
working.  IS there anyone out there that can give me a step by step
how-to
on getting this stuff installed and configured.

Thanks
Kim







More information about the Info-cyrus mailing list