Upon the upgrade from debian bookworm to debian trixie I got the same error.
I hint in this conversation helped me out: https://groups.google.com/g/linux.debian.bugs.dist/c/QC1jyq6evvQ Delete the line # EMAILNAME = 'localhost' from /etc/mailman3/mailman-web.py before upgrading.
pgpSAjM1afVk1.pgp
Description: Digitale Signatur von OpenPGP

