On Tue, 25 Apr 2023, at 11:01, Odhiambo Washington wrote:
On Tue, Apr 25, 2023 at 4:30 AM Mark London <mrl@psfc.mit.edu> wrote:
https://gist.github.com/Maeglin73/72eb5b1e4ee66a383c2aa454726be9a5 https://gitlab.com/mailman/mailman/-/issues/307#note_632495542 You will have your solution - or not.
I had to come up with a solution a year ago or so, and for reasons I unfortunately do not remember, suggestions from issue #307 did not work out for our sendmail.
I ended up writing a Python script which accepts a message at stdin and hands it over to Mailman's LMTP. As such, it works almost like an in-place replacement for the MM2 /etc/mail/smrsh/mailman. I copied my script to /etc/mail/smrsh/mailman3 and changed aliases from e.g.
mylist: "|mailman post mylist"
to
mylist: "|mailman3 post mylist"
for any list that I migrated (while keeping MM2 running for old ones).
I am not a programmer and I don't know Python. So, I won't share my script publicly for now, but it works for me, and anyone interested I am sure will find a way to contact me off-list. It's only my 2nd non-trivial Python script so far, so, no promises whatsoever ;)
-- -- Andreas
:-)