-
-
Notifications
You must be signed in to change notification settings - Fork 143
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
autodiscover/autoconfig errors and tunnings #223
Comments
Found this with nginx debug. Something generate a With navigator (tried with Safari, Firefox and Chrome):
With automx-test:
With https://www.mailenable.com/Tools/AutoDiscover/validate.asp.
|
More test.
Still trying to have the right POST in my RestClient but autodiscover works with Windows. PR #224 |
I'm running into a similar issue, currently researching. |
@stefaweb @nickdbush Any news about this issue? Unfortunately, I don't have any mac device to reproduce it... |
Issue #253 should interest you guys. |
Hi, any progress? |
automx is not installed after auto installer is used. Tested today with ubuntu 18.04 Maybe you should replace automx by z-push available on z-push.org Maybe modoboa will rock again if you do so |
automx was installed with everything else for me ok (1.14, RasPi Stretch), but only autoconfigure.example.com returns data to requests while a GET request for autodiscover.example.com returns a 500 internal server error. Running the test from https://testconnectivity.microsoft.com/ returns a positive result when choosing the 'Outlook Autodiscover' option after making some changes to the setup, namely;
|
've been tinkering with autodiscover, and it wasn't working. I reviewed the code in automx_wsgi.py, located in /srv/automx/instance, and made some changes that only affect autodiscover. Now it works perfectly, but I'm not sure if this issue has already been resolved. description of the issue: When processing Autodiscover requests using automx, the application encounters an error related to the handling of Unicode strings that contain an XML encoding declaration (). The error occurs when attempting to parse the XML request body in automx_wsgi.py, leading to a failure in handling autodiscover requests. Traceback (most recent call last): Steps to reproduce:
Root cause: The issue arises because lxml expects bytes input when handling XML documents that contain an encoding declaration (e.g., ). The current code in automx_wsgi.py uses StringIO and attempts to process the request body as a Unicode string, which causes the ValueError. In the file automx_wsgi.py, around line 126, the following code is used to handle the parsing of the XML: python fd = StringIO(request_body.decode("utf-8").replace('', '')) This code attempts to decode the request body as a Unicode string, which is incompatible with the XML encoding declaration. To fix the issue, the request body should be handled as bytes, and BytesIO should be used instead of StringIO when parsing the XML. The updated code would look like this: python from io import BytesIO Ensure request_body is treated as bytes and do not decode itfd = BytesIO(request_body) This modification ensures that lxml receives the correct bytes input for XML documents with encoding declarations.
|
Hello!
I tried to summarize infos and problems with autodiscover/autoconfig features.
Modoboa server is installed with Modoboa-installer on Debian Stretch.
In DNS, I have:
At output, autodiscover is not working from outside request.
If I run this command on the server
/srv/automx/env/bin/automx-test [email protected]
, its working for autoconfig and autodiscover.But in direct from the navigator with
https://autodiscover.domain.tld/autodiscover/autodiscover.xml
, I got an 500 error.mail.domain.tld [pid: 17026|app: 0|req: 12/13] 82.67.159.142 () {44 vars in 860 bytes} [Fri Jun 29 12:05:25 2018] GET /autodiscover/autodiscover.xml => generated 0 bytes in 2 msecs (HTTP/2.0 500) 2 headers in 82 bytes (1 switches on core 0)
autoconfig is working fine.
http://autoconfig.domain.tld/mail/[email protected]
works fine with automx-test and with a navigator.Two issues seems related: #151, #174
More on this.
Working session with automx-test:
Crashed session with direct call from navigator:
I made these modfications to nginx vhosts:
In /etc/nginx/sites-available/autoconfig.domain.tld.conf add this block:
In /etc/nginx/sites-available/maildomain.tld.conf change:
location /autodiscover/autodiscover.xml {
with (take care of lower/upper case in URL):
location ~* ^/autodiscover/autodiscover.xml
Result.
If you use these tools, it works:
https://testconnectivity.microsoft.com (click on Outlook Autodiscover)
https://www.mailenable.com/Tools/AutoDiscover/validate.asp
If I try direct with a navigator, it doesn't work.
Currently, autodiscover doesn't work with Outlook Mac, Apple Mail and iPhone Mail as direct call using https produce a 500 error.
The text was updated successfully, but these errors were encountered: