[Pkg-mailman-hackers] Pkg-mailman commit - rev 250 - trunk/debian
Lionel Elie Mamane
lmamane at costa.debian.org
Thu Dec 8 20:52:52 UTC 2005
Author: lmamane
Date: 2005-12-08 20:52:52 +0000 (Thu, 08 Dec 2005)
New Revision: 250
Added:
trunk/debian/README.Exim4.Debian
trunk/debian/mailman.docs
Modified:
trunk/debian/changelog
Log:
Bug#303342: Include instructions for Exim4
Added: trunk/debian/README.Exim4.Debian
===================================================================
--- trunk/debian/README.Exim4.Debian 2005-12-08 20:11:10 UTC (rev 249)
+++ trunk/debian/README.Exim4.Debian 2005-12-08 20:52:52 UTC (rev 250)
@@ -0,0 +1,81 @@
+Here's a way to integrate mailman with Exim4 that will automatically
+play nice with mailman's virtual domains support and VERP. It does not
+require dedicating domain(s) to mailman.
+
+Configure your Mailman (in /etc/mailman/mm_cfg.py) with:
+
+MTA = 'Postfix'
+POSTFIX_ALIAS_CMD = '/bin/true'
+POSTFIX_MAP_CMD = 'chgrp Debian-exim'
+
+and list all your Mailman domains in "POSTFIX_STYLE_VIRTUAL_DOMAINS".
+
+Put this in your exim4 main configuration (if you use a split config,
+for example /etc/exim4/conf.d/main/04_local_mailman_macros)
+
+---------------------- BEGIN EXIM4 MAIN ----------------------------
+# Home dir for your Mailman installation -- aka Mailman's prefix
+# directory.
+MAILMAN_HOME=/var/lib/mailman
+MAILMAN_WRAP=MAILMAN_HOME/mail/mailman
+
+# User and group for Mailman, should match your --with-mail-gid
+# switch to Mailman's configure script.
+MAILMAN_USER=list
+MAILMAN_GROUP=daemon
+---------------------- END EXIM4 MAIN ----------------------------
+
+
+Put this in your exim4 router configuration (if you use a split
+config, then for example /etc/exim4/conf.d/router/970_local_mailman)
+
+---------------------- BEGIN EXIM4 ROUTER ----------------------------
+# Messages get sent out with
+# envelope from "mailman-bounces at virtual_domain"
+# But mailman doesn't put such addresses
+# in the aliases. Recognise these here.
+mailman_workaround:
+ domains = +local_domains
+ require_files = MAILMAN_HOME/lists/$local_part/config.pck
+ driver = accept
+ local_parts = mailman
+ local_part_suffix_optional
+ local_part_suffix = -bounces : -bounces+* : \
+ -confirm+* : -join : -leave : \
+ -owner : -request : -admin
+ transport = mailman_transport
+ group = MAILMAN_GROUP
+
+# Mailman lists
+mailman_router:
+ domains = +local_domains
+ condition = ${lookup{$local_part@$domain}lsearch{MAILMAN_HOME/data/virtual-mailman}{1}{0}}
+ require_files = MAILMAN_HOME/lists/$local_part/config.pck
+ driver = accept
+ local_part_suffix_optional
+ local_part_suffix = -bounces : -bounces+* : \
+ -confirm+* : -join : -leave : \
+ -owner : -request : -admin
+ transport = mailman_transport
+ group = MAILMAN_GROUP
+---------------------- END EXIM4 ROUTER ----------------------------
+
+Put this in your exim4 transport configuration (if you use a split
+config, then for example /etc/exim4/conf.d/transport/40_local_mailman)
+
+---------------------- BEGIN EXIM4 TRANSPORT -------------------------
+mailman_transport:
+ driver = pipe
+ command = MAILMAN_WRAP \
+ '${if def:local_part_suffix \
+ {${sg{$local_part_suffix}{-(\\w+)(\\+.*)?}{\$1}}} \
+ {post}}' \
+ $local_part
+ current_directory = MAILMAN_HOME
+ home_directory = MAILMAN_HOME
+ user = MAILMAN_USER
+ group = MAILMAN_GROUP
+ freeze_exec_fail = true
+---------------------- END EXIM4 TRANSPORT -------------------------
+
+You are done!
Modified: trunk/debian/changelog
===================================================================
--- trunk/debian/changelog 2005-12-08 20:11:10 UTC (rev 249)
+++ trunk/debian/changelog 2005-12-08 20:52:52 UTC (rev 250)
@@ -1,8 +1,9 @@
mailman (2.1.5-11) UNRELEASED; urgency=low
* Run genaliases (or direct admin to do it) on upgrade from 2.0 (closes: #340503)
+ * Include instructions for painless Exim4 integration (closes: #303342)
- -- Lionel Elie Mamane <lmamane at debian.org> Thu, 8 Dec 2005 21:05:03 +0100
+ -- Lionel Elie Mamane <lmamane at debian.org> Thu, 8 Dec 2005 21:52:32 +0100
mailman (2.1.5-10) unstable; urgency=low
Added: trunk/debian/mailman.docs
===================================================================
--- trunk/debian/mailman.docs 2005-12-08 20:11:10 UTC (rev 249)
+++ trunk/debian/mailman.docs 2005-12-08 20:52:52 UTC (rev 250)
@@ -0,0 +1 @@
+debian/README.Exim4.Debian
More information about the Pkg-mailman-hackers
mailing list