[Mailman-Users] list creation via web, and DEFAULT_MAIL_HOST

Mark Sapiro mark at msapiro.net
Sat Apr 25 06:51:13 CEST 2009


Pieter Donche wrote:

>I set up a mailman list server on a host host.mydom.mycountry
>Mails to this machine are sent to an alias mail.mydom.mycountry
>
>Although I have set in my /usr/local/mailman/Mailman/mm_cfg.py
>DEFAULT_URL_HOST = 'www.mydom.mycountry'
>DEFAULT_MAIL_HOST = 'mail.mydom.mycountry'
>add_virtualhost(DEFAULT_URL_HOST, DEFAULT_EMAIL_HOST)
>
>and did a restart of the mailman program (and even a stop and a start)
>
>When I create a list via the web interface, the mailing list is
>created with mail address for post:   mylistname at host.mydom.mycountry
>
>Of course I can change this as administrator of the list, but why does
>it not create the list with mail.mydom.mycountry since it is in the
>/usr/local/mailman/Mailman/mm_cfg.py  file ?
>How to make this behaviour correct..


Are you accessing the create page via a URL with host name
'www.mydom.mycountry'?

Note that it is best to clear the Defaults.py settings from
VIRTUAL_HOSTS by putting

VIRTUAL_HOSTS.clear()

in mm_cfg.py preceeding the

add_virtualhost(DEFAULT_URL_HOST, DEFAULT_EMAIL_HOST)

line, but if you are accessing the web create page via a URL with host
name 'www.mydom.mycountry', you should get the list's host_name set to
'mail.mydom.mycountry' with the above settings.

-- 
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