[Mailman-Users] how to install

pehr anderson pehr at eink.com
Fri Apr 16 18:24:02 CEST 1999


I wrote the following installation script trying to follow all the docs.

Please tell me what I'm doing wrong. It seems like I'm missing
something pretty fundamental.

    -pehr

#!/bin/sh
# Script to install mailman on a clean box with RedHat Linux 5.2
# by pehr at eink.com
# This doesn't work yet, please tell me what's wrong!
# Send me mail and I'll fix it.
# CAUTION THIS WILL MOST LIKELY NUKE AN EXISTING MAILMAN INSTALLATION
# DO NOT USE THIS SCRIPT TO UPGRADE

EMAIL=pehr at eink.com
PASSWD=foo
#some unused user/group id
ID=127

userdel  mailman
groupdel mailman
groupadd -g $ID mailman
useradd  -u $ID -g mailman mailman
cd /home/mailman
tar xzf ~pehr/gz/mailman.tar.gz
chgrp mailman   /home/mailman
chmod a+rx,g+ws /home/mailman

# configure and install mailman
cd mailman*
make clean
./configure --with-mail-gid=mail --with-cgi-gid=nobody
#make
make install
crontab -u mailman /home/mailman/cron/crontab.in

# configure apache and restart
if grep mailman /etc/httpd/conf/httpd.conf
then
echo ScriptAlias /mailman/ /home/mailman/cgi-bin/ >>
/etc/httpd/conf/httpd.conf
echo Alias /pipermail/ /home/mailman/archives/public >>
/etc/httpd/conf/httpd.conf
fi
/etc/rc.d/init.d/httpd restart

#configure sendmail
if grep mailman /etc/aliases
then
echo mailman: $EMAIL
echo mailman-owner: mailman
fi
/etc/rc.d/init.d/sendmail restart

# configure site password
/home/mailman/bin/mmsitepass $PASSWD

echo "Hope it worked!"
echo "Now browse to "
echo "http://localhost/pipermail/"
echo "   -pehr"
lynx http://localhost/pipermail






More information about the Mailman-Users mailing list