[Mailman-Users] Virtual Domains for Mailing Lists in MailMan

Mark Sapiro mark at msapiro.net
Fri Jun 19 01:04:42 CEST 2009


Bryan Harrison 
>
>A minor puzzle, just in case you're interested:
>
>You'll be unsurprised that I found virtual_mailbox_domains and  
>virtual_alias_domains will fight over any domain common to both.   
>Since OS X Server is dependent on virtual_mailbox_domains , I did my  
>usual blind monkey try-this-and-that and discovered it works fine  
>without virtual_alias_domains.  I won't pretend to understand, but am  
>wondering if I've created something that will be less than robust.


I'm far from a Postfix expert, and I'm not sure what's going on in your
case. My understanding is that with virtual_mailbox_domains, mail to
such a domain is always delivered to a mailbox or mail directory, and
aliases such as those which pipe the mail to a mailman wrapper do not
apply. So, I'm not sure what you have that enables this mail to be
delivered to Mailman.


>And one more question, if you don't mind:
>
>In addition to hosting lists for virtual domains, I need to host  
>listname at the address listname at laughingboot.net on the server gilded- 
>bat.laughingboot.net.  Is this sufficient?
>
># mm_dfg.py
># 2009-06-16
>
># Include Defaults:
>
>from Defaults import *
>
># Site-specific overrides:
>
>MTA = 'Postfix'
>DEFAULT_EMAIL_HOST = 'laughingboot.net'
>DEFAULT_URL_HOST = 'gilded-bat.laughingboot.net'
>VIRTUAL_HOSTS.clear()
>add_virtualhost(DEFAULT_URL_HOST, DEFAULT_EMAIL_HOST)
>add_virtualhost('gurgitate.org', 'gurgitate.org')
>POSTFIX_STYLE_VIRTUAL_DOMAINS = 'gurgitate.org'


The above is sufficient and (almost) correct if laughingboot.net is a
local (non-virtual) domain as far as Postfix is concerned. Yhe last
line should be

POSTFIX_STYLE_VIRTUAL_DOMAINS = ['gurgitate.org']

POSTFIX_STYLE_VIRTUAL_DOMAINS is a list even if it has only one entry.


>DEFAULT_MAX_MESSAGE_SIZE = 10000           # KB
>
>I've read that I need to do this as well...
>
># /etc/postfix/virtual
># 2009-06-09
>
>laughingboot.net 			IGNORE
>@laughingboot.net			@mail.laughingboot.net
>
>...but feel like a cargo cult member worshipping a ball point pen when I  
>look at it.  Of course gilded-bat.laughingboot.net needs to continue  
>to handle non-mailing list mail for laughingboot.net as well.


If /etc/postfix/virtual is a virtual_alias_maps file, the first line
above says laughingboot.net is a virtual_alias_domain and is not
required if laughingboot.net is listed explicitly in
virtual_alias_domains in main.cf. The second line says all mail to the
domain laughingboot.net should be routed to mail.laughingboot.net.

If it is a virtual_mailbox_maps file, The first line may work
analogously, but I'm not sure and the second line specifies a mailbox
name to which to deliver laughingboot.net mail.

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