[Mailman-Users] including all domains in virtual-mailman

Mark Sapiro mark at msapiro.net
Thu Aug 18 02:10:28 EDT 2016


On 08/12/2016 11:48 AM, David Newman wrote:
> Greetings. How to get the data/virtual-mailman file to include all
> virtual domains after running bin/genaliases?
...
> # Put YOUR site-specific settings below this line.
> MTA = 'Postfix'
> 
> # Clear the Defaults.py VIRTUAL_HOSTS entry
> # VIRTUAL_HOSTS.clear()
> add_virtualhost('lists.domain1.tld','lists.domain1.tld')
> POSTFIX_STYLE_VIRTUAL_DOMAINS = ['lists.domain1.tld']

Which sets POSTFIX_STYLE_VIRTUAL_DOMAINS to a list with the single
domain 'lists.domain1.tld'.


> add_virtualhost('lists.domain2.tld','lists.domain2.tld')
> POSTFIX_STYLE_VIRTUAL_DOMAINS = ['lists.domain2.tld']

Which resets POSTFIX_STYLE_VIRTUAL_DOMAINS to a list with the single
domain 'lists.domain2.tld'.


> add_virtualhost('mail.domain3.tld','mail.domain3.tld')
> POSTFIX_STYLE_VIRTUAL_DOMAINS = ['mail.domain3.tld']

Which resets POSTFIX_STYLE_VIRTUAL_DOMAINS to a list with the single
domain 'mail.domain3.tld'.

You want only one entry like:

POSTFIX_STYLE_VIRTUAL_DOMAINS = ['lists.domain1.tld',
'lists.domain2.tld', 'mail.domain3.tld']

to set POSTFIX_STYLE_VIRTUAL_DOMAINS to a list of all three domains.

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