I was currently given a project of creating an internal email server with a web-based interface for the users. I started off by looking for a web-based server and SquirrelMail seems to be the best. However, I am trying to find a PHP-based IMAP server so that I can write custom scripts for the server. The main script I want to be able to run is a notification email sent to someones primary email address informing them that they have mail waiting in this internal system.
Any suggestions would be greatly appreciated. I am currently running PHP and Apache on a Debian box.