name 'mailman' is not defined
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)
-- Amazingly Beautiful Creatures Dancing Excites the Forest Glade, in my Heart how I do Jump like the Kudo Listen to the Music so Nice the Organ Plays. Quietly Rests the Sleepy Tiger Under the Vine tree at the Water's side and X marks the spot 'neath the Yellow moon where the Zulu king and I did hide.
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@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
On 2-Jun-2009, at 19:21, Mark Sapiro wrote:
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')
Ah-hah! thanks, that was it.
-- Mom: There was more than one lobster present at the birth of Jesus? Daughter: Duh.
participants (2)
-
LuKreme
-
Mark Sapiro