[IM] Fixes and improvements for mailbox sizes