On Apr 23, 2017, at 10:33 PM, David Krantz wrote:
I found out that I had a broken email in one of my held messages queues). That gave a HTTP 500 error although that should be fixed . After some digging I found out that where the error occured.
I'd suggest adding a catch for AttributeError similar to the one for KeyError in _HeldMessageBase in rest/post_moderation.py. It solved my immediate problem at least. I run the version from git with the tag 263711b3b7988c7c474e3b8952dc7e0f02f04fa2
Can you file a bug and attach either the problematic message or the traceback?
The message causing this was probably one where I had sent a minimal email via telnet to the SMTP port and forgot the MessageID-header or something similarily silly. But it prevented me from seeing the held messages-list in postorius.
Did you talk to your MTA's SMTP port, to Mailman's LMTP port, or some other process? It matters because LMTP is the way messages get from the upstream SMTP daemon (e.g. Postfix, Exim) into Mailman, and the LMTP server rejects any messages that don't have a Message-ID.
I have another question: In the old mailman you could add accepted senders without adding them to the list. Is that possible in Mailman 3/Postorius?
You do this by creating a "nonmember" subscription for the sender, and then setting that member's moderation_action to Action.accept.
Cheers, -Barry