On 10/25/24 08:06, jgn1980--- via Mailman-users wrote:
Hi
I'm using GNU Mailman 3.3.8 (Tom Sawyer) on debian 12, and I have this issue on a scheduled e-mail, every day:
2024-10-25T04:00:04.874081+01:00 XXXXXXX postfix/lmtp[29258]: CEB32100F44: to=<XXX@XXX.XX>, relay=localhost[127.0.0.1]:8024, delay=0.02, delays=0.01/0/0.01/0.01, dsn=5.0.0, status=bounced (host localhost[127.0.0.1] said: 501 Message has defects (in reply to end of DATA command))
Mailman's LMTP runner is parsing the incoming message and it has
defects. To see what the defects are, put the raw message in a file and
do the following in mailman shell
$ mailman shell
Welcome to the GNU Mailman shell
Use commit() to commit changes.
Use abort() to discard changes since the last commit.
Exit with ctrl+D does an implicit commit() but exit() does not.
>>> import email
>>> from mailman.email.message import Message
>>> msg = email.message_from_binary_file(open('test.eml', 'rb'), Message)
>>> msg.defects
This should display the defects. Once you know what the defects are, you may be able to adjust the process that produces the scheduled email to create a message without defects.
Also see https://gitlab.com/mailman/mailman/-/issues/351 which we should fix to report and/or log the defects.
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan