[Mailman-Users] Mailman on multiple domains

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


Sorry bout that...yes, RHLE server.

/etc/postfix/main.cf has the following (in reference to the questions
below):


virtual_alias_maps = hash:/etc/postfix/virtual_alias_maps
virtual_alias_domains = hash:/etc/postfix/mydomains
alias_maps = hash:/etc/aliases, hash:/etc/mailman/aliases


With your direction, realizing I likely needed a reference to this
virtual-mailman file in my virtual_alias_maps, I added it, and my test
post went through!

Not sure if I need the reference to virtual-mailman in my alias_maps
too, didn't think so, and so I didn't add it.

Thanks a TON for the help!


Scott Race 
 

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

Scott Race wrote:

>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.


I don't recall your telling us that this was a RedHat package. These
things make a difference.


  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).


That's good.


>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.


That's probably not a problem.

Does your main.cf virtual_alias_maps point to
/etc/mailman/virtual-mailman where it is or does it point somewhere
else. How about alias_maps?

-- 
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