[Mailman-Users] Changing site domain name

Mark Sapiro msapiro at value.net
Fri Oct 6 20:10:16 CEST 2006


Chris Puttick wrote:

>Ok, the problem:
>
>http://lists.openarchaeology.net/mailman/listinfo
>
>compared with
>
>http://lists.openarchaeology.net/mailman/listinfo/mailman
>
>mm_cfg:
>
>from Defaults import *
>
>##################################################
># Put YOUR site-specific settings below this line.
>DEFAULT_URL_PATTERN = 'http://%s/mailman/'
>DEFAULT_NNTP_HOST = 'lists.openarchaeology.net'
>DEFAULT_EMAIL_HOST = 'lists.openarchaeology.net'
>DEFAULT_URL_HOST = 'lists.openarchaeology.net'
>MTA = 'Postfix'
>POSTFIX_ALIAS_CMD = '/usr/sbin/postalias'
>POSTFIX_MAP_CMD = '/usr/sbin/postmap'
>DELIVERY_MODULE = 'SMTPDirect'
>SMTPHOST = 'localhost'
>SMTPPORT = '25'
>VIRTUAL_HOSTS.clear()
>add_virtualhost(DEFAULT_URL_HOST, DEFAULT_EMAIL_HOST)
>IMAGE_LOGOS = '/mailmanicons/'
>
>Any thoughts?


I suspect that adding

VIRTUAL_HOST_OVERVIEW = Off

to the above will fix the symptom. If it does, the underlying problem
is that your web server is setting HTTP_HOST (or if HTTP_HOST is
unset, SERVER_NAME) to '10.0.10.18' in the environment passed to the
Mailman CGIs.

If that doesn't do it, try the following:

In the Mailman install directory, give the command

bin/withlist -i

Then at the first >>> prompt type

from Mailman import Utils

at the next prompt type

Utils.get_domain()

and see what it prints. Then type control-D to exit.

You can also try setting HTTP_HOST in the environment and then
repeating the above.

-- 
Mark Sapiro <msapiro at value.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