====== mailman ======
Mailman ist in [[programmiersprachen:python]] und läuft auf dem mailserver.
===== Vorraussetzungen =====
* Webserver
* [[server:mailserver#Mail Transfer Agents (MTAs)|MTA]]
* [[programmiersprachen:Python]] ab besten ab Version 2.4 (prüfen mit ''python -V'')
siehe [[http://www.gnu.org/software/mailman/requirements.html|Mailman Requirements]].
===== Links =====
* [[http://www.gnu.org/software/mailman/index.html|Mailman Homepage]]
* [[http://staff.imsa.edu/~ckolar/mailman/mailman-administration-v2.html|GNU Mailman List Management Guide v 2.0]]
* [[http://www.freesoftwaremagazine.com/articles/running_gnu_mailman_at_home|Running GNU Mailman at home]]
* [[http://www.exim.org/howto/mailman21.html|HOWTO - Using Exim 4 and Mailman 2.1 together]]
* [[http://www.tectonic.co.za/wordpress/?p=537|Setting up a mailing list with Mailman - Part 1]] [[http://www.tectonic.co.za/wordpress/?p=538|Part 2]]
===== Installation =====
aptitude install mailman
===== neue Mailingliste =====
- newlist Name der Mailingliste
- die ''/etc/aliase''
===== Konfiguration =====
Grundsätzlich muss
* ein [[server:Webserver]] ([[apache:Apache]], ...) für die Verwaltungs- und Einstellungsseiten
* der [[wpde>Mail Transfer Agent]] (MTA): Postfix, ...
* und mailman selbst
konfiguriert werden.
==== Apache konfigurieren (Debian Lenny) ====
Die Datei ''/etc/mailman/apache.conf'' enthält bereits eine Beispielkonfiguration:
# Sample configuration for Debian mailman with Apache
# We can find mailman here:
ScriptAlias /cgi-bin/mailman/ /usr/lib/cgi-bin/mailman/
# And the public archives:
Alias /pipermail/ /var/lib/mailman/archives/public/
# Logos:
Alias /images/mailman/ /usr/share/images/mailman/
# Use this if you don't want the "cgi-bin" component in your URL:
# In case you want to access mailman through a shorter URL you should enable
# this:
#ScriptAlias /mailman/ /usr/lib/cgi-bin/mailman/
# In this case you need to set the DEFAULT_URL_PATTERN in
# /etc/mailman/mm_cfg.py to http://%s/mailman/ for the cookie
# authentication code to work. Note that you need to change the base
# URL for all the already-created lists as well.
AllowOverride None
Options ExecCGI
AddHandler cgi-script .cgi
Order allow,deny
Allow from all
Options Indexes FollowSymlinks
AllowOverride None
Order allow,deny
Allow from all
AllowOverride None
Order allow,deny
Allow from all
## The following describes how to configure mailman on
## a dedicated virtual host, courtesy Marco d'Itri.
# Add these lines in /etc/mailman/mm_cfg.py:
#DEFAULT_EMAIL_HOST = 'lists.example.net'
#DEFAULT_URL_HOST = 'lists.example.net'
#DEFAULT_URL_PATTERN = 'http://%s/'
#
#ServerName lists.example.net
#DocumentRoot /var/www/lists
#ErrorLog /var/log/apache2/lists-error.log
#CustomLog /var/log/apache2/lists-access.log combined
#
#
# Options Indexes FollowSymLinks
# AllowOverride None
#
#
#Alias /pipermail/ /var/lib/mailman/archives/public/
#Alias /images/mailman/ /usr/share/images/mailman/
#ScriptAlias /admin /usr/lib/cgi-bin/mailman/admin
#ScriptAlias /admindb /usr/lib/cgi-bin/mailman/admindb
#ScriptAlias /confirm /usr/lib/cgi-bin/mailman/confirm
#ScriptAlias /create /usr/lib/cgi-bin/mailman/create
#ScriptAlias /edithtml /usr/lib/cgi-bin/mailman/edithtml
#ScriptAlias /listinfo /usr/lib/cgi-bin/mailman/listinfo
#ScriptAlias /options /usr/lib/cgi-bin/mailman/options
#ScriptAlias /private /usr/lib/cgi-bin/mailman/private
#ScriptAlias /rmlist /usr/lib/cgi-bin/mailman/rmlist
#ScriptAlias /roster /usr/lib/cgi-bin/mailman/roster
#ScriptAlias /subscribe /usr/lib/cgi-bin/mailman/subscribe
#ScriptAlias /mailman/ /usr/lib/cgi-bin/mailman/
#
==== Einrichtung mit Postfix (Debian Lenny) ====
Die Datei ''/usr/lib/mailman/bin/postfix-to-mailman.py'' enthält Anweisungen, hier nochmal angegeben.
Dateien in /etc/postfix:
In der ''main.cf'':
# mailman
relay_domains = lists.domain.tld
# external domains
transport_maps = hash:/etc/postfix/transports
mailman_destination_recipient_limit = 1
die Datei ''transports'' enthält dann
test.stefanux.de mailman
Anschließend mit postmap transports
Änderung übernehmen.
die master.cfg:
mailman unix - n n - - pipe
flags=FR user=list argv=/usr/lib/mailman/bin/postfix-to-mailman.py
${nexthop} ${user}
Die Datei ''/etc/mailman/mm_cfg.py'' muss auch noch angepasst werden:
MTA = None # No MTA alias processing required
# alias for postmaster, abuse and mailer-daemon
DEB_LISTMASTER = 'postmaster@example.com'
==== Mailman eindeutschen ====
Mailman ist in den aktuellen 2.1.x-Versionen komplett eingedeutscht.
FIXME