[Mailman-Users] host.domain.tld vs. domain.tld

David Newman dnewman at networktest.com
Fri Jan 15 21:09:32 CET 2010


Mailman 2.1.13, postfix 2.5.6, MySQL 5.0.77, OpenBSD 4.5

After migrating to new hardware, Mailman lists are working OK using the
form <listname>@mail.domain.tld, but mail sent to <listname>@domain.tld
bounces with an "User unknown in virtual mailbox table" error.

This is a problem since some users expect <listname>@domain.tld to work.
So, I'm looking for help in getting either of these forms working:

<listname>@mail.domain.tld
<listname>@domain.tld

This error is odd in that the form <listname>@domain.tld worked on the
old server and I am using the exact same postfix and Mailman config
files as well as the same MySQL databases.

Odder still is that I don't see any reason why <listname>@domain.tld
should have worked on the old system. On both servers, the Mailman setup
is for mail.domain.tld.

There's nothing about these errors in the Mailman logs. As near as I can
tell, all Postfix and SQL setup is the same, as are file permissions.
I've played around with adding 'domain.tld' to add_virtualhost and
POSTFIX_STYLE_VIRTUAL_DOMAINS, and also followed this and other threads:

http://is.gd/6kB4Y

but no joy.

Thanks in advance for clues on getting both addresses working.

dn


from mm_cfg.py:

MTA = 'Postfix'
MAILMAN_SITE_LIST = 'mailman'
DEFAULT_EMAIL_HOST = 'mail.domain.tld'
DEFAULT_URL_HOST = 'mail.domain.tld'
# Clear the Defaults.py VIRTUAL_HOSTS entry
VIRTUAL_HOSTS.clear()
add_virtualhost(DEFAULT_URL_HOST, DEFAULT_EMAIL_HOST)
add_virtualhost('mail.domain.tld', 'mail.domain.tld')
DEFAULT_URL_PATTERN = 'https://%s/mailman/'
PUBLIC_ARCHIVE_URL = 'https://%(hostname)s/pipermail/%(listname)s'
IMAGE_LOGOS = '/icons/'
POSTFIX_ALIAS_CMD = '/usr/local/sbin/postalias'
POSTFIX_MAP_CMD = '/usr/local/sbin/postmap'
POSTFIX_STYLE_VIRTUAL_DOMAINS = [ 'mail.domain.tld', 'mail.domain.tld' ]
VERP_PASSWORD_REMINDERS = Yes
VERP_PERSONALIZED_DELIVERIES = Yes
VERP_DELIVERY_INTERVAL = Yes
VERP_CONFIRMATIONS = Yes
VERP_DELIVERY_INTERVAL = 1
OWNERS_CAN_ENABLE_PERSONALIZATION = Yes

from main.cf:

alias_maps = hash:/etc/mail/aliases, hash:/usr/local/mailman/data/aliases
# the above is all one line in the config file

alias_database = hash:/etc/mail/aliases
unknown_local_recipient_reject_code = 550

virtual_alias_domains =
virtual_alias_maps =
        proxy:mysql:/etc/postfix/sql/forwardings.cf
        proxy:mysql:/etc/postfix/sql/email2email.cf
        hash:/usr/local/mailman/data/virtual-mailman


sample stanza from /usr/local/mailman/data/virtual-mailman:

# STANZA START: test
# CREATED: Wed Jan 13 15:48:46 2010
test at mail.domain.tld              test
test-admin at mail.domain.tld        test-admin
test-bounces at mail.domain.tld      test-bounces
test-confirm at mail.domain.tld      test-confirm
test-join at mail.domain.tld         test-join
test-leave at mail.domain.tld        test-leave
test-owner at mail.domain.tld        test-owner
test-request at mail.domain.tld      test-request
test-subscribe at mail.domain.tld    test-subscribe
test-unsubscribe at mail.domain.tld  test-unsubscribe
# STANZA END: test



More information about the Mailman-Users mailing list