Re:Ask HN: Why XMPP failed and SMTP didn't?
by zokier on Thursday May 26, 2022 @12:40PM
(#31520476)
XMPP has explicit support for "transports"/"gateways" for that purpose, so you could plug in AIM/ICQ/whatev support into your XMPP server. See https://spectrum.im/documentation/about.html for example.
IRC has bitlbee (and probably others) to fulfill that role https://www.bitlbee.org/main.php/news.r.html
Matrix has "bridges" to interop with other protocols https://matrix.org/bridges/