views:

52

answers:

0

I am having huge headaches trying to connect to an Exchange 2007 server (which supports IMAP) using the imap_open PHP function. The server uses STARTTLS encryption. This is what my credentials look like:

1) The email account is [email protected]

2) The DOMAIN/USERNAME/ALIAS information are FOO/RRR/ga.bar

3) The password is boo

4) The server is exchange.foo.edu

I have been attempting every switch combination that I can think of with calls that look like:

$mbox = imap_open("{exchange.foo.edu:143/imap/tls/novalidate-cert}Inbox", "FOO/RRR/ga.bar", "boo");

I initially was getting errors with Kerberos because of the bug in Exchange 2007 Kerberos credentials, I already recompiled my PHP Imap extension to not use Kerberos. Now I get errors saying that the username is not found or password is bad. This despite the fact that I am able to login using this username and password through Thuderbird without problems.

Any help would be tremendously appreciated, I'm completely stumped.

Thanks,