M. Ede via Mailman-users writes: > So I try to debug what happens and want to look at the mail going > from mailman to my MTA (mailcow) for delivery.
MTAs like Postfix and Exim4 provide hooks for filtering email. I'm sure mailcow does too. You could put a filter that looks for a specific header or envelope parameter, and saves that message to a file. Easiest is to install something like Mailhog, run it on port 8025, and send everything from Mailman to it for a few minutes. That would likely give you the cleanest post-Mailman file (I don't think Mailhog adds anything to the message, check the docs -- it might add a Received header). Note that once you have copied off the Mailhog messages to a directory where you can analyze, Mailhog can release them to your mailcow to be sent to the final destinations. > I found a mail in /opt/mailman/var/queue/out (for a short time), > but in this mail the List-Footer is missing. I believe that is the unprocessed message received via LMTP -- the only processing is adding the Received field from Mailman's LMTP processor. Mailman does not save the output of pipeline handlers to disk, instead passing the message from handler to handler as a Python object. If something goes wrong, it just starts the whole process again from the beginning with the queuefile in the out queue. Steve -- GNU Mailman consultant (installation, migration, customization) Sirius Open Source https://www.siriusopensource.com/ Software systems consulting in Europe, North America, and Japan _______________________________________________ Mailman-users mailing list -- mailman-users@mailman3.org To unsubscribe send an email to mailman-users-le...@mailman3.org https://lists.mailman3.org/mailman3/lists/mailman-users.mailman3.org/ Archived at: https://lists.mailman3.org/archives/list/mailman-users@mailman3.org/message/JHLJWJP2YLWVBGPAE7OETB755I6BJJ4M/ This message sent to arch...@mail-archive.com