setting up 2 VIRTUAL_HOSTS under mailman.

Gary Kline kline at tao.thought.org
Tue Aug 30 00:54:15 GMT 2005


On Mon, Aug 29, 2005 at 07:08:13PM -0400, Chuck Swiger wrote:
> Gary Kline wrote:
> >	If none of the mailman gurus here want to bother with it, 
> >	ok, I'll re-singup to the mailman lists.  I just want to
> >	set up two virtual lists. I can usually get more out of 
> >	reading the src code than the documentation, and
> >	Mailman/Defaullts.py was
> >
> >	VIRTUAL_HOSTS={}
> >
> >	into which I added {'foo.thought.org', 'bar.thought.org'}
> 
> The comment before explains:
> 
> # Set up your virtual host mappings here.  This is primarily used for the
> # thru-the-web list creation, so its effects are currently fairly limited.
> # Use add_virtualhost() call to add new mappings.  The keys are strings as
> # determined by Utils.get_domain(), the values are as appropriate for
> # DEFAULT_HOST_NAME.
> 
> ...so:
> 
> VIRTUAL_HOMES={'foo.thought.org': 'realname.thought.org', 
> 'bar.thought.org': 'realname.thought.org'}
> 
> ...where realname is the hostname of the listserver machine running 
> Mailman. You can probably use regexs like '*.thought.org' as a key, too.
> 

	Thanks for the datapoints.  I'm new to mailinglists, mailman
	esp'ly, so don't understand the comment entirely.  Is he saying
	that I can, via the web (http://sage.thought.org/mailman/listinfo)
	create a virtual host?  grepping -r thru the code, I can see
	where my FQDN is.  Hardcoded.  (sage is my webserver.)  Seems 
	like hardcoding it either in Defaults or in mm_cfg is the better
	way of adding new mappings.

	Oh: {virt ":" real "," virt ":" real} is syntax I didn't know of.

	gary



-- 
   Gary Kline     kline at thought.org   www.thought.org     Public service Unix



More information about the freebsd-questions mailing list