customized welcome message
On 12/7/23 12:01, Nils wrote:
List is hosted at lists.DOMAIN.TLD and the content of the welcome message is the html source of https://DOMAIN.TLD/start.html (that is what https://DOMAIN.TLD redirects to). I forgot: 404 errors would also redirect there. I've already checked the access log of the web server and didn't find any interesting 404 errors.
Only after changing the template, I get this log message the moment I subscribe:
OWN_IP - - [07/Dec/2023:12:14:59 +0100] "GET /start.html HTTP/1.1" 200 12885 "-" "python-requests/2.22.0"
I would have suspected an attempt to get "/" first, but there isn't. When I just subscribe without changing the template first, there is nothing in the access logs.
On 12/7/23 03:01, Nils wrote:
Hi,
I've created a template "The notice sent to a member when they are subscribed to the mailing list.". When I subscribe to the list, I don't get the message I've created. Instead I get a plain text message, containing the html source of the parent domain.
These messages are sent with Content-Type: text/plain
. Any html
included in a template will be rendered as plain text. I.e., you can't
include html in templates.
When I try to change the value of Settings > Automatic Responses > URI for the welcome message in postorius frontend, I always get this error message:
I see no URI setting in Postorius Settings > Automatic Responses. What Postorius version is this? Any local mods?
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
On 12/7/23 18:17, Mark Sapiro wrote:
These messages are sent with
Content-Type: text/plain
. Any html included in a template will be rendered as plain text. I.e., you can't include html in templates. I didn't try to include html. It completely ignored the template I've created and sent the html source of the parent domain. Which seems totally random to me.
I see no URI setting in Postorius Settings > Automatic Responses. What Postorius version is this? Any local mods? It's Postorius Version 1.2.4 installed through the mailman3-web package for ubuntu focal (https://packages.ubuntu.com/focal/mailman3-web)
Mailman's content filtering has removed the following MIME parts from this message.
Content-Type: image/png Name: Screenshot_20231207_214025.png
Replaced multipart/alternative part with first alternative.
On 12/7/23 12:46, Nils wrote:
I didn't try to include html. It completely ignored the template I've created and sent the html source of the parent domain. Which seems totally random to me.
How and to what did you set the URL for the template? What does the database query
SELECT uri FROM template WHERE name = 'list:user:notice:welcome';
show?
I see no URI setting in Postorius Settings > Automatic Responses. What Postorius version is this? Any local mods? It's Postorius Version 1.2.4 installed through the mailman3-web package for ubuntu focal (https://packages.ubuntu.com/focal/mailman3-web)
This is very old. Current Postorius is 1.3.10. 1.2.4 is from February 2019. The Debian/Ubuntu packages are out of date. We recommend installing via the doc at https://docs.mailman3.org/en/latest/install/virtualenv.html
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
On 12/7/23 22:40, Mark Sapiro wrote:
How and to what did you set the URL for the template? What does the database query
SELECT uri FROM template WHERE name = 'list:user:notice:welcome';
show? http://localhost/postorius/api/templates/list/testliste.lists.DOMAIN.TLD
This value can't work. Now it makes sense that it gets redirected and the use of localhost also explains why it didn't show in any of the virtual hosts log files that I was checking until it was redirected.
However, I didn't set that value. I edited the template at postorius/lists/testliste.lists.DOMAIN.TLD/templates and there I can just select a template type and then I get one textarea input field for the content. The value in the database is set automatically, when I create a template in postorius (and is also automatically removed when I delete a template there). I can't edit this value without manually changing it in the database.
This is very old. Current Postorius is 1.3.10. 1.2.4 is from February 2019. The Debian/Ubuntu packages are out of date. We recommend installing via the doc at https://docs.mailman3.org/en/latest/install/virtualenv.html
The server will be updated from Ubuntu 20.04 (focal) to 22.04 (jammy) very soon. The Debian/Ubuntu packages sure have their downsides but once they work, they update automatically and require very little maintenance.
Forget the previous message. Thank you very much for your help, Mark.
I looked at the configuration files once more, and changing POSTORIUS_TEMPLATE_BASE_URL in mailman-web.py fixed the issue for me.
Kind regards
On 12/7/23 23:09, Nils wrote:
On 12/7/23 22:40, Mark Sapiro wrote:
How and to what did you set the URL for the template? What does the database query
SELECT uri FROM template WHERE name = 'list:user:notice:welcome';
show? http://localhost/postorius/api/templates/list/testliste.lists.DOMAIN.TLD
This value can't work. Now it makes sense that it gets redirected and the use of localhost also explains why it didn't show in any of the virtual hosts log files that I was checking until it was redirected.
However, I didn't set that value. I edited the template at postorius/lists/testliste.lists.DOMAIN.TLD/templates and there I can just select a template type and then I get one textarea input field for the content. The value in the database is set automatically, when I create a template in postorius (and is also automatically removed when I delete a template there). I can't edit this value without manually changing it in the database.
This is very old. Current Postorius is 1.3.10. 1.2.4 is from February 2019. The Debian/Ubuntu packages are out of date. We recommend installing via the doc at https://docs.mailman3.org/en/latest/install/virtualenv.html
The server will be updated from Ubuntu 20.04 (focal) to 22.04 (jammy) very soon. The Debian/Ubuntu packages sure have their downsides but once they work, they update automatically and require very little maintenance.
participants (2)
-
Mark Sapiro
-
Nils