On 6/19/25 14:30, Sam Darwin via Mailman-users wrote:
Thanks. That fixed it.
Comments:
1. In the docs, the instructions say "POSTORIUS_TEMPLATE_BASE_URL =
'http://localhost:8000'. As a reader, you are thinking, I'm running both hyperkitty
and postorius. Hyperkitty is at /archives/ and postorius is at /mailman3/ . What
about the path '/mailman3/ for postorius?
The doc could mention the path even if it's to explain why it's not needed.
(The reason perhaps it's not needed is root will redirect to '/mailman3/'.)
I'm guessing you are looking at
https://docs.mailman3.org/projects/mailman-web/en/latest/settings.html#mailman_web.settings.mailman.POSTORIUS_TEMPLATE_BASE_URL
Although the name of the setting includes Postorius, the definition
there says "Base URL where Django/Mailman-web would be listening for
requests." I.e., the base URL for accessing Django, not Postorius.
2. This all seems very self-referential. The setting goes into settings.py
which is the website for postorius itself. It is accessing itself.
Given that's the case do you really need to tell Django about it's own URL?
Doesn't it know it's own URL already? Could Django just contact itself
without being configured?
It and in this case Postorius know the /mailman3/... part, but they
don't necessarily know the appropriate base url for accessing the Django
WSGI.
3. Logging... when it can't find the templates, does it log an error anywhere?
Mailman's outgoing runner logs an error to the mailman.error log,
usually written to mailman.log. The not at all descriptive log message
says "Cannot connect to SMTP server <configured smtp_host> on port
<configured smtp_port>", but it only logs it the first time and not
again until there is a successful delivery.
This issue is https://gitlab.com/mailman/mailman/-/issues/514 which I am
in the process of fixing.
4. The server had been up for a year. After I rebooted, the problem vanished,
even after removing the new setting. So either it's caching the setting in
Redis, or else the problem is really gone. Very strange.
See https://gitlab.com/mailman/mailman/-/issues/514#note_101644301
--
Mark Sapiro <m...@msapiro.net> The highway is for gamblers,
San Francisco Bay Area, California better use your sense - B. Dylan
_______________________________________________
Mailman-users mailing list -- mailman-users@mailman3.org
To unsubscribe send an email to mailman-users-le...@mailman3.org
https://lists.mailman3.org/mailman3/lists/mailman-users.mailman3.org/
Archived at:
https://lists.mailman3.org/archives/list/mailman-users@mailman3.org/message/XGQCEJVXE75AIKL4X64XCH2NZWVLIEQD/
This message sent to arch...@mail-archive.com