POE::Component::Server::MSN
POE::Component::Server::MSN is a perl module that will allow you to run your very own MSN messenger server. It currently only supports older clients. I used my POE::Component::EasyDBI to interface this module with a MySQL/PostgreSQL? database.
I suggest using a jabber server intead of MSN anyway.