[ mailman-Patches-943827 ] true virtual hosting patch for 2.1

SourceForge.net noreply at sourceforge.net
Wed Apr 16 19:09:56 CEST 2008


Patches item #943827, was opened at 2004-04-28 18:57
Message generated for change (Comment added) made by minfrin
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=300103&aid=943827&group_id=103

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: list administration
Group: Mailman 2.1
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: The Anarcat (anarcat)
Assigned to: Nobody/Anonymous (nobody)
Summary: true virtual hosting patch for 2.1

Initial Comment:
[copy of the mail sent to -developpers@]

We developped a reliable solution for running lists
with the same name
on different domains on the same Mailman installation.

I implemented that on top of the Mailman 2.1.1-5.1
Debian stable
package.  All that is needed is to patch 2 files
(bin/newlist,
Mailman/MailList.py) in the mailman install, and here
is the patch:

http://bugs.koumbit.net/file_download.php?file_id=3&type=bug

There's only one caveat right now:
Mailman/Cgi/create.py might need to
get patched too, but I haven't got around looking at it
yet, and it
"just works", for now.

I don't know what's the current status of virtual
hosting support on
Mailman, but this patch is a simple hack that should
bring joy in the
homes of all Mailman admins around the world. :)

I got my inspiration and part of the code from:

http://mithrandr.moria.org/blog/139.html

All it does is to add the domain to the internal_name()
of a list. The
real_name is kept as is, and the getListAddress() does
the Right Thing.

This makes Mailman generate aliases like:

list-example.com:             
"|/var/lib/mailman/mail/mailman post list-example.com"

Care will have to be taken on the MTA side to map those
list-example.com
to list at example.com. We are using alternc.org to manage
our server, so
we are using LDAP, so everything went pretty smoothly.
:) But I guess it
will require some magic on the Postfix side or something...

Cheers,

A.

PS: for those wanting to see more, you can come to our
Wiki:

http://koumbit.net/wiki/VirtualMailman

You'll probably have a little trouble finding your way
if you don't
read french though. :) Babelfish might help, haven't tried.

----------------------------------------------------------------------

Comment By: Graham Leggett (minfrin)
Date: 2008-04-16 19:09

Message:
Logged In: YES 
user_id=129704
Originator: NO

The site http://nix.lauft.net/mailman/ is now down - does anyone have a
copy of the mailman-vh-2.1.7.patch anywhere?


----------------------------------------------------------------------

Comment By: Paul Hampson (tbble)
Date: 2007-03-01 23:57

Message:
Logged In: YES 
user_id=87909
Originator: NO

Grab mailman-vh-2.1.7.patch from http://nix.lauft.net/mailman/, it applies
fine to 2.1.9.

----------------------------------------------------------------------

Comment By: GILLIG (fgillig)
Date: 2007-03-01 12:18

Message:
Logged In: YES 
user_id=1463624
Originator: NO

I search this patch for mailman 2.1.9 ... (fc5).

Anyone can help ?

----------------------------------------------------------------------

Comment By: Pedro Algarvio (s0undt3ch)
Date: 2006-10-13 03:05

Message:
Logged In: YES 
user_id=927681

+1 for this patch

----------------------------------------------------------------------

Comment By: Paul Hampson (tbble)
Date: 2006-04-22 13:48

Message:
Logged In: YES 
user_id=87909

Crud, wrapping... The changes are all on one line.

----------------------------------------------------------------------

Comment By: Paul Hampson (tbble)
Date: 2006-04-22 13:47

Message:
Logged In: YES 
user_id=87909

minfrin, create it as
listname-domain
or try this patch:
diff -urNad mailman-2.1.5/Mailman/Cgi/create.py
/tmp/dpep.bPHYjm/mailman-2.1.5/Mailman/Cgi/create.py
--- mailman-2.1.5/Mailman/Cgi/create.py 2006-04-22
20:58:10.324872941 +1000
+++ /tmp/dpep.bPHYjm/mailman-2.1.5/Mailman/Cgi/create.py   
2006-04-22 21:13:31.596133649 +1000
@@ -184,7 +184,7 @@
         oldmask = os.umask(002)
         try:
             try:
-                mlist.Create(listname, owner, pw, langs,
emailhost)
+                mlist.Create("%s@%s" % (listname,hostname),
owner, pw, langs, emailhost)
             finally:
                 os.umask(oldmask)
         except Errors.EmailAddressError, s:

Which will add the '@domain' to the listname before passing
it to mlist.Create, which the patch changes to deal with '@'
the way we want.

----------------------------------------------------------------------

Comment By: Graham Leggett (minfrin)
Date: 2006-03-17 21:39

Message:
Logged In: YES 
user_id=129704

I tried the patch at
http://al.blog.free.fr/mailman/mailman-vh-2.1.5.patch and it
applied cleanly to mailman as provided by RHEL4.

I tried to create a list called "list at domain1.com", but this
failed with the error "Error: List name must not include "@"".

Does this patch have any sort of instructions anywhere?


----------------------------------------------------------------------

Comment By: Arnaud Lavrard (arnaudlavrard)
Date: 2005-07-20 15:52

Message:
Logged In: YES 
user_id=1315788

I ported the patch to mailman 2.1.5 :
http://al.blog.free.fr/mailman/mailman-vh-2.1.5.patch

----------------------------------------------------------------------

Comment By: The Anarcat (anarcat)
Date: 2005-03-16 21:40

Message:
Logged In: YES 
user_id=246797

I have ported the patch to 2.1.4, no news on 2.1.5 yet. I
have also put the patch in a seperate CVS server. Fetch all
the goods there:

http://cvs.koumbit.net/cgi-bin/cvsweb/koumbit-maint/patches/mailman-true-virtual-2.1.1.patch
http://cvs.koumbit.net/cgi-bin/cvsweb/koumbit-maint/patches/mailman-true-virtual-2.1.4.patch

I've also updated the 2.1.1 patch to fix the list-id, so I
delete the attachment, fetch the patch straight from our CVS
for the latest fixes.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=300103&aid=943827&group_id=103


More information about the Mailman-coders mailing list