On 3/4/21 12:52 PM, Duane Raymond wrote:
Virtual Domains: So based on the Postfix virtual domain documentation and the Mailman3 specific "Unusual Postfix configuration' section, I added the following to my postfix main.cf file: virtual_alias_domains = emaillistA.com emaillistB.com virtual_alias_maps = hash:/opt/mailman/mm/var/data/postfix_vmap and removed those domains from the 'mydestination' setting.
You probably do not have a configuration that is a "Unusual Postfix configuration"
Putting Mailman aside, is there some reason why emaillistA.com and emaillistB.com need to be virtual_alias_domains? If these domains are only for mail lists, they do not need to be virtual_alias_domains?
I then created the postfix_vmap file and added to it: emaillistA.com DOMAIN # emaillistB.com DOMAIN
You don't create these files. Mailman creates them in its var/data
directory when you run mailman aliases
or just start mailman core.
...then ran postmap with the path and reloaded postfix.
Mailman also runs the appropriate postmap commands.
You should have one of two setups in Postfix depending on whether emaillistA.com and emaillistB.com need to be virtual_alias_domains or not. If they are only for list mail, they should not be virtual_alias_domains in Postfix and their domain definitions in Mailman should not have an alias domain. In that case, in Postfix you want
transport_maps = hash:/path-to-mailman/var/data/postfix_lmtp local_recipient_maps = hash:/path-to-mailman/var/data/postfix_lmtp relay_domains = hash:/path-to-mailman/var/data/postfix_domains
and you want Mailman to generate those files. Also see the note in <https://docs.mailman3.org/projects/mailman/en/latest/src/mailman/docs/mta.html#transport-maps> about adding hash:/path-to-mailman/var/data/postfix_lmtp to local_recipient_maps rather than replacing it.
If emaillistA.com and emaillistB.com do need to be virtual_alias_domains, you configure them in postfix according to the normal postfix configurationfor virtual_alias_domains and virtual_alias_maps.
Then each of these domains needs a corresponding, otherwise unused alias domain defined in Mailman and what you need in Postfix is
transport_maps = hash:/path-to-mailman/var/data/postfix_lmtp relay_domains = hash:/path-to-mailman/var/data/postfix_domains virtual_alias_maps = hash:/path-to-mailman/var/data/postfix_vmap
Where again if you have existing settings for these things, add the mailman files rather that replacing the existing with them.
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan