FAQ
Hi,

I'm just turning virtual hosts on for the first time in a stable installation of Mailman 2.1.13 (the distribution provided with Mac OS X Server 10.6)

I rewrote my mm_cfg.py file like this:

# Put YOUR site-specific settings below this line.
MTA = 'Postfix'
DEFAULT_EMAIL_HOST = 'acvr.org'
DEFAULT_URL_HOST = 'www.acvr.org'
VIRTUAL_HOST_OVERVIEW='ON'
VIRTUAL_HOSTS.clear()
add_virtualhost(DEFAULT_URL_HOST, DEFAULT_EMAIL_HOST)
add_virtualhost(www.lists.eavdi.org, lists.eavdi.org)
add_virtualhost(www.lists.ecvdi.org, lists.ecvdi.org)
DEFAULT_URL_PATTERN = 'https://%s/mailman/'
PUBLIC_ARCHIVE_URL = 'https://%(hostname)s/pipermail/%(listname)s'
ALLOW_SITE_ADMIN_COOKIES = Yes
VERP_PROBES = Yes
VERP_PASSWORD_REMINDERS = Yes
VERP_PERSONALIZED_DELIVERIES = Yes
VERP_DELIVERY_INTERVAL = 1
VERP_CONFIRMATIONS = Yes
OWNERS_CAN_ENABLE_PERSONALIZATION = Yes
OWNERS_CAN_CHANGE_MEMBER_PASSWORDS = Yes
IMAGE_LOGOS = '/icons/'


But when I use mailmanctl to restart I get this error:

Traceback (most recent call last):
File "./mailmanctl", line 106, in <module>
from Mailman import mm_cfg
File "/usr/share/mailman/Mailman/mm_cfg.py", line 50, in <module>
add_virtualhost(www.lists.eavdi.org, lists.eavdi.org)
NameError: name 'www' is not defined


Thanks in advance for your help.

-Rob McLear

Search Discussions

  • Chris Tandiono at Jan 13, 2011 at 8:21 pm

    On 13 Jan 2011, at 11:14 , Rob wrote:
    But when I use mailmanctl to restart I get this error:

    Traceback (most recent call last):
    File "./mailmanctl", line 106, in <module>
    from Mailman import mm_cfg
    File "/usr/share/mailman/Mailman/mm_cfg.py", line 50, in <module>
    add_virtualhost(www.lists.eavdi.org, lists.eavdi.org)
    NameError: name 'www' is not defined


    Thanks in advance for your help.

    -Rob McLear
    That is a Python error--you need to put quotes aroudn "www.lists.eavdi.org"; otherwise, it looks for a variable named www so it can access the property lists. Same thing with lists.eavdi.org.

    Chris
  • Rob at Jan 13, 2011 at 11:23 pm

    On Jan 13, 2011, at 3:21 PM, Chris Tandiono wrote:
    On 13 Jan 2011, at 11:14 , Rob wrote:

    But when I use mailmanctl to restart I get this error:

    Traceback (most recent call last):
    File "./mailmanctl", line 106, in <module>
    from Mailman import mm_cfg
    File "/usr/share/mailman/Mailman/mm_cfg.py", line 50, in <module>
    add_virtualhost(www.lists.eavdi.org, lists.eavdi.org)
    NameError: name 'www' is not defined


    Thanks in advance for your help.

    -Rob McLear
    That is a Python error--you need to put quotes aroudn "www.lists.eavdi.org"; otherwise, it looks for a variable named www so it can access the property lists. Same thing with lists.eavdi.org.

    Chris

    Thanks, that worked for me.

    I don't seem to have virtual hosts woking properly yet, but I need to do some more RTFM'ing before I bother the list again.

    -Rob

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupmailman-users @
categoriespython
postedJan 13, '11 at 7:14p
activeJan 13, '11 at 11:23p
posts3
users2
websitelist.org

2 users in discussion

Rob: 2 posts Chris Tandiono: 1 post

People

Translate

site design / logo © 2022 Grokbase