If you would not mind spending time using something else
(not perl; gasp), you might enjoy what you see from the
IMP
project. They have a fairly complete, solid, and free web mail system
that scales nicely. I believe that it meets most
of your requirements.