[Mailman-Users] mailman start error

Web Analysts csa at web-analysts.net
Sat May 11 10:43:36 EDT 2019

I'm now getting an error when I start Mailman:

root at primeo:~# /etc/init.d/mailman start
Traceback (most recent call last):
  File "/usr/local/mailman/bin/mailmanctl", line 106, in <module>
    from Mailman import mm_cfg
  File "/usr/local/mailman/Mailman/mm_cfg.py", line 54, in <module>
    add_virtualhost(lists.domainname.tld, lists.domainname.tld)
NameError: name 'lists' is not defined
root at primeo:~#

What did I inadvertently break?

-----Original Message-----
From: Mailman-Users
[mailto:mailman-users-bounces+csa=web-analysts.net at python.org] On Behalf Of
Mark Sapiro
Sent: Friday, March 22, 2019 9:14 AM
To: mailman-users at python.org
Subject: Re: [Mailman-Users] iterative loop

On 3/22/19 5:42 AM, Web Analysts via Mailman-Users wrote:
> Okay here's the output from 'postconf -n'
> alias_database = hash:/etc/aliases
> alias_maps = hash:/etc/aliases, hash:/var/lib/mailman/data/aliases


> mydestination = mail.domainname.tld, mail1.domainname.tld,
> lists.domainname.tld, localhost.domainname.tld, localhost


> relay_domains = $mydestination, lists.domainname.tld

lists.domainname.tld is redundant here as it's in $mydestination, but I
think this in combination with

virtual_transport = lmtp:unix:private/dovecot-lmtp

is the issue. I suggest setting

relay_domains = mail.domainname.tld, mail1.domainname.tld,
 localhost.domainname.tld, localhost

I.e. everything in $mydestination except lists.domainname.tld.

> relay_recipient_maps = hash:/var/lib/mailman/data/virtual-mailman

Then this will be unnecessary.

If that doesn't fix your issue, look at /var/lib/mailman/data/aliases
and ensure that the  aliases for each list that look like

> LISTNAME:             "|/var/lib/mailman/mail/mailman post LISTNAME"
> LISTNAME-admin:       "|/var/lib/mailman/mail/mailman admin LISTNAME"
> LISTNAME-bounces:     "|/var/lib/mailman/mail/mailman bounces LISTNAME"
> LISTNAME-confirm:     "|/var/lib/mailman/mail/mailman confirm LISTNAME"
> LISTNAME-join:        "|/var/lib/mailman/mail/mailman join LISTNAME"
> LISTNAME-leave:       "|/var/lib/mailman/mail/mailman leave LISTNAME"
> LISTNAME-owner:       "|/var/lib/mailman/mail/mailman owner LISTNAME"
> LISTNAME-request:     "|/var/lib/mailman/mail/mailman request LISTNAME"
> LISTNAME-subscribe:   "|/var/lib/mailman/mail/mailman subscribe LISTNAME"
> LISTNAME-unsubscribe: "|/var/lib/mailman/mail/mailman unsubscribe

In particular, that the quotes around the commands are not missing,
although I don't see how they could be unless you edited this by hand.
If there is an issue, running Mailman's bin/genaliases as the Mailman user

Mark Sapiro <mark at msapiro.net>        The highway is for gamblers,
San Francisco Bay Area, California    better use your sense - B. Dylan
Mailman-Users mailing list Mailman-Users at python.org
Mailman FAQ: http://wiki.list.org/x/AgA3
Security Policy: http://wiki.list.org/x/QIA9
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/

More information about the Mailman-Users mailing list