[Mailman-Users] Another twist on Error: Unknown virtual host

runner at winning.com runner at winning.com
Tue Sep 4 17:25:09 CEST 2007

I'm getting the error "Error: Unknown virtual host lists.mydomain.org" when creating a list through the web interface.  I have located several FAQs on this problem but I have a question on syntax when entering a new line in mm_cfg.py.

Here's the background information:  The CNAME for our list server is lists.mydomain.org but the actual servername is hamm.mydomain.org.  All references to our list server should be using lists.mydomain.org both email and web URLs.  We DO NOT use any URLs with www prepended to them.  I have found and read several FAQs concerning this problem but the FAQs assume the web URLs have www prepended to them.  One FAQ even states that when you run the add_virtualhost command it removes the first part of the domain name, the www part before saving the virtual domain name.  We don't want that because we don't use www in our URLs to access the web interface.  We only have one host, lists.mydomain.org, which I don't consider it to be a virtual host, it's just the main host, period.  I've added these two lines to our mm_cfg.py so mailman will think it's lists.mydomain.org:

DEFAULT_URL_HOST = 'lists.mydomain.org'
DEFAULT_EMAIL_HOST = 'lists.mydomain.org'

I was going to add this line to mm_cfg.py to fix the "Virtual host" problem:

VIRTUAL_HOSTS = { 'lists.mydomain.org': 'lists.mydomain.org' } 

This is a little different than the examples in the FAQs because the domain names for the URLs and the email should be the same in our case, we don't want to remove the "lists" part.  Can someone tell me if this is the proper way to resolve our "Unknown virtual host" problem?

We've Got Your Name @ www.mail.com!!!
Get a FREE E-mail Account Today - Choose From 100+ Domains

More information about the Mailman-Users mailing list