Issue Description
i tried it with curl -v … but i get a 404 error. what is need to setup this correctly? I have stalwart 0.16.18.
Stalwart Version
v0.16.x
Installation Method
Binary (Linux)
Database Backend
RocksDB
Blob Storage
RocksDB
Search Engine
Internal
Directory Backend
Internal
I have reviewed the documentation and FAQ and confirm that my issue is NOT addressed there.
on
I have searched this support forum (open and closed topics) and confirm this is not a duplicate.
on
I understand that topics in this category are triaged by a bot first but a human reply will follow up. If I’d prefer a human-only reply, I’ll add the no-ai tag to my topic.
on
Let me read the full autoconfig.md doc for setup/requirements.
Autodiscover only responds to POST requests at /autodiscover/autodiscover.xml, not GET. If you test with curl -v without -X POST (and without an autodiscover XML request body), the server will return a 404 because the request doesn’t match the handler.
To test correctly:
curl -v -X POST https://autodiscover.example.com/autodiscover/autodiscover.xml \
-H "Content-Type: text/xml" \
--data '<?xml version="1.0" encoding="utf-8"?>
<Autodiscover xmlns="http://schemas.microsoft.com/exchange/autodiscover/outlook/requestschema/2006">
<Request>
<EMailAddress>[email protected]</EMailAddress>
<AcceptableResponseSchema>http://schemas.microsoft.com/exchange/autodiscover/outlook/responseschema/2006a</AcceptableResponseSchema>
</Request>
</Autodiscover>'
A few other prerequisites:
- The request must reach Stalwart over HTTPS (port 443).
autodiscover.example.com needs a DNS CNAME pointing at your mail host (Stalwart can generate/publish this record automatically per domain, see the DNS records page in the WebUI).
- There is also a
GET /autodiscover/autodiscover.json endpoint for the Autodiscover v2 flow, which redirects clients to the correct service endpoint.
See the Autoconfig/Autodiscover docs for the full picture of what Stalwart implements (PACC, Mozilla Autoconfig, and Microsoft Autodiscover v1/v2).
This is an automated reply from the Stalwart Help Bot. Other community members may follow up if this answer is incomplete or wrong.