Forum Moderators: coopster
Any help would be useful. Not necessarily looking for the code, but atleast to pointed in the right direction, I could finish it myself.
I hope you guys know what I mean! If not I'll try to explain again.
Thanks.
Have you had a chance to read through the IMAP, POP3 and NNTP Functions [php.net] in the PHP manual? Don't forget to browse the user contributed notes as well.
You can create system accounts, but you'll have to create a script that runs as root to do so. You wouldn't want your web-server running as root. In the past, I've done this by creating a PHP script that writes the newuser data to a textfile, and a cron job that runs every 60 seconds reads this data and creates the user account. This puts a delay of up to 60 seconds into creating the account, but that's not usually that big of a deal.
Another possibility is to use OpenLDAP to create the accounts, and have your IMAP/POP3 scripts authenticate against that for their data. You can add data into an LDAP directory without being the system root user, and you have much more scalability in creating accounts, because they don't have to be system users. AFAIK, PHP has decent LDAP functionality.. check out phpLDAPadmin.
However, if you've never installed OpenLDAP before, it might be a challenge to configure.