On 3/26/26 10:30 AM, MegaBrutal via Mailman-users wrote:
To be honest, I didn't quote logs because I didn't find anything upon first check. But now I looked again and found interesting entries.
I get different errors depending on whether I define the list:user:notice:rejected template.
When the template is not defined:
Mar 26 01:48:02 2026 (28606) Uncaught runner exception: 'ascii' codec can't encode character '\xed' in position 21: ordinal not in range(128)
I suspect you have a list:user:notice:rejected.txt template other than the default defined in the file system somewhere, probably in the /opt/mailman/mm/var/templates/ hierarchy. I say this because the default template at /opt/mailman/venv/lib/python3.11/site-packages/mailman/templates/en/list:user:notice:rejected.txt doesn't contain a hex ED (lower case i with acute accent) character.
The issue is the list's preferred language is English and the preferred character set for English is ascii and the resultant message built from the template contains that non-ascii character.
And this is what happens when I define the template: ... requests.exceptions.ConnectionError: HTTPConnectionPool(host='localhost', port=8000): Max retries exceeded with url: /mailman3/api/templates/list/ hirlevel.lista.autistaktol.hu/list:user:notice:rejected (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xf46e5910>: Failed to establish a new connection: [Errno 111] Connection refused'))
Here you have defined the template in Postorius and Mailman core is attempting to get the template from the Postorius API and the connection is refused.
What is your setting for POSTORIUS_TEMPLATE_BASE_URL and if you prepend that to /mailman3/api/templates/list/hirlevel.lista.autistaktol.hu/list:user:notice:rejected, can you get the resultant URL?
In both cases, the messages are shunted and you can see them, particularly the first one with
mailman qfile /opt/mailman/mm/var/queue/shunt/1774486082.6627975+afc236d96580c03921fa8a6f172f4a81eb2d20f6.pck
I have so many questions...
1. What is it about the ASCII encoding? "ordinal not in range(128)"? What do we even do with ASCII in 2026? I tried to send a message that only contains ASCII characters, but the result was the same, so it's probably not in the e-mail contents.
It's in the template. There are reasons, mostly historical but also practical why the default character set for English is ascii. Also see <https://gitlab.com/mailman/mailman/-/work_items/1268>.
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan