I think the thing you're looking for is 'vpopmaild'. You can set it up to listen on a port on the server with the user dirs, then use simple php/perl/whatever scripts to connect to it with postmaster account and add/delete/modify users.
Check the list archives for more information about options. Best Regards, Kiril.
Description: OpenPGP digital signature