only show mail domains from web host on web-host-url
Is it possible, to only show publicly (if advertised) these lists on a certain url, that are corresponding to the web host the url I accessed mailman through? I tried to configure different Web hosts with different Mail domains ... but through all the domains all mailing lists are advertised and I don't get why I then should configure different web hosts :-)
Another solution for me would be, that I have only 1 Web host, don't advertise any Mailing-lists (or only certain ones) and configure different administrators for certain mail domains. But also that I don't see how it should be done :-(
Sorry for the maybe nooby/newby question, but I just started trying Mailman3 and hoped for a better support for multidomain (which I till right now like in contrast to mailman2, whih has been a hazzle to register new Domains on the same server, but worked :-)).
Thanks inadvance.
On 3/18/21 9:20 AM, jens.guenther@posteo.de wrote:
Is it possible, to only show publicly (if advertised) these lists on a certain url, that are corresponding to the web host the url I accessed mailman through?
Set FILTER_VHOST = True in your settings_local.py or where ever you put your site Django settings.
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
Thank you for your answer. I should have seen that in the Docs, but somehow missed it: https://docs.mailman3.org/en/new/prodsetup.html
I set it in the corresponding file, but unfortunately it doesn't work :-( I tried other setting to prove, that the file is used (ALLOWED_HOSTS works, changed here from '*' to 'localhost' and my example-domains, this works). It seems to be the same as this user describes (a while ago): https://lists.mailman3.org/archives/list/mailman-users@mailman3.org/thread/7...
How could I check, that the setting is used!?
But maybe some additional information:
- I use the Debian installation on a stable buster, so mailman is version 3.2.1
- I use apache2 as my web-server and use the given alias-conf-file
- Python is version 3.7.3
- Postorius is Version 1.2.4
- HyperKitty is version 1.2.2
-> In Django admin-Panel (/mailman3/admin/) I added 2 Websites test1.xyz.de and test2.xyz.de -> In Postorius (/mailman3/postorius/domains/) I added 2 Domains as Mail Hosts test1.xyz.de and test2.xyz.de with the corresponding Web hosts as stated above -> I added 1 list (/mailman3/postorius/lists/) for each Mail Domain as follows: test1@test1.xyz.de and test2@test2.xyz.de -> then created a vhost in apache2 with SSL-cert and added the Domains in ALLOWED_HOSTS: test1.xyz.de and test2.xyz.de -> When I go to the 2 Testdomains (corresponding web hosts), I see on each both lists for the different Mail domains
What do I miss? Or where to investigate?
Thank you in advance, best regards.
By the way: what'S the difference in the 2 docs? https://docs.mailman3.org/en/latest/index.html and https://mailman.readthedocs.io/en/latest/README.html
Am 18.03.21 um 21:52 schrieb Mark Sapiro:
On 3/18/21 9:20 AM, jens.guenther@posteo.de wrote:
Is it possible, to only show publicly (if advertised) these lists on a certain url, that are corresponding to the web host the url I accessed mailman through?
Set FILTER_VHOST = True in your settings_local.py or where ever you put your site Django settings.
On 3/19/21 6:38 AM, Jens Günther wrote:
Thank you for your answer. I should have seen that in the Docs, but somehow missed it: https://docs.mailman3.org/en/new/prodsetup.html
I set it in the corresponding file, but unfortunately it doesn't work :-( I tried other setting to prove, that the file is used (ALLOWED_HOSTS works, changed here from '*' to 'localhost' and my example-domains, this works). It seems to be the same as this user describes (a while ago): https://lists.mailman3.org/archives/list/mailman-users@mailman3.org/thread/7...
FILTER_VHOST is problematic. It works fairly well for HyperKitty, but not so well for Postorius. In particular with Postorius it doesn't work if there is more than one mail host domain with the current web host. See these issues and MRs for more detail.
https://gitlab.com/mailman/hyperkitty/-/issues/254 https://gitlab.com/mailman/hyperkitty/-/merge_requests/243/diffs https://gitlab.com/mailman/hyperkitty/-/merge_requests/244/diffs https://gitlab.com/mailman/postorius/-/issues/394 https://gitlab.com/mailman/postorius/-/merge_requests/500/diffs
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
Thanks,
already had a look at the issues and thought with the merge requests that it was solved :-)
Maybe I have to update my mailman to 3.3.3 so that it does!? Or is it that you are saying that this hasn't been fixed but tried to and it didn't work!? Actually I see the logic of what you are talking about in the issues, but don't see if what happens with the code can be correct, since I'm unfortunately not a coder.
Any other ideas how I could go on / help? This qould be a quite central feature for using mailman3 for us.
Thanks anyway.
Am 19.03.21 um 17:21 schrieb Mark Sapiro:
On 3/19/21 6:38 AM, Jens Günther wrote:
Thank you for your answer. I should have seen that in the Docs, but somehow missed it: https://docs.mailman3.org/en/new/prodsetup.html
I set it in the corresponding file, but unfortunately it doesn't work :-( I tried other setting to prove, that the file is used (ALLOWED_HOSTS works, changed here from '*' to 'localhost' and my example-domains, this works). It seems to be the same as this user describes (a while ago): https://lists.mailman3.org/archives/list/mailman-users@mailman3.org/thread/7...
FILTER_VHOST is problematic. It works fairly well for HyperKitty, but not so well for Postorius. In particular with Postorius it doesn't work if there is more than one mail host domain with the current web host. See these issues and MRs for more detail.
https://gitlab.com/mailman/hyperkitty/-/issues/254 https://gitlab.com/mailman/hyperkitty/-/merge_requests/243/diffs https://gitlab.com/mailman/hyperkitty/-/merge_requests/244/diffs https://gitlab.com/mailman/postorius/-/issues/394 https://gitlab.com/mailman/postorius/-/merge_requests/500/diffs
Just checked again and saw:
in the setup it works perfectly in Hyperkitty, that's nice
for the first web host I have 2 mail domains registered, so it also matches (unfortunately) with what you said :-(
Anyway, I dceleted one of it, still both lists are shown on either web host, so it's generally not working.
If I can do something on this issue, please advise me. Thanks.
Am 19.03.21 um 17:21 schrieb Mark Sapiro:
FILTER_VHOST is problematic. It works fairly well for HyperKitty, but not so well for Postorius. In particular with Postorius it doesn't work if there is more than one mail host domain with the current web host.
On 3/19/21 11:14 AM, Jens Günther wrote:
Just checked again and saw:
in the setup it works perfectly in Hyperkitty, that's nice
for the first web host I have 2 mail domains registered, so it also matches (unfortunately) with what you said :-(
Anyway, I dceleted one of it, still both lists are shown on either web host, so it's generally not working.
I don't know why this didn't work. If there is only one mail host in the domains that has the current web host as its web host, it should work.
If I can do something on this issue, please advise me. Thanks.
The issue is that neither Postorius or HyperKitty as a direct way of getting lists by web host as the web host information is not an attribute of the list. We have to see which mail hosts are associated with the current web host and then display only those lists that match one of those mail hosts.
The issue with Postorius is if there was more than one mail host associated with the web host, this code https://gitlab.com/mailman/postorius/-/blob/master/src/postorius/views/list.... could be relatively easily made to work by extending all_lists to include all the mail hosts, but it wasn't clear to me how to fix https://gitlab.com/mailman/postorius/-/blob/master/src/postorius/views/list.... in the case where there was more than one mail host.
If you can suggest a fix, that would help.
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
On Mar 19, 2021, at 6:38 AM, Jens Günther <jens.guenther@posteo.de> wrote:
Thank you for your answer. I should have seen that in the Docs, but somehow missed it: https://docs.mailman3.org/en/new/prodsetup.html
You seem to have landed on a very old version of the docs that I didn’t unfortunately knew was even available. I have disabled that page now.
The settings are documented in https://docs.mailman3.org/en/latest/config-web.html
I set it in the corresponding file, but unfortunately it doesn't work :-( I tried other setting to prove, that the file is used (ALLOWED_HOSTS works, changed here from '*' to 'localhost' and my example-domains, this works). It seems to be the same as this user describes (a while ago): https://lists.mailman3.org/archives/list/mailman-users@mailman3.org/thread/7...
How could I check, that the setting is used!?
But maybe some additional information:
- I use the Debian installation on a stable buster, so mailman is version 3.2.1
- I use apache2 as my web-server and use the given alias-conf-file
- Python is version 3.7.3
- Postorius is Version 1.2.4
- HyperKitty is version 1.2.2
-> In Django admin-Panel (/mailman3/admin/) I added 2 Websites test1.xyz.de and test2.xyz.de -> In Postorius (/mailman3/postorius/domains/) I added 2 Domains as Mail Hosts test1.xyz.de and test2.xyz.de with the corresponding Web hosts as stated above -> I added 1 list (/mailman3/postorius/lists/) for each Mail Domain as follows: test1@test1.xyz.de and test2@test2.xyz.de -> then created a vhost in apache2 with SSL-cert and added the Domains in ALLOWED_HOSTS: test1.xyz.de and test2.xyz.de -> When I go to the 2 Testdomains (corresponding web hosts), I see on each both lists for the different Mail domains
What do I miss? Or where to investigate?
Thank you in advance, best regards.
By the way: what'S the difference in the 2 docs? https://docs.mailman3.org/en/latest/index.html and https://mailman.readthedocs.io/en/latest/README.html
Mailman Suite consists of several individual projects including Mailman Core, Postorius (Web UI) and Hyperkitty (Archiver). The first URL is the landing page for the entire suite and should direct you to individual projects. The second one is the individual Mailman Core project. Historically, Core was the only project and hence claims the name “mailman” in most places.
Am 18.03.21 um 21:52 schrieb Mark Sapiro:
On 3/18/21 9:20 AM, jens.guenther@posteo.de wrote:
Is it possible, to only show publicly (if advertised) these lists on a certain url, that are corresponding to the web host the url I accessed mailman through? Set FILTER_VHOST = True in your settings_local.py or where ever you put your site Django settings.
Mailman-users mailing list -- mailman-users@mailman3.org To unsubscribe send an email to mailman-users-leave@mailman3.org https://lists.mailman3.org/mailman3/lists/mailman-users.mailman3.org/
-- thanks, Abhilash Raj (maxking)
Thank you for the clarification!
Am 19.03.21 um 18:48 schrieb Abhilash Raj:
On Mar 19, 2021, at 6:38 AM, Jens Günther <jens.guenther@posteo.de> wrote:
Thank you for your answer. I should have seen that in the Docs, but somehow missed it: https://docs.mailman3.org/en/new/prodsetup.html
You seem to have landed on a very old version of the docs that I didn’t unfortunately knew was even available. I have disabled that page now.
The settings are documented in https://docs.mailman3.org/en/latest/config-web.html
I set it in the corresponding file, but unfortunately it doesn't work :-( I tried other setting to prove, that the file is used (ALLOWED_HOSTS works, changed here from '*' to 'localhost' and my example-domains, this works). It seems to be the same as this user describes (a while ago): https://lists.mailman3.org/archives/list/mailman-users@mailman3.org/thread/7...
How could I check, that the setting is used!?
But maybe some additional information:
- I use the Debian installation on a stable buster, so mailman is version 3.2.1
- I use apache2 as my web-server and use the given alias-conf-file
- Python is version 3.7.3
- Postorius is Version 1.2.4
- HyperKitty is version 1.2.2
-> In Django admin-Panel (/mailman3/admin/) I added 2 Websites test1.xyz.de and test2.xyz.de -> In Postorius (/mailman3/postorius/domains/) I added 2 Domains as Mail Hosts test1.xyz.de and test2.xyz.de with the corresponding Web hosts as stated above -> I added 1 list (/mailman3/postorius/lists/) for each Mail Domain as follows: test1@test1.xyz.de and test2@test2.xyz.de -> then created a vhost in apache2 with SSL-cert and added the Domains in ALLOWED_HOSTS: test1.xyz.de and test2.xyz.de -> When I go to the 2 Testdomains (corresponding web hosts), I see on each both lists for the different Mail domains
What do I miss? Or where to investigate?
Thank you in advance, best regards.
By the way: what'S the difference in the 2 docs? https://docs.mailman3.org/en/latest/index.html and https://mailman.readthedocs.io/en/latest/README.html
Mailman Suite consists of several individual projects including Mailman Core, Postorius (Web UI) and Hyperkitty (Archiver). The first URL is the landing page for the entire suite and should direct you to individual projects. The second one is the individual Mailman Core project. Historically, Core was the only project and hence claims the name “mailman” in most places.
Am 18.03.21 um 21:52 schrieb Mark Sapiro:
On 3/18/21 9:20 AM, jens.guenther@posteo.de wrote:
Is it possible, to only show publicly (if advertised) these lists on a certain url, that are corresponding to the web host the url I accessed mailman through? Set FILTER_VHOST = True in your settings_local.py or where ever you put your site Django settings.
Mailman-users mailing list -- mailman-users@mailman3.org To unsubscribe send an email to mailman-users-leave@mailman3.org https://lists.mailman3.org/mailman3/lists/mailman-users.mailman3.org/
participants (4)
-
Abhilash Raj
-
Jens Günther
-
jens.guenther@posteo.de
-
Mark Sapiro