On 11/12/21 6:06 AM, Rainer Herbst wrote:
Dear all,
after upgrading his Mac to MacOS 12.0.1 Monterey, one of our users can not send send signed messages to lists using Apple Mail v. 15.0 (3693.20.0.1.32).
mailman3 denys the delivery of the mail with error message: host 172.19.0.4[172.19.0.4] said: 501 Message has defects (in reply to end of DATA command)
I.e. mailman does not process the message, but rejects it already in the incoming smtp session. Is that a known issue?
Incoming SMTP is relaying the message via LMTP to Mailman's LMTP runner which in turn parses the message using Python's email.message_from_bytes() method and the resultant message has defects.
Rejecting such a message outright as we do may be too harsh, but it is hard to say without seeing the message and what Python's email package thinks the defects are.
This could be a bug in Apple Mail or in the Python email module.
If you wish to see the details, you could do the following in mailman shell
import email
from mailman.email.message import Message
content = b"""\
(paste the raw message here)
"""
msg = email.message_from_bytes(content, Message)
msg.defects
This will show you what the defects are.
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan