-
Notifications
You must be signed in to change notification settings - Fork 3k
Exchange Server with Nginx Proxy Manager #2037
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Are there any Updates on this issue? @jc21 |
I got nothing back from anyone... Nobody seems to know how to implement it. I gave up and went back to Microsoft Web Application Proxy |
I tried adding the below in the NPM advanced tab, and also for each of the locations you mentioned above.
However when I go to https://exchange-server.mydomain.com/owa I get an error 'HTTP Error 400. The request has an invalid header name.' I connected to the container and went to the logs in /data/logs but I can't see which header its complaining about. However if you took out the line Well!!! Works to a point.
What I can't get working is outlook from outside on the Internet when the Exchange IIS server only has "Windows Auth" enabled. If I enable "Basic Auth" it gets a bit further but still doesn't works. I can see it does the autodiscover stuff ok and then redirects to https://exchange-server.mydomain.com/mapi and asks for a username and password. I tried domain\username and [email protected] and neither work. I am missing something for passing the correct type of authentication, but what??? Any ideas? Has anyone got MS Exchange working behind a NPM for OWA, ActiveSync and Outlook? |
You for so much further than I ever did! I'm intrigued as to what else gets in the way of allowing this. I believe the mechanism that needs to function is "Forms Authentication", but not sure what that needs from an http reverse proxy perspective. Wish MS had more info, I don't think they'll ever consider this a "supported" configuration so I can't ask. Only other thing I can think of is running Wireshark from my existing Web Application Proxy and doing some pakcey captures |
@azaloum90 I think I got all the stuff working for HTTP GET requests and stuff requiring Basic Auth. What I can't get working is the NTLM auth on /autodiscover and /mapi I am either missing something in the NPM settings or its just not possible to proxy NTLM auth. Something in the back of my mind is thinking this isn't possible because technically NPM is acting as "a man in the middle". IDK. |
It's definitely possible because MAPI authentication works fine with Microsoft Web Application Proxy (that's actually a Microsoft-supported configuration, though you are supposed to pass it through ADFS for authentication which I do not). Brings me back to "what's missing in the packets", so I think I'd have to look at the packets traversing: From Microsoft Web App Proxy And then compare that with packets traversing: From NPM Unfortunately my NPM setup has been turned off for over a year now, but I suppose I could grab some packet captures from my Web App Proxy to Exchange servers and then compare with yours? |
Hi, |
Hey, could you by chance show me some screenshots of how you have the configuration entered into NPM? The entry points are rather confusing and I am curious as to what your configuration is. |
@azaloum90 |
Hey, I'm aware of that piece, I'm just curious how you have the rest of the configuration entered into NPM? |
@azaloum90 Look at magic lines
|
Thanks for this. How many entries for your mail server? just a mail.domain.com entry? |
Thanks for this. Could you tell me how to perform this configuration in the Nginx proxy manager interface? How and in which tab should this be specified? |
I am wondering the same... @ilya-maltsev if you know please let us know. |
Given this info, is it safe to assume that the info should go into this screenshot? |
Thank you. Do I understand correctly that I have to create map $status $forceBasicOutlook{ #magic_line and
|
Would you be able to post your entire configuration, as well as perhaps with screenshots as to where these configurations are entered (obviously with domain names redacted)? Though your info was helpful, I am unable to make this work with a variety of configurations -- NPM is reporting that my host is offline, likely due to the configuration being mis-scripted. Any help is greatly appreciated! Adam |
@azaloum90
Unfortunately I can't show my config files of nginx... |
Useless discussion.... |
Issue is now considered stale. If you want to keep it open, please comment 👍 |
I have some settings that will supposedly work, but I am unsure how to enter these into NPM. Any ideas?
http://blog.manton.im/2016/04/configure-nginx-with-exchange-2010-2013.html
The text was updated successfully, but these errors were encountered: