Server currently has no limit to the number of archived messages, the only limitation is storing messages that are not older than 31 days*. Functionality is disabled by default, you must use compatible instant messenger to turn it on.
* – Restriction disabled until further notice