[Pkg-mailman-hackers] Mailman3 on python3.13 debian testing package

Thomas Krichel krichel at openlib.org
Thu Feb 13 07:12:39 GMT 2025


  Thomas Krichel writes

>   I have no use for that feature anyway. I have not seen a
>   configuration option to disable it. What I have done is
> 
> # diff /usr/lib/python3/dist-packages/mailman/utilities/modules.py~  /usr/lib/python3/dist-packages/mailman/utilities/modules.py
> 149a150,151
> >         if(module_name == 'mailman.commands.cli_gatenews'):
> >             continue
> 
>   Thanks to all and cheers!

  With this addition, the mailman daemon starts. But no mail is going
  through to the the lists. I have no idea as to why. Exim seems to
  forward it

025-02-13 06:49:50 1tiT2k-00000003bG6-2c0u SA: Debug: SAEximRunCond expand returned: 'true'
2025-02-13 06:49:50 1tiT2k-00000003bG6-2c0u SA: Debug: check succeeded, running spamc
2025-02-13 06:49:52 1tiT2k-00000003bG6-2c0u SA: Action: scanned but message isn't spam: score=-102.8 required=5.0 (scanned in 2/2 secs | Message-Id: Z62WDhA0-CmE1v1W at openlib.org). From <krichel at openlib.org> (host=helos.openlib.org [2a01:4f9:2b:276c::2]) for bibnez at folks.email
2025-02-13 06:49:52 1tiT2k-00000003bG6-2c0u <= krichel at openlib.org H=helos.openlib.org [2a01:4f9:2b:276c::2] P=esmtps X=TLS1.3:ECDHE_SECP256R1__RSA_PSS_RSAE_SHA256__AES_256_GCM:256 CV=no K S=2026 DKIM=openlib.org id=Z62WDhA0-CmE1v1W at openlib.org
2025-02-13 06:49:52 1tiT2k-00000003bG6-2c0u H=localhost [::1] Connection refused
2025-02-13 06:49:52 1tiT2k-00000003bG6-2c0u => bibnez at folks.email R=mailman3_router T=mailman3_transport H=localhost [127.0.0.1] C="250 Ok"
2025-02-13 06:49:52 1tiT2k-00000003bG6-2c0u Completed

  Looks all fine

  At that point /var/log/mailman3/mailman.log has 

Feb 13 06:49:53 2025 (857953) ACCEPT: <Z62WDhA0-CmE1v1W at openlib.org>
Feb 13 06:49:56 2025 (857956) HyperKitty failure on http://localhost/mailman3/hyperkitty/api/mai
lman/urls: <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>404 Not Found</title>
</head><body>
<h1>Not Found</h1>
<p>The requested URL was not found on this server.</p>
<hr>
<address>Apache/2.4.63 (Debian) Server at localhost Port 80</address>
</body></html>
 (404)
Feb 13 06:49:56 2025 (857956) HyperKitty failure on http://localhost/mailman3/hyperkitty/api/mai
lman/urls: <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>404 Not Found</title>
</head><body>
<h1>Not Found</h1>
<p>The requested URL was not found on this server.</p>
<hr>
<address>Apache/2.4.63 (Debian) Server at localhost Port 80</address>
</body></html>
 (404)
Feb 13 06:49:56 2025 (857955) HyperKitty failure on http://localhost/mailman3/hyperkitty/api/mai
lman/urls: <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>404 Not Found</title>
</head><body>
<h1>Not Found</h1>
<p>The requested URL was not found on this server.</p>
<hr>
<address>Apache/2.4.63 (Debian) Server at localhost Port 80</address>
</body></html>
 (404)

  I don't have hyperkitty set up, so this could be normal. Then


Feb 13 06:49:56 2025 (857955) Uncaught runner exception: 'pathlib._local.PosixPath' object does 
not support the context manager protocol
Feb 13 06:49:56 2025 (857955) Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/mailman/core/runner.py", line 179, in _one_iteration
    self._process_one_file(msg, msgdata)
    ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/mailman/core/runner.py", line 272, in _process_one_file
    keepqueued = self._dispose(mlist, msg, msgdata)
  File "/usr/lib/python3/dist-packages/mailman/runners/outgoing.py", line 111, in _dispose
    self._func(mlist, msg, msgdata)
    ~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/mailman/mta/deliver.py", line 89, in deliver
    refused = agent.deliver(mlist, msg, msgdata)
  File "/usr/lib/python3/dist-packages/mailman/mta/base.py", line 167, in deliver
    callback(mlist, message_copy, msgdata_copy)
    ~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/mailman/mta/decorating.py", line 32, in decorate
    decorator.process(mlist, msg, msgdata)
    ~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/mailman/handlers/decorate.py", line 250, in process
    process(mlist, msg, msgdata)
    ~~~~~~~^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/mailman/handlers/decorate.py", line 88, in process
    header = decorate('list:member:regular:header', mlist, d)
  File "/usr/lib/python3/dist-packages/mailman/handlers/decorate.py", line 212, in decorate
    template = getUtility(ITemplateLoader).get(name, mlist, **extradict)
  File "/usr/lib/python3/dist-packages/mailman/model/template.py", line 211, in get
    path, fp = find(default_uri, mlist, code)
               ~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/mailman/utilities/i18n.py", line 157, in find
    for search_path in raw_search_order:
                       ^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/mailman/utilities/i18n.py", line 117, in search
    templates_dir = str(resources.enter_context(
                        ~~~~~~~~~~~~~~~~~~~~~~~^
        files('mailman').joinpath('templates')))
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.13/contextlib.py", line 528, in enter_context
    raise TypeError(f"'{cls.__module__}.{cls.__qualname__}' object does "
                    f"not support the context manager protocol") from None
TypeError: 'pathlib._local.PosixPath' object does not support the context manager protocol
Feb 13 06:49:56 2025 (857955) SHUNTING: 1739429396.7636604+dba2fc372ce4c206e3bb753c1162bc3b768b7528
Feb 13 06:49:56 2025 (857955) SHUNTING: 1739429396.7636604+dba2fc372ce4c206e3bb753c1162bc3b768b7528

  Then there are repeated messages that hyperkitty can't archive the
  message. Lots of them.

  No email reaches the list. I did not notice, but now the listowner
  has written to me.


-- 
  Written by Thomas Krichel http://openlib.org/home/krichel on his 21804th day.



More information about the Pkg-mailman-hackers mailing list