This page tells how I installed side by side mailmans with postfix and apache2 on a Debian Etch system (well only one is installed as I write this but more will be soon). It is put here so that I remember how to add more mailmans and in hopes it might help someone else with a similar setup. There are two parts. Part one tells how to download and get mailman ready to be install. Part two installs one mailman system. You can repeat part two for every domain name you want to install mailman on.
mkdir /usr/local/mailman
mkdir /usr/local/mailman/install
cd /usr/local/mailman/install
wget http://downloads.sourceforge.net/mailman/mailman-2.1.11.tgz
tar -xf mailman-2.1.11.tgz
cd mailman-2.1.11
print >> fp, k + ':', ((fieldsz - len(k)) * ' ') + vTo
print >> fp, k + '_'+mlist.host_name+':', ((fieldsz - len(k)) * ' ') + vNow go to line 150 and change it from
print >> fp, fqdnaddr, ((fieldsz - len(k)) * ' '), kTo
print >> fp, fqdnaddr, ((fieldsz - len(k)) * ' '), k+'_'+hostname+'@localhost'Why? Because the maps turn out wrong without it. The virtual-mailman would look like
mailman@example.com mailmanThis does not even seem to work as it needs to be
mailman@example.com mailman@localhostI am not sure how it works for anyone without the localhost. But even more for my setup it needs to look like
mailman@example.com mailman_example.com@localhostWithout the extra example.com, mail from mailman@example1.com and mailman@example2.com would collide. The first edit makes the aliases map match with mailman_example.com rather then mailman.
mkdir /usr/local/mailman/skagitattic
chown mailman:mailman /usr/local/mailman/skagitattic
chmod 02775 /usr/local/mailman/skagitattic
./configure --prefix=/usr/local/mailman/skagitattic --with-mailhost=skagitattic.com --with-urlhost=skagitattic.com
make install
cd /usr/local/mailman/skagitattic
chmod 770 archives/private
chown www-data archives/private
chmod o-x archives/private
ScriptAlias /mailman/ /usr/local/mailman/skagitattic/cgi-bin/to apache`s config for the site.
Alias /pipermail/ /usr/local/mailman/skagitattic/archives/public/
<Directory /usr/local/mailman/skagitattic/archives/public/>
Options FollowSymLinks
</Directory>
POSTFIX_STYLE_VIRTUAL_DOMAINS = ['skagitattic.com']to the end of the file(replacing skagitattic.com with your domain).
MTA = 'Postfix'
virtual_alias_maps = Whatever_Maps_you_are_already_using,hash:/usr/local/mailman/skagitattic/data/virtual-mailman
alias_maps = Whatever_Maps_you_are_already_using,hash:/usr/local/mailman/skagitattic/data/aliases
bin/newlist mailman
bin/config_list -i data/sitelist.cfg mailman
cd cron
crontab -u mailman crontab.in
cd ..
bin/mmsitepass
bin/mmsitepass -c
./bin/check_perms -f
bin/mailmanctl start
cp scripts/mailman /etc/init.d/mailman-skagitattic
update-rc.d mailman-skagitattic defaults
Send me, Keelan@skagitattic.com comments or questions. Much of this comes from the mailman install manual at http://www.gnu.org/software/mailman/mailman-install/. Also a big thanks to my brother for helping me with my little python edit, the fine people at the mailman mailing list and irc chanel, and the postfix people over on freenode for helping me get this setup working.