Mark,

You were (of course), absolutely on target, thank you!

I have a remaining issue that baffles me.  With my test list, I created a 
template for ‘list:member:regular:header’.  It just has text in it, keeping it 
simple.  I create it and see the entries in the database tables and they are 
correct.  However, when I send a test email, my template text is not inserted, 
but instead another simple text: “testing hello”.  I do the same with 
list:member:regular:footer, and it works just fine.  It is just the header that 
is working incorrectly.  When I remove that postorius header template for the 
list, that ‘testing hello’ goes away.  So, it’s only appearing when I have a 
postorius template setup for that list.

I have searched on the file system for any such templates and only see the 
default ones; all zero length files.  There are no templates defined for the 
domain in postorius – but if there were, I’d expect to see that test header all 
the time.

I’m just baffled.  Any clues?

I’m a relative newbie to mailman3.  When I first set it up, I tried the 
postorius templates for the domain.  They didn’t work (had to have been due to 
the POSTORIUS_TEMPLATE_BASE_URL being wrong.  So, I scrapped that and went with 
templates in the file system.

Thank you

Tom Lieuallen

From: Mark Sapiro <m...@msapiro.net>
Date: Thursday, February 6, 2025 at 3:46 PM
To: mailman-users@mailman3.org <mailman-users@mailman3.org>
Subject: [MM3-users] Re: Pck files stuck in out queue
[This email originated from outside of OSU. Use caution with links and 
attachments.]

On 2/6/25 15:21, Lieuallen, Thomas Otis via Mailman-users wrote:
> Mark,
>
> There were no apparent permissions problems on templates.  I was getting the 
> ‘Cannot connect to SMTP server’ message in mailman.log.
>
> I did end up applying the patch to decorate.py and messages went through.  
> I’ve since removed the patch, as I’m still looking for an answer and might as 
> well let it queue up again.


Per the above, template access is definitely the problem.


> The only thing that is making me ponder at the moment is that the list owners 
> setup a template for list:member:regular:footer in postorius.  It appears 
> that each list has a copy of that file.  The modifications I see in postorius 
> are not in their 
> …/templates/list/<listname>/en/list:member:regular:footer.txt file.  Are 
> their modifications stored somewhere else and causing the problem?


Templates set in Postorius are stored in the database in the
postorius_emailtemplate table. At the same time an entry is made in the
template table with a uri to retrieve the template from a Postorius API.
The uri is something like
http(s)://host/mailman3/api/templates/list/LIST-ID/list:member:regular:footer
where the http(s)://host part is from the setting for
POSTORIUS_TEMPLATE_BASE_URL.

The issue is that uri is not retrievable probably because the setting
for POSTORIUS_TEMPLATE_BASE_URL is wrong.

You should look at the uris in the template table in the database and
figure out what they should be, probably by trying to retrieve one in a
browser with the scheme and host what you actually use to access
Postorius. Once you figure out what the correct uri is you can set
POSTORIUS_TEMPLATE_BASE_URL appropriately, but this won't fix the
existing template table entries. You can fix those manually in the
database or you can delete and recreate the templates in Postorius after
fixing POSTORIUS_TEMPLATE_BASE_URL and restarting the Mailman web service.

--
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://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.mailman3.org%2Fmailman3%2Flists%2Fmailman-users.mailman3.org%2F&data=05%7C02%7CTom.Lieuallen%40oregonstate.edu%7Cf136ace382d3492585ee08dd470884a9%7Cce6d05e13c5e4d6287a84c4a2713c113%7C0%7C0%7C638744824099197631%7CUnknown%7CTWFpbGZsb3d8eyJFbXB0eU1hcGkiOnRydWUsIlYiOiIwLjAuMDAwMCIsIlAiOiJXaW4zMiIsIkFOIjoiTWFpbCIsIldUIjoyfQ%3D%3D%7C0%7C%7C%7C&sdata=g1F4xox303tMOyCfIZACE5NmDrXK6snhyIerFt%2F2xqE%3D&reserved=0<https://lists.mailman3.org/mailman3/lists/mailman-users.mailman3.org/>
Archived at: 
https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.mailman3.org%2Farchives%2Flist%2Fmailman-users%40mailman3.org%2Fmessage%2FDKAWU2SBOKISHN7AOEMWKEPFNJO56U3K%2F&data=05%7C02%7CTom.Lieuallen%40oregonstate.edu%7Cf136ace382d3492585ee08dd470884a9%7Cce6d05e13c5e4d6287a84c4a2713c113%7C0%7C0%7C638744824099222376%7CUnknown%7CTWFpbGZsb3d8eyJFbXB0eU1hcGkiOnRydWUsIlYiOiIwLjAuMDAwMCIsIlAiOiJXaW4zMiIsIkFOIjoiTWFpbCIsIldUIjoyfQ%3D%3D%7C0%7C%7C%7C&sdata=pBHgPuOujHIoDz8lnM3G7ReBsJy5F4BK6PGa22woopU%3D&reserved=0<https://lists.mailman3.org/archives/list/mailman-users@mailman3.org/message/DKAWU2SBOKISHN7AOEMWKEPFNJO56U3K/>

This message sent to lieua...@oregonstate.edu
_______________________________________________
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/YMFMYOVOCDYC3W7B7JLZATZPTHI5YBZA/

This message sent to arch...@mail-archive.com

Reply via email to