[Mailman-Developers] true virtual hosting patch for 2.1 on RHEL6

Graham Leggett minfrin at sharp.fm
Mon May 27 16:57:32 CEST 2013


On 27 May 2013, at 4:05 AM, Mark Sapiro <mark at msapiro.net> wrote:

> I'm not sure how that compares to what I'm familiar with. I have a
> branch at <https://code.launchpad.net/~msapiro/mailman/vhost>  based on
> the work of Hans Ulrich Niedermann and predecessors. (See the FAQ at
> <http://wiki.list.org/x/jIA9> and the post at
> <http://mail.python.org/pipermail/mailman-developers/2006-March/018629.html>.)
> 
> Coincidently, this branch was just merged with the head of the 2.1 branch.
> 
> I do not use this branch. My disclaimer is "Please don't ask me to fix
> all the problems with this branch. I don't guarantee that anything will
> work. I ported the patches and fixed a few reported problems as a
> service to those who wish to use it. I don't use it and am not
> enthusiastic about maintaining it. If you use this branch and encounter
> problems and report those problems to mailman-users at python.org, I may
> fix them, but only if they are easy to fix." In general, I will try to
> fix reported problems if the fixes are not too involved.

Hopefully this fix doesn't fall into the too involved category. This sanity check was failing even when the emailhost and domain were the same:

--- bin/newlist-orig	2013-05-27 13:37:52.351141920 +0000
+++ bin/newlist	2013-05-27 13:38:31.080191760 +0000
@@ -163,7 +163,7 @@
         urlhost = urlhost or ('lists.%s' % domain) # TODO: Not configurable yet
         if not emailhost:
             emailhost = domain
-        else:
+        elif emailhost != domain:
             usage(1, _('You cannot use an email host different from the domain part of the list name.'))
         if not mm_cfg.VIRTUAL_HOSTS.has_key(urlhost):
             _urlhost = repr(urlhost)

Regards,
Graham
--

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 4365 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/mailman-developers/attachments/20130527/0e1e1c42/attachment.bin>


More information about the Mailman-Developers mailing list