Knowledgebase

Link to MS Exchange

Posted by KeithJasper, 01-16-2013, 07:22 AM
Ok, Not quite why I joined, but this seems a good place to ask. I would like to link my hosting control panel to Microsoft Exchange. We do not use any of the OOB (Out Of Box) Billing control panels as it does not provide our customers with the level of flexibility that we like to provide, so its a completely from the ground up job. I am unable to find a way to communicate with MS Exchange via PHP, however I am unsure if Telnet can serve a purpose, or would I need an ASP(x) script on the Exchange AD to do the work and return results. Ideally I would like everything in PHP, perhaps someone can point me in the right direction.

Posted by ACTCS, 01-16-2013, 10:26 AM
What function would you like to link to exchange? (I guess I'm asking, what is the desired outcome?) We'd also likely need to know what control panel you're using, and possibly which version of exchange. If you're simply looking for an SSO or LDAP enabled account generation, this is fairly trivial.

Posted by KeithJasper, 01-16-2013, 10:33 AM
Good Questions.... I should have provided this information. I have Exchange 2010 on Windows Server 2008 R2 Ideally, be able to manipulate email accounts. Add email aliases, reset passwords, create new accounts, get mailbox statistics. All on the fly. Control panel is custom made in PHP so flexibility is not a problem. Not too worried about SSO as its mainly administrative tasks im interested in.

Posted by ACTCS, 01-16-2013, 11:00 AM
Ok, have you looked at the Exchange Server Web Services SDK? I've not personally used it, but our email admin has extensively used it to tie our SSO/LDAP management into exchange for account generation and management. http://msdn.microsoft.com/en-us/libr...xchg.140).aspx

Posted by KeithJasper, 01-16-2013, 11:17 AM
Umm... looks good for many tasks... however http://social.technet.microsoft.com/...f-9b3c6a94a16e Suggests that new mailbox functionality is not an option at present, so looks like I am going to need to make a C# or PHP/CLI proxy on the exchange network to create mailboxes.

Posted by ACTCS, 01-16-2013, 11:39 AM
You'd very likely have to do that anyway. Personally I prefer python, but cgi works just as well. Instead of invoking terminal or command, you'd want to call powershell functions to accomplish what you'd like to do. Given that it's a secure environment, you shouldn't need to do too much form validation, just pass your variables from your web interface to pre-defined powershell functions to accomplish the functionality you're looking for. I'm fairly particular this is how the web administration for exchange 2013 works. Someone familiar with PS/EMS and PHP should be able to whip up some basic functions pretty quickly. Add email address Remove email address Set Password Check out this technet link for an explanation of powershell user/mailbox creation: http://technet.microsoft.com/en-us/l.../aa997663.aspx You could fairly easily pass variables to these from a php form. Last edited by ACTCS; 01-16-2013 at 11:40 AM. Reason: Add link to new-mailbox creation

Posted by KeithJasper, 01-16-2013, 05:12 PM
Thanks ACTCS I think that may be the answer, I can use CGI built-in to IIS on one of the Mailbox Servers to create my automation scripts.



Was this answer helpful?

Add to Favourites Add to Favourites

Print this Article Print this Article

Also Read
Move to a dedi (Views: 594)
Short and sweet (Views: 545)


Language:

Client Login

Email

Password

Remember Me

Search