including all domains in virtual-mailman

Greetings. How to get the data/virtual-mailman file to include all virtual domains after running bin/genaliases?
This is on a FreeBSD 10.3 system running mailman 2.1.22 from ports.
The system has mailing lists defined from 3 domains -- let's call them domain1.tld, domain2.tld, and domain3.tld.
After running bin/genaliases, the data/virtual-mailman file only includes whichever virtual domain is defined _last_ in Mailman/mm_cfg.py.
I have tried moving the domain definitions around. In each case, genaliases only picks up the final one.
Thanks in advance for clues on getting all domains' lists included.
The end of Mailman/mm_cfg.py looks like this:
..
# 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'] add_virtualhost('lists.domain2.tld','lists.domain2.tld') POSTFIX_STYLE_VIRTUAL_DOMAINS = ['lists.domain2.tld'] add_virtualhost('mail.domain3.tld','mail.domain3.tld') POSTFIX_STYLE_VIRTUAL_DOMAINS = ['mail.domain3.tld'] DEB_LISTMASTER = 'postmaster@domain2.tld'
# dn 20140423 # adding DMARC workaround here # see http://wiki.list.org/pages/viewpage.action?pageId=17891458 # for more details
ALLOW_FROM_IS_LIST = Yes
The Postfix main.cf file has these mailman-specific settings:
..
alias_maps = hash:/usr/local/etc/postfix/aliases, hash:/usr/local/mailman/data/aliases
..
virtual_alias_maps = proxy:mysql:/usr/local/etc/postfix/mysql/virtual_alias_maps.cf proxy:mysql:/usr/local/etc/postfix/mysql/domain_alias_maps.cf proxy:mysql:/usr/local/etc/postfix/mysql/catchall_maps.cf proxy:mysql:/usr/local/etc/postfix/mysql/domain_alias_catchall_maps.cf hash:/usr/local/mailman/data/virtual-mailman ..
recipient_delimiter = +
Thanks again for clues on getting virtual-mailman to include all lists from all virtual domains.
dn

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@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
participants (2)
-
David Newman
-
Mark Sapiro