<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
</head>
<body>
<p>Hello,</p>
<p>System: CentOS 8 (selinux disabled for now)<br>
</p>
<p>While I appreciate the work that's obviously gone into Automx2,
I've had a difficult time reaping the benefits. I'm
wondering...does anyone know what versions of Outlook are supposed
work with Automx2? I am mostly stuck with
"testconnectivity.microsoft.com", which as others have said, sends
requests to "/Autodiscover/Autodiscover.xml'. It's trivial to
redirect/return/rewrite with NGINX, but no matter how it's done,
there are apparently problems with the POST-ed xml that's passed
through any kind of redirect.<br>
<br>
My current conf snippet (I know "IF is evil", but once i find
something that works, I'll work on security!):</p>
<p><code> ...<br>
</code></p>
<p><code> ## Rewrite URI if the path contains uppercase
characters.<br>
## (Uses perl module & function defined in
nginx.conf):<br>
location ~ [A-Z] {<br>
if ($request_method = POST ) {<br>
return 307 $scheme://$host$uri_lowercase;<br>
}<br>
if ($request_method = GET ) {<br>
return 301 $scheme://$host$uri_lowercase;<br>
}<br>
}</code></p>
<p><code> ...</code></p>
<p>The bigger problem is that whenever a request comes from Outlook
(we just now tried 2016), or generated by a cURL call to Microsoft
api
(<a class="moz-txt-link-rfc2396E" href="https://prod-global-autodetect.acompli.net/autodetect/detect?...">"https://prod-global-autodetect.acompli.net/autodetect/detect?..."</a>),
it's getting a '400'. (No caps in these requests, so unaffected by
the above issue) If I submit a cURL request directly, it works
perfectly (caps or lc), but no actual MS products seem to get it!</p>
<p>I have also used 'automx2_discover' for testing, with the same
result. Works fine (returns MS & Mozilla configs , haven't
tried Apple), but...?</p>
<p>Here are a few log lines from flask.sh on a failed attempt
(automx2 runs as a systemd unit):</p>
<p><code>.............<br>
Sep 22 15:06:27 mail.obfuscate.com flask.sh[20797]: 52.125.136.0
- - [22/Sep/2020 15:06:27] "GET
/autodiscover/autodiscover.json?Email=tim%40obfuscate.net&Protocol=ActiveSync&RedirectCount=1
HTTP/1.0" 404 -<br>
Sep 22 15:06:27 mail.obfuscate.com flask.sh[20797]: Missing
request argument "EMailAddress"<br>
Sep 22 15:06:27 mail.obfuscate.com flask.sh[20797]: 52.125.136.0
- - [22/Sep/2020 15:06:27] "POST /autodiscover/autodiscover.xml
HTTP/1.0" 400 -<br>
.............<br>
</code><br>
It seems to be much the same problem described previously <a
href="https://mail.sys4.de/pipermail/automx-users/2020-April/000239.html"
moz-do-not-send="true">here</a> by Eric Duval. Seems he solved
it, but unfortunately shared no details. What can I try, or what
other info might be helpful?<code><br>
</code></p>
</body>
</html>