New Instructions for installation of OSMOSIS



Well, I've decided that all of this should be called the Open Source Messaging Server System, or Osmosis, for short.

Here's some updated instructions that are still a bit incomplete, but it's only the easy parts that you'll have to figure out on your own. As far as I can tell, this all works, but if anyone finds any bugs, I'd appreciate some feedback.

Installation procedure for Open Source Messaging Server System (Osmosis)

for Mac OS X v10.2.8

utilizing Sendmail v8.12.10 [SMTP]
Cyrus SASL v2.1.15 [authentication]
Cyrus IMAPD v2.1.15 or UW-IMAP v2002e [POP and IMAP]
SquirrelMail v1.4.2 [webmail]
Majordomo v1.94.5 [mailing list]

Get the following books, you'll need them:

A. Sendmail, 3rd Edition
B. Managing IMAP
C. Managing Mailing Lists
D. Mac OS X for Unix Geeks


1. Install Mac OS X v10.2
2. Install Mac OS X v10.2.8 Update
3. Install Mac OS X Developer Tools (Dec 2002)
4. Install Mac OS X Dev Tools (Aug 2003 Update)

5. Obtain the following software packages:

BerkeleyDB 4.1.25 from Sleepycat Software
http://www.sleepycat.com/
(needed for Cyrus)

dlcompat-20030629 from OpenDarwin
http://www.opendarwin.org/projects/dlcompat
(needed for Cyrus)

PHP Apache Module v4.3.3 from Entropy
http://www.entropy.ch/software/macosx/php
(needed for SquirrelMail)

Cyrus SASL v2.1.15
http://asg.web.cmu.edu/cyrus/download/
(needed for SMTP AUTH and Cyrus IMAPD)

Cyrus IMAPD v2.1.15
http://asg.web.cmu.edu/cyrus/download/

Sendmail v8.12.10
http://www.sendmail.org/

SquirrelMail v1.4.2
http://www.squirrelmail.org/

Majordomo v1.94.5
http://www.greatcircle.com/majordomo


6. Install BerkeleyDB v4.1.25 (may be skipped if you're installing UW-IMAP instead of Cyrus IMAPD, but you should probably do it anyway in case you find you need to switch later)

a. unpack the tar.gz file
tar xzvf db-4.1.25.tar.gz
b. cd db-4.1.25/build_unix
c. ../dist/configure
d. make
e. make install

7. Install dlcompat-20030629
a. unpack the tar.gz
tar xzvf dicompat-20030629.tar.gz
b. cd dlcompat-20030629
c. ./configure
d. make
e. make install

8. Install PHP Apache Module v4.3.3
a. open the .dmg
b. run the installer

9. Install Cyrus SASL v2.1.15
a. unpack the tar.gz
tar xzvf cyrus-sasl-2.1.15.tar.gz
b. cd cyrus-sasl-2.1.15.tar.gz
c. fix the PAM header location
ln -d /usr/include/pam /usr/include/security
d. ./configure --enable-login --disable-krb4 --disable-gssapi --with-bdb-libdir=/usr/local/BerkeleyDB.4.1/lib --with-bdb-incdir=/usr/local/BerkeleyDB.4.1/include
e. make
f. make install
g. fix saslpasswd2 and sasldblistusers2
i. cd utils
ii. cc saslpasswd.c -I.. -I../include -lsasl2 -I/usr/local/BerkeleyDB.4.1/include -L/usr/local/BerkeleyDB.4.1/lib -ldb-4.1 ../sasldb/.libs/libsasldb.al -o saslpasswd2
iii. cc sasldblistusers.c -I.. -I../include -lsasl2 -I/usr/local/BerkeleyDB.4.1/include -L/usr/local/BerkeleyDB.4.1/lib -ldb-4.1 ../sasldb/.libs/libsasldb.al -o sasldblistusers2
v. cp sasldblistusers2 /usr/local/sbin
vi. cp saslpasswd2 /usr/local/sbin
h. cd ../saslauthd
j. make testsaslauthd
k. cp testsaslauthd /usr/local/sbin
l. mv /usr/lib/sasl2 /usr/lib/sasl2.orig
m. ln -s /usr/local/lib/sasl2 /usr/lib/sasl2
n. add the following line to /etc/hostconfig
SASLAUTHD=-YES-
p. copy the files in /System/Library/StartupItems/BIND and change as necessary to make a startup item for saslauthd
command to start saslauthd should be "saslauthd -a pam"

10. Install Cyrus IMAPD
a. unpack the tar.gz
tar xzvf cyrus-impad-2.1.15
b. cd cyrus-imapd-2.1.15
c. fix source code
i. chown -R root *
ii. add the following three lines to config.guess at line 977
*:Darwin:*:*)
echo powerpc-apple-darwin${UNAME_RELEASE}
exit 0 ;;
iii. cd makedepend
iv. make
v. cp makedepend /usr/bin
vi. cd ..
vii. comment out line 65 in imap/mboxlist.c
//#include <sys/msg.h>
viii. add the following line to imap/setproctitle.c at line 78
#include <sys/time.h>
ix. comment out line 65 in imap/cvt_cyrusdb.c
//#include <sys/msg.h>
x. comment out line 50 in imtest/imtest.c
//#include <sys/msg.h>
xi. comment out line 54 in perl/sieve/lib/request.c
//#include <sys/msg.h>
d. ./configure --with-bdb-libdir=/usr/local/BerkeleyDB.4.1/lib --with-bdb-incdir=/usr/local/BerkeleyDB.4.1/include
e. make depend
f. make all CFLAGS=-O
you will get two errors that can probably be safely ignored
i. ranlib: file: libimap.a(annotate.o) has no symbols
ii. fud.c:101:1: warning: "MAXLOGNAME" redefined
g. make install

OR

10. Install UW-IMAP v2002e
a. as per instructions

11. Configure Cyrus IMAPD
a. as per instructions in doc directory

12. Install Sendmail v8.12.10
a. unpack the tar.gz
tar xzvf sendmail-8.12.10.tar.gz
b. cd sendmail-8.12.10
c. gcc_select 3
d. create the file devtools/Site/site.config.m4
i. APPENDDEF(`confENVDEF', `-DSASL=20115')
ii. APPENDDEF(`conf_sendmail_LIBS', `-lsasl2.2.0.15')
iii. APPENDDEF(`confINCDIRS', `-I/usr/local/include/sasl')
iv. APPENDDEF(`confLIBDIRS', `-L/usr/local/lib')
e. ./Build -n
f. ./Build
g. ./Build install
h. cd cf/cf
j. cp /usr/share/sendmail/conf/cf/generic-darwin.mc local.mc
k. remove the following lines from local.mc
undefine(`ALIAS_FILE')
define(`PROCMAIL_MAILER_PATH', `/usr/bin/procmail')
FEATURE(local_procmail)
MAILER(procmail)
l. add the following lines to local.mc, plus any other local options you might need
define(`confDONT_BLAME_SENDMAIL',``GroupWritableDirPathSafe, ForwardFileInUnsafeDirPathSafe, DontWarnForwardFileInUnsafeDirPath'')
define(`ALIAS_FILE', `/etc/mail/aliases')
define(`confAUTH_OPTIONS', `A')dnl
define(`confAUTH_MECHANISMS', `LOGIN PLAIN DIGEST-MD5 CRAM-MD5')dnl
TRUST_AUTH_MECH(`LOGIN PLAIN DIGEST-MD5 CRAM-MD5')dnl
define(`confTRUSTES_USERS', `majordom')
define(`confLOCAL_MAILER', `cyrusv2')
MAILER(`cyrusv2')
m. mv /etc/mail/sendmail.cf /etc/mail/sendmail.cf.orig
n. m4 ../m4/cf.m4 local.mc > /etc/mail/sendmail.cf
p. change /etc/hostconfig to "MAILSERVER=-YES-"
q. echo "pwcheck_method: saslauthd" > /usr/lib/sasl2/Sendmail.conf
r. cp /etc/pam.d/chkpasswd /etc/pam.d/smtp
s. cp /etc/pam.d/chkpasswd /etc/pam.d/imap
t. reboot or start/restart Sendmail

13. Install Majordomo v1.94.5
a. as per the included instructions, except
b. remove the following switch from the $mailer and $bounce_mailer commands in majordomo.cf
"-oee"


14. Install SquirrelMail
a. as per instructions







Posted: Sun - October 5, 2003 at 06:26      


©