Hi,

I would like to create new mail user acount from a web page in PHP.
I'm using cyrus + pam ldap, with lmtp transfert with postfix.

Here are some solutions :

-creating a script file from php, and passing it to cyradm

-passing infos from php to cyradm (possible ??)

-using Cyrus::IMAP::Admin or Shell from php ???

-creating the new imap account directly from php, whith IMAP functions. 
This solution is the best... but is it possible, and how ?
using imap_open with user "cyrus" to act as an admin, and then do a 
imap_createmailbox 'user.foo' to create the foo mailbox  (as there is an 
existing foo user in ldap, but hat is another problem).

Hope you'll be able to help me. maybe something already exists ?

Prune

Reply via email to