PHP Cyradm extension - Re: Add mailbox automatically

Scott Russell lnxgeek at us.ibm.com
Wed Jan 1 19:46:25 EST 2003


On Wed, Jan 01, 2003 at 06:27:49PM -0500, Kervin L. Pierre wrote:
> 
> Thanks. I didn't know you could do that.
> 
> BTW, I browsed the PHP manual for more IMAP stuff and came across a 
> Cyradm extension http://www.php.net/manual/en/ref.cyrus.php .
> 
> It is undocumented.  Has anyone used this extension with success??

I googled for the docs once and found them. But I've always had the
worst troubles getting that PHP extension to compile. The stock PHP
IMAP stuff has always worked well enough for me.

We use php imap_* functions to handle various bits such as creating
accounts, deleting accounts, and setting account quotas. 

One word of caution. I hit a very wonky SASL reentrant bug with Red Hat
7.3. Basically because the apache server loaded an mod_ldap module and
the openldap libs had been compiled with SASLv1 support some IMAP
login mechs with the php imap_* commands would end up doing a core
dump on the apache server.

The solution for me was to rebuild the Red Hat openldap packages
without SASL support, not load any apache mod_ldap modules, and then
rebuild the Red Hat php SRPM against the previously rebuilt openldap
package. It was most odd tracking this one down.

-- 
  Scott Russell (lnxgeek at us.ibm.com)
  Linux Technology Center, System Admin, RHCE.
  Dial 877-735-8200 then ask for 919-543-9289 (TTY)




More information about the Info-cyrus mailing list