You could consider using something like jmp.chat. It delivers SMS via XMPP (aka jabber), so you could self-host a XMPP server and receive SMS that way. It also has some support for MMS (group chat, media), but my experience with it was mixed (I used it for about 3-4 years).