rseichter / automx2

Mail User Agent (email client) configuration made easy
GNU General Public License v3.0
61 stars 19 forks source link

Documentation Tests #17

Closed Hermann99 closed 7 months ago

Hermann99 commented 1 year ago

Hi

In section 10 of the documentation, Can you please provide a method to test autodiscovery. https://127.0.0.1/autodiscover/autodiscover.xml

Thank you H

rseichter commented 1 year ago

I don't understand your request. The test, and expected output, are right there.

Hermann99 commented 1 year ago

(https://rseichter.github.io/automx2/#localtest only show the test for autoconfig. curl 'http://127.0.0.1:4243/mail/config-v1.1.xml?emailaddress=user@example.com'

Autodiscover https://127.0.0.1/autodiscover/autodiscover.xml require a different test since running it gives a method error and require different post variables or format.

curl https://127.0.0.1/autodiscover/autodiscover.xml

<!doctype html>

405 Method Not Allowed

Method Not Allowed

The method is not allowed for the requested URL.

# curl -X post https://127.0.0.1/autodiscover/autodiscover.xml 400 Bad Request

400 Bad Request


nginx/1.20.1
# curl -X post https://127.0.0.1/autodiscover/autodiscover.xml?emailaddress=user@example.com 400 Bad Request

400 Bad Request


nginx/1.20.1
rseichter commented 1 year ago

Ah, I see. The test shown in the documentation is meant to verify that automx2 is running, and returning reasonable data for one of the service endpoints. It is not meant as an exhaustive test suite, like what I used during development. That would require a lot more work for both me and the end user, work which I don't think is worth the effort. I run tests on my end, after all. For end users, it is simpler to rely on their respective MUAs.