On 3/9/21 1:59 AM, Per Jessen wrote:
All,
I am trying to figure why a particular outbound message was bounced, so I'm looking for the text of the NDR that was sent - where do I find that ?
Mailman 2.1 would include the NDR in the notice to the admins when delivery was disabled or bounce score's incremented if those notices were requested. Mailman 3 has no such capability. If you have access to the server, this patch ```
diff --git a/src/mailman/runners/lmtp.py b/src/mailman/runners/lmtp.py index 6a0bdcf5e..eca474089 100644 --- a/src/mailman/runners/lmtp.py +++ b/src/mailman/runners/lmtp.py @@ -217,6 +217,8 @@ class LMTPHandler: slog.debug('%s subaddress: %s, queue: %s', message_id, canonical_subaddress, queue) status.append('250 Ok') + if queue == 'bounces': + config.switchboards['bad'].enqueue(msg, msgdata) except Exception: slog.exception('Queue detection: %s', msg['message-id']) config.db.abort()
will add all received bounces as queue files to var/queue/bad/ where
they can be examined with `mailman qfile`.
--
Mark Sapiro <mark@msapiro.net> The highway is for gamblers,
San Francisco Bay Area, California better use your sense - B. Dylan