[Mailman-Users] name 'mailman' is not defined
Mark Sapiro
mark at msapiro.net
Wed Jun 3 03:21:38 CEST 2009
LuKreme wrote:
>After getting everything working and walking away from the computer
>for the weekend+Monday I am seeing this in the logs:
>
>(Command died with status 1: "/usr/local/mailman/mail/mailman post hgt-
>school". Command output: Traceback (most recent call last): File "/
>usr/local/mailman/scripts/post", line 32, in <module> from Mailman
>import mm_cfg File "/usr/local/mailman/Mailman/mm_cfg.py", line 57,
>in <module> add_virtualhost(mailman.covisp.net, mail.covisp.net)
>NameError: name 'mailman' is not defined )
>
>mm_cfg.py has:
>VIRTUAL_HOSTS.clear()
>add_virtualhost(mailman.covisp.net, mail.covisp.net)
I don't think you could have successfully started Mailman
(bin/mailmanctl start or however you start it) with this error. Or
perhaps Mailman was already running and you neglected to restart after
making the mm_cfg.py changes.
What I told you to put in mm_cfg.py was
DEFAULT_URL_HOST = 'mailman.covisp.net'
DEFAULT_EMAIL_HOST = 'mail.covisp.net'
VIRTUAL_HOSTS.clear()
add_virtualhost(DEFAULT_URL_HOST, DEFAULT_EMAIL_HOST)
If you don't have the first two of those lines, add them. If you just
neglected to mention them, OK.
If you would rather put the values in the add_virtualhost() line,
that's OK, but since they are values, they have to be quoted as
add_virtualhost('mailman.covisp.net', 'mail.covisp.net')
--
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