Adpation @Mail webmail Multi-user

We have CRM and Workflow in php. In this system we use a squirrelmail as webmail. In the system all the users have an email example . the user has access to the webmail at any time, only click in an image. this inside of a form is image input with some hidden as:

post for [url removed, login to view] in squirrlemail. that is what knot we have today, also this soon and functioning one another resource to bind to the email to the customer in the data base mysql

################New Project############################

Now we want to adapt a called webmail @Mail developed for Atmail [url removed, login to view] in Perl.

it wants to make with that @Mail it has same the functions of the old squirrelmail as: direct access saw image input, and to connect email to the customers of the data base