[Mailman-Users] Mailman on multiple domains

Scott Race scott at jda-networks.com
Fri Oct 31 21:59:30 CET 2008


Thanks for the reply - so this will be a multiple mailman domain.
Currently list working on first-domain.org, trying to get it working on
second-domain.org.

So yes, "Host name this list prefers for email" is correct as
second-domain.org.

My mm_cfg.py looks like this:

	from socket import *
	try:
	    fqdn = getfqdn()
	except:
	    fqdn = 'mm_cfg_has_unknown_host_domains'
	
	DEFAULT_URL_HOST   = fqdn
	DEFAULT_EMAIL_HOST = fqdn

	# Because we've overriden the virtual hosts above
add_virtualhost
	# MUST be called after they have been defined.

	add_virtualhost(DEFAULT_URL_HOST, DEFAULT_EMAIL_HOST)
	add_virtualhost('www.first-domain.org', 'first-domain.org')
	add_virtualhost('www.second-domain.org',
'second-domain.org')

	##############################################################
	# Put YOUR site-specific configuration below, in mm_cfg.py . #
	# See Defaults.py for explanations of the values.            #

	# Note - if you're looking for something that is imported from
mm_cfg, 	but you
	# didn't find it above, it's probably in Defaults.py.

	POSTFIX_STYLE_VIRTUAL_DOMAINS = ['second-domain.org']

	MTA = 'Postfix'


So, I might be getting somewhere now...so I have a virtual-mailman file
now, it's in /etc/mailman.  It has the following entries:

# LOOP ADDRESSES START
mailman-loop at second-domain.org  mailman-loop
# LOOP ADDRESSES END

# STANZA START: scott-test
# CREATED: Fri Oct 31 15:44:28 2008
scott-test at second-domain.org              scott-test
scott-test-admin at second-domain.org        scott-test-admin
scott-test-bounces at second-domain.org      scott-test-bounces
scott-test-confirm at second-domain.org      scott-test-confirm
scott-test-join at second-domain.org         scott-test-join
scott-test-leave at second-domain.org        scott-test-leave
scott-test-owner at second-domain.org        scott-test-owner
scott-test-request at second-domain.org      scott-test-request
scott-test-subscribe at second-domain.org    scott-test-subscribe
scott-test-unsubscribe at second-domain.org  scott-test-unsubscribe
# STANZA END: scott-test

And the virtual-mailman.db is present and current (same date and time as
the virtual-mailman file).

So, getting closer, but a test to the list still bounces: 
The following recipient(s) could not be reached:

      scott-test at second-domain.org on 10/31/2008 1:47 PM
            There was a SMTP communication problem with the recipient's
email server.  Please contact your system administrator.
            <jdaarch.com #5.5.0 smtp;550 <scott-test at second-domain.org>:
Recipient address rejected: User unknown in virtual alias table>


At this point I'm wondering if since I'm using a second domain, I need
to include the first domain in the virtual domain config?  Right now it
seems like only my second-domain is in the virtual config.


Scott

-----Original Message-----
From: Mark Sapiro [mailto:mark at msapiro.net] 
Sent: Friday, October 31, 2008 1:13 PM
To: Scott Race
Cc: mailman-users at python.org
Subject: RE: [Mailman-Users] Mailman on multiple domains

Scott Race wrote:
>
>Thanks, fixed the domain name in the mm_cfg.py to read
['second-domain.com'].
>
>Running the /bin/genaliases doesn't return an error, but doesn't
>generate the /data/virtual-mailman file.  The mailman error logs don't
>show anything (no errors since Oct 22).
>
>Sounds like the virtual-mailman file missing is my main problem, huh?


Yes.

Go to the list's General Options page and look near the bottom at "Host
name this list prefers for email.". Does this match second-domain.com?

What you ultimately need to do to configure all this depends on whether
or not you will have multiple Mailman domains or a single Mailman
domain.

If there is only a single mailman domain = second-domain.com you want
something like

DEFAULT_URL_HOST = 'www.second-domain.com'
DEFAULT_EMAIL_HOST = 'second-domain.com'
add_virtual_hosts(DEFAULT_URL_HOST, DEFAULT_EMAIL_HOST)

in mm_cfg.py

and then run

bin/withlist -l -a -r fix_url

to fix the web_page_url and host_name attributes of all the lists.

If you have more Mailman domains, it's more complex, but until you have
the proper host_name for your lists, genaliases won't create/update
virtual-mailman.

-- 
Mark Sapiro <mark at msapiro.net>        The highway is for gamblers,
San Francisco Bay Area, California    better use your sense - B. Dylan



More information about the Mailman-Users mailing list