MM4 is just SMTP, so postfix can receive those no problem. It can also run a program for each new inbound email, just like we do for cheogram-smtp. This program needs to parse the email and then hit sgx-bwmsgsv2 with a webhook as though from Bandwidth.
We’re basically re-implementing Bandwidth’s inbound MMS API here, but theirs has some show-stopping bugs they refuse to fix (such as ignoring Cc headers on group text from those who use them, such as Google Voice).
I did add inbound attachment code in cheogram-smtp as a start to this, so I think we want to have a mode over there to convert email to bandwidth API JSON or similar.
Based on my long and previous attempts at this without making any useful progress, I want to unassign myself from this and let someone else get it done.