Scott Berry wrote:
I have a bit of a problem with mailman here. When I go to use
"/usr/lib/mailman/bin/update" and after setting everything the way
that the mm_cfg.py says I get this trace back error:
[root@pilotalk ~]# /usr/lib/mailman/bin/update
Traceback (most recent call last):
File "/usr/lib/mailman/bin/update", line 49, in <module>
from Mailman import mm_cfg
File "/usr/lib/mailman/Mailman/mm_cfg.py", line 80, in <module>
DEFAULT_URL_HOST =
www.pilotalk.com
NameError: name 'www' is not defined
I am assuming the lines of the mm_cfg.py which it is having trouble
with are these three lines:
DEFAULT_URL_HOST =
www.pilotalk.com
DEFAULT_EMAIL_HOST =
pilotalk.com
add_virtualhostwww.pilotalk.com,
pilotalk.com
Any help would be appreciated.
You just need to quote the values. Instead of what you have, try:
DEFAULT_URL_HOST = 'www.pilotalk.com'
DEFAULT_EMAIL_HOST = 'pilotalk.com'
add_virtualhost(DEFAULT_URL_HOST, DEFAULT_EMAIL_HOST)
You can use the variable names (DEFAULT_*_HOST) so you don't have to
change them in two places some day. :)
P.S.: This message had HTML and plain text versions.
--
Todd OpenPGP -> KeyID: 0xBEAF0CE3 | URL:
www.pobox.com/~tmz/pgp
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
If the world didn't suck, we'd all fall off.