[Mailman-Users] !st time install help
Mark Sapiro
mark at msapiro.net
Fri Nov 26 18:19:24 CET 2010
Robert Moskowitz wrote:
>I am making some progress. I am still getting the error below running
>/usr/lib/mailman/bin/newlist mailman
>
>But I now have mailman.conf linked into my /etc/http/conf.d right so
>that if I provide the URL http://mailman.foo.com/mailman, I get taken
>to http://mailman.foo.com/mailman/listinfo with the error:
>
>We're sorry, we hit a bug!
And what is the traceback from this that you'll find in Mailman's error
log?
(more below)
>On 11/25/2010 03:39 PM, Robert Moskowitz wrote:
[...]
>> I edit
>>
>> /usr/lib/mailman/Mailman/mm_cfg.py
>>
>> to setup my default URL:
>>
>> DEFAULT_URL_HOST = mailman.foo.com
>> DEFAULT_EMAIL_HOST = foo.com
As you note below, these need to be quoted as
DEFAULT_URL_HOST = 'mailman.foo.com'
DEFAULT_EMAIL_HOST = 'foo.com'
Also, assuming they are not identical to the defaults in Defaults.py,
you also need to add
add_virtualhost(DEFAULT_URL_HOST, DEFAULT_EMAIL_HOST)
following the above definitions, and while it is not required, it is
good practice to remove the entry that was created by Defaults.py so
the whole thing should be as the following 4 lines in mm_cfg.py
DEFAULT_URL_HOST = 'mailman.foo.com'
DEFAULT_EMAIL_HOST = 'foo.com'
VIRTUAL_HOSTS.clear()
add_virtualhost(DEFAULT_URL_HOST, DEFAULT_EMAIL_HOST)
>> I then run:
>>
>> /usr/lib/mailman/bin/newlist mailman
>>
>> And I get errors:
>>
>> Traceback (most recent call last):
>> File "/usr/lib/mailman/bin/newlist", line 99, in <module>
>> from Mailman import mm_cfg
>> File "/usr/lib/mailman/Mailman/mm_cfg.py", line 86, in <module>
>> DEFAULT_URL_HOST = mailman.foo.com
>> NameError: name 'mailman' is not defined
>>
>> Now I have not setup the URL mailman.foo.com/mailman, is that what it
>> is complaining about (and I think I have to edit the default.py to
>> drop the directory from the URL?)?
>>
>> Or is there suppose to be quotes around the URL (DEFAULT_URL_HOST =
>> 'mailman.foo.com').
--
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