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 <[email protected]>        The highway is for gamblers,
San Francisco Bay Area, California    better use your sense - B. Dylan
------------------------------------------------------
Mailman-Users mailing list [email protected]
https://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://wiki.list.org/x/AgA3
Security Policy: http://wiki.list.org/x/QIA9
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
https://mail.python.org/mailman/options/mailman-users/archive%40jab.org

Reply via email to