On 12/26/21 3:06 PM, William Oliver wrote:
When running mailman3, do I need to set up a completely different virtual domain for it to run in?
No.
My "real" domain name is libertyfp.org, and I'm trying to make mailman work on that domain, e.g. "testlist@libertyfp.org." I'm starting to get the idea that I need to stick a completely different domain in there for the mailinglist.
No.
However, in Postfix, libertyfp.org is a virtual_mailbox_domain so you have to use an alias domain in Mailman. An alias domain is not a real domain. It is only known to Mailman and Postfix. It is not exposed in DNS or anywhere outside your server.
Have you actually set an alias domain in Postorius for the libertyfp.org
domain. It doesn't matter what name it is as long as it isn't
a real domain. A good choice is x.libertyfp.org. Have you set that or
something similar? If you do and run mailman aliases
you should get
things like
testlist@libertyfp.org testlist@x.libertyfp.org testlist-bounces@libertyfp.org testlist-bounces@x.libertyfp.org testlist-confirm@libertyfp.org testlist-confirm@x.libertyfp.org ...
in postfix_vmap and things like
testlist@x.libertyfp.org lmtp:[mail.libertyfp.org]:8024 testlist-bounces@x.libertyfp.org lmtp:[mail.libertyfp.org]:8024 testlist-confirm@x.libertyfp.org lmtp:[mail.libertyfp.org]:8024 ...
in postfix_lmtp
Which I can do -- I've got another two or three domain names to play with. Is it a problem to run the mailinglist on the same domain that the machine sits on for its regular business? A lot of the errors I'm getting seem to be from trying to do regular mail *and* the mailinglist on the same domain.
Now that I've installed all this stuff a couple of times, I can easily re-install for a second virtual domain, if that's what I should be doing.
But, on to what's not working now...
Unfortunately, I seem to have completely screwed the pooch on getting postfix/dovecot to play nicely with respect to *receiving* mail.
First, adding "virtual_alias_domains" (and putting libertyfp.org in it) and commenting out "virtual_mailbox_domains" resulted in postfix ignoring all my virtual mailboxes.
Don't do that. Leave libertyfp.org as a virtual_mailbox_domain and don't set it as a virtual_alias_domain. I think that should work., but you may need to add hash:hash:/opt/mailman/mm/var/data/postfix_vmap to virtual_mailbox_maps instead of virtual_alias_maps.
...
# mailman3 changes
owner_request_special = no always_add_missing_headers = yes transport_maps = hash:/opt/mailman/mm/var/data/postfix_lmtp local_recipient_maps = proxy:unix:passwd.byname $alias_maps hash:/opt/mailman/mm/var/data/postfix_lmtp
You shouldn't need to add hash:/opt/mailman/mm/var/data/postfix_lmtp to local_recipient_maps, but it probably doesn't hurt.
relay_domains = hash:/opt/mailman/mm/var/data/postfix_domains default_destination_recipient_limit = 30 default_destination_concurrency_limit = 15 virtual_alias_domains = hash:/etc/postfix/domains
You don't want virtual_alias_domains.
virtual_alias_maps = hash:/opt/mailman/mm/var/data/postfix_vmap #hash:/etc/postfix/virtual
Everything you've posted so far says you haven't set an alias domain in Mailman for the libertyfp.org domain. Please be sure you have.
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan