[Mailman-Users] Mailman on multiple domains

Mark Sapiro mark at msapiro.net
Sat Nov 1 06:26:36 CET 2008


TGPlatt, WebMaster wrote:
>
>VIRTUAL_HOSTS = {'firstdomain.net':'firstdomain.net',
>                 'seconddomain.com':'seconddomain.com',
>                 'thirddomain.com':'thirddomain.com'}


Just FYI the abbove is EXACTLY eqiivalent to

VIRTUAL_HOSTS = {}
add_virtualhost('firstdomain.net', 'firstdomain.net')
add_virtualhost('seconddomain.com', 'seconddomain.com')
add_virtualhost('thirddomain.com', 'thirddomain.com')

I.e. all add_virtualhost() does is add an entry to the VIRTUAL_HOSTS
dictionary with key = the first arg and value = the second arg.


>At this point I only have the mailman list for one of these domains working.
>If I understand the requirements correctly, I will eventually need to add
>"add_virtualhost" lines for 
>
>add_virtualhost('www.seconddomain.com', 'seconddomain.com')
>add_virtualhost('www.thirddomain.com','thirddomain.com')


Actually, these conflict mildly with what you have. The issue is how
you want to access the web interface for these domains.
http://seconddomain.com/mailman/... or
http://www.seconddomain.com/mailman/... . If the former, you want what
you have now or what I indicated was equivalent. If the latter, you
want what you have immediately above, but you probably don't want both.


>Other than those changes which I expect to need to make, the way I have it
>configured now seems to be working. 
>
>There were also setup requirements in Apache's virtualhost definition files
>too. But the way this is setup is unique on Debian. So I won't try to
>explain it except to say Apache's VirtualHost definition files need these
>lines included:
>
>## Mailman Setup
>        ScriptAlias /mailman/ /usr/local/mailman/cgi-bin/


Yes, you need the above, but not necessarily in each <VirtualHost>
section. You can have it just once outside of the <VirtualHost>
sections.


>        <Directory "/usr/local/mailman/archives/private/">
>#                AddDefaultCharset Off
>        </Directory>


The above 3 lines appear to do nothing.

-- 
Mark Sapiro <mark at msapiro.net>        The highway is for gamblers,
San Francisco Bay Area, California    better use your sense - B. Dylan



More information about the Mailman-Users mailing list