www.thorko.de Thorsten Kohlhepp - Systems administrator | Mailman

 

Configure mailman

# apt-get install mailman
The installation dialog will ask you about your desired languages and about the default language.

After the installation finishes run
# newlist <listname>
and follow the instruction on screen.

Copy the following lines to /etc/aliases
## mailman mailing list
<listname>:              "|/var/lib/mailman/mail/mailman post <listname>"
<listname>-admin:        "|/var/lib/mailman/mail/mailman admin <listname>"
<listname>-bounces:      "|/var/lib/mailman/mail/mailman bounces <listname>"
<listname>-confirm:      "|/var/lib/mailman/mail/mailman confirm <listname>"
<listname>-join:         "|/var/lib/mailman/mail/mailman join <listname>"
<listname>-leave:        "|/var/lib/mailman/mail/mailman leave <listname>"
<listname>-owner:        "|/var/lib/mailman/mail/mailman owner <listname>"
<listname>-request:      "|/var/lib/mailman/mail/mailman request <listname>"
<listname>-subscribe:    "|/var/lib/mailman/mail/mailman subscribe <listname>"
<listname>-unsubscribe:  "|/var/lib/mailman/mail/mailman unsubscribe <listname>"


and run
# postalias
if you don't have debian run
# postmap hash:aliases
or
# makemap hash aliases.db < aliases

Virtual domain support

If you use the virtual file you add it like this to /etc/postfix/virtual
<listname>@<domain>              <listname>
<listname>-admin@<domain>        <listname>-admin
<listname>-bounces@<domain>      <listname>-bounces
<listname>-confirm@<domain>      <listname>-confirm
<listname>-join@<domain>         <listname>-join
<listname>-leave@<domain>        <listname>-leave
<listname>-owner@<domain>        <listname>-owner
<listname>-request@<domain>      <listname>-request
<listname>-subscribe@<domain>    <listname>-subscribe
<listname>-unsubscribe@<domain>  <listname>-unsubscribe

and run
# postmap hash:virtual

Check the /etc/mailman/mm_cfg.py to contain lines
DEFAULT_EMAIL_HOST = '<domain>'
DEFAULT_URL_HOST   = '<domain>'


and if done
# /etc/init.d/postfix reload

Apache configuration

change line in /etc/mailman/apache.conf
ScriptAlias /cgi-bin/mailman/ /usr/lib/cgi-bin/mailman/
to
ScriptAlias /mailman/ /usr/lib/cgi-bin/mailman/

run
# apache2ctl configtest
# apache2ctl graceful


If everything went successful start the mailman
# /etc/init.d/mailman start


The admin web page of the mailing list you'll find at
http://<your domain>/mailman/admin/<listname>