[Mailman-Users] Virtual domains

Hans-Juergen Beie hjb at pollux.franken.de
Thu Aug 18 10:23:25 CEST 2005


On Thu, August 18, 2005 2:23, Mark Sapiro said:

> Hans-Juergen Beie wrote:

>>In the first case use
>>   add_virtualhost('www.ourdomain.com', 'newdomain.com')
>
> This will not work. add_virtualhost() is defined in Defaults.py and
> what it does is add a key:value pair to the VIRTUAL_HOSTS dictionary
> where its first argument is the key and the second is the value.

[...]

> add_virtualhost('www.ourdomain.com', 'newdomain.com')
>
> will simply change the value associated with the 'www.ourdomain.com'
> key in the VIRTUAL_HOSTS dictionary from 'ourdomain.com' to
> 'newdomain.com'. It will not make a second entry - Python dictionaries
> do not support multiple entries with the same key.
>
> In the first case, what you do is just keep the default
>
> add_virtualhost(DEFAULT_URL_HOST, DEFAULT_EMAIL_HOST)
>
> only and change the host_name attribute of the users-discuss list to
> newdomain.com as I suggested in my previous post in this thread
> (http://mail.python.org/pipermail/mailman-users/2005-August/046174.html).

OK. For some reason I'm missing this posting in my mail folders.
I didn't realize this key-value problem. But your explanation is pretty
clear. Thanks.

hjb :-?





More information about the Mailman-Users mailing list