[Mailman-Users] duplicate entry: "mailman at lists.example.org" in virtual-mailman.db

Manuel Vögele publicmailing at ccn.li
Wed Apr 13 13:19:44 EDT 2016


Hi everyone.

I just set up a mailman installation and almost everything is working as
expected.

However everytime i create a new mailing list mailman prints the
following warning:

postmap: warning: /var/lib/mailman/data/virtual-mailman.db: duplicate
entry: "mailman at lists.example.org"

Indeed the virtual-mailman file generated by mailman contains multiple
mailman at lists.example.org entries:

------------ file: virtual-mailman ------------

# This file is generated by Mailman, and is kept in sync with the binary
hash
# file virtual-mailman.db.  YOU SHOULD NOT MANUALLY EDIT THIS FILE
unless you
# know what you're doing, and can keep the two files properly in sync.
If you
# screw it up, you're on your own.
#
# Note that you should already have this virtual domain set up properly in
# your Postfix installation.  See README.POSTFIX for details.

# LOOP ADDRESSES START
mailman-loop at lists.example.org       mailman-loop at localhost
# LOOP ADDRESSES END

# We also add the site list address in each virtual domain as that address
# is exposed on admin and listinfo overviews.
# SITE ADDRESSES START
mailman at lists.example.org    mailman
# SITE ADDRESSES END

# STANZA START: mailman
# CREATED: Wed Apr 13 16:33:48 2016
mailman at lists.example.org              mailman at localhost
mailman-admin at lists.example.org        mailman-admin at localhost
mailman-bounces at lists.example.org      mailman-bounces at localhost
mailman-confirm at lists.example.org      mailman-confirm at localhost
mailman-join at lists.example.org         mailman-join at localhost
mailman-leave at lists.example.org        mailman-leave at localhost
mailman-owner at lists.example.org        mailman-owner at localhost
mailman-request at lists.example.org      mailman-request at localhost
mailman-subscribe at lists.example.org    mailman-subscribe at localhost
mailman-unsubscribe at lists.example.org  mailman-unsubscribe at localhost
# STANZA END: mailman

--------- end of file: virtual-mailman --------

Why does that happen? Additionaly mailman didn't append @localhost to
the alias in the site adresses block which causes postfix to append
@example.org which leads to the invalid alias mailman at example.org.

I'm using Mailman version 2.1.21. This is my is my configuration:


--------------- file: mm_cfg.py ---------------

from Defaults import *

DEFAULT_URL_HOST = 'lists.example.org'
DEFAULT_EMAIL_HOST = 'lists.example.org'
VIRTUAL_MAILMAN_LOCAL_DOMAIN = 'localhost'

VIRTUAL_HOSTS.clear()
add_virtualhost(DEFAULT_URL_HOST, DEFAULT_EMAIL_HOST)

POSTFIX_STYLE_VIRTUAL_DOMAINS = ['lists.example.org']

DEFAULT_URL_PATTERN = 'http://%s/'
PUBLIC_ARCHIVE_URL = 'http://%(hostname)s/archives/%(listname)s'

MTA = 'Postfix'

------------ end of file: mm_cfg.py -----------

What am I doing wrong?

Manuel


More information about the Mailman-Users mailing list