Mail server authentication

Hello people,

I’m new to Dreamhost (like 2 weeks with my account).

For one of my domains, I’m developing a system for the users. This system will be based in IMAP authentication for the users (so, with their email password they can access their webmail and other services available).

The first problem I’m having is the password changing option. I know today it’s possible to change it through… But I really want to offer user a personalized option for this.

Does anyone already made something or started making something in this “direction”? Or at least know how is the authentication method for Dreamhost email server configurated? I read DH uses Courier Mail Server, but have not found anything about user management, like, what database it uses, and how can access it.

Thanks in advance…