One thing I'd like to do is move the #SRS portion of the mail stuff into #rspamd. rspamd can trivially rewrite the envelope from as a #milter. I just hardcoded bounces@server as a test, and that worked fine; so the question is how much work implementing SRS itself will be in #Lua.
This would avoid the need for #postsrsd and #postforward.