On 12/16/21 2:40 PM, Mark Sapiro wrote:
On 12/16/21 12:25 PM, David Newman wrote:
Can lists set to be viewable on the index page be limited to the virtual domain they are a part of?
Have you set
FILTER_VHOST = True
in your Django settings?
I had not, and this was the variable I was looking for. Thank you!
This works for HyperKitty and works partially
for Postorius. For Postorius, it doesn't work if there are multiple domains with different email hosts which have the visiting host as their web host[1] but works otherwise.
See https://gitlab.com/mailman/postorius/-/merge_requests/500 and https://gitlab.com/mailman/postorius/-/issues/394
In your case, as long as the domains lists.dom1.tld and lists.dom2.tld have different mail hosts, this should work.
[1] An example of what doesn't work in Postorius is the following:
Visit https://lists.example.com/mailman3/lists. If there are 2 domains with web host lists.example.com, one of which has mail host example.com and the other has mail host lists.example.com, all lists will be shown regardless of domain. On the other hand, if all the domains with web host lists.example.com have the same email host, say example.com, then only lists with email host example.com will be shown.
Awhile back Stephen Turnbull suggested a terminology guide that included an MM3-specific definition of FQDNs.
Also in an MM3 context, I think it would be useful to distinguish between mail hosts and web hosts and domains (all in the general Internet sense) and mail domains and sites (in the MM3/Django/Postorious/Hyperkitty sense).
Not sure I fully understand these distinctions yet, but I can take a crack at it.
dn