1

Topic: autodiscover.php - Error

==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version (check /etc/iredmail-release): 2019090601 (Backend: mariadb, Date: 2019-10-07 11:50:50) iRedMail Easy: https://www.iredmail.org/easy.html
- Deployed with iRedMail Easy or the downloadable installer? iRedMail Easy
- Linux/BSD distribution name and version: CentOS Linux release 7.7.1908 (Core)
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MySQL
- Web server (Apache or Nginx): Nginx
- Manage mail accounts with iRedAdmin-Pro? No
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
====

Hi,

i've just try to install a new server with iRedMail Easy recently.
I found there is a problem with autodiscover.php from nginx error.log :
I post here below a cut/paste about last logs from error.log :

2019/10/08 11:43:27 [error] 7642#7642: *68 open() "/var/www/html/admin/assets/js/views/login.js" failed (2: No such file or directory), client: 77.247.108.77, server: _, request: "GET /admin/assets/js/views/login.js HTTP/1.1", host: "144.91.78.95"
2019/10/08 12:10:14 [error] 7642#7642: *140 open() "/opt/www/autoconfig/autodiscover/autodiscover.json" failed (2: No such file or directory), client: 15.203.178.46, server: autoconfig.*, request: "GET /autodiscover/autodiscover.json?Email=matteo.magri%40sempai.it&Protocol=ActiveSync&RedirectCount=1 HTTP/1.1", host: "autodiscover.sempai.it"
2019/10/08 13:11:07 [error] 7642#7642: *252 directory index of "/opt/www/autoconfig/" is forbidden, client: 195.154.61.206, server: autoconfig.*, request: "GET / HTTP/1.1", host: "autodiscover.sempai.it"
2019/10/08 13:11:22 [error] 7642#7642: *251 directory index of "/opt/www/autoconfig/" is forbidden, client: 62.4.14.206, server: autoconfig.*, request: "GET / HTTP/1.1", host: "autodiscover.sempai.it"
2019/10/08 13:12:12 [error] 7642#7642: *267 FastCGI sent in stderr: "PHP message: PHP Notice:  Undefined offset: 1 in /opt/www/autoconfig/autodiscover.php on line 28PHP message: PHP Notice:  Undefined offset: 1 in /opt/www/autoconfig/autodiscover.php on line 29PHP message: PHP Notice:  Undefined offset: 1 in /opt/www/autoconfig/autodiscover.php on line 137PHP message: PHP Notice:  Undefined offset: 1 in /opt/www/autoconfig/autodiscover.php on line 156PHP message: PHP Notice:  Undefined offset: 1 in /opt/www/autoconfig/autodiscover.php on line 156PHP message: PHP Notice:  Undefined offset: 1 in /opt/www/autoconfig/autodiscover.php on line 195" while reading response header from upstream, client: 40.85.91.8, server: _, request: "POST /Autodiscover/Autodiscover.xml HTTP/1.1", upstream: "fastcgi://127.0.0.1:9001", host: "magri.email"
2019/10/08 13:12:13 [error] 7642#7642: *273 FastCGI sent in stderr: "PHP message: PHP Notice:  Undefined offset: 1 in /opt/www/autoconfig/autodiscover.php on line 28PHP message: PHP Notice:  Undefined offset: 1 in /opt/www/autoconfig/autodiscover.php on line 29PHP message: PHP Notice:  Undefined offset: 1 in /opt/www/autoconfig/autodiscover.php on line 137PHP message: PHP Notice:  Undefined offset: 1 in /opt/www/autoconfig/autodiscover.php on line 156PHP message: PHP Notice:  Undefined offset: 1 in /opt/www/autoconfig/autodiscover.php on line 156PHP message: PHP Notice:  Undefined offset: 1 in /opt/www/autoconfig/autodiscover.php on line 195" while reading response header from upstream, client: 40.85.91.8, server: autoconfig.*, request: "POST /Autodiscover/Autodiscover.xml HTTP/1.1", upstream: "fastcgi://127.0.0.1:9001", host: "autodiscover.magri.email"
2019/10/08 13:12:13 [error] 7642#7642: *280 FastCGI sent in stderr: "PHP message: PHP Notice:  Undefined offset: 1 in /opt/www/autoconfig/autodiscover.php on line 28PHP message: PHP Notice:  Undefined offset: 1 in /opt/www/autoconfig/autodiscover.php on line 29PHP message: PHP Notice:  Undefined offset: 1 in /opt/www/autoconfig/autodiscover.php on line 137PHP message: PHP Notice:  Undefined offset: 1 in /opt/www/autoconfig/autodiscover.php on line 156PHP message: PHP Notice:  Undefined offset: 1 in /opt/www/autoconfig/autodiscover.php on line 156PHP message: PHP Notice:  Undefined offset: 1 in /opt/www/autoconfig/autodiscover.php on line 195" while reading response header from upstream, client: 40.85.91.8, server: autoconfig.*, request: "GET /Autodiscover/Autodiscover.xml HTTP/1.1", upstream: "fastcgi://127.0.0.1:9001", host: "autodiscover.magri.email"
2019/10/08 13:12:13 [error] 7642#7642: *284 FastCGI sent in stderr: "PHP message: PHP Notice:  Undefined offset: 1 in /opt/www/autoconfig/autodiscover.php on line 28PHP message: PHP Notice:  Undefined offset: 1 in /opt/www/autoconfig/autodiscover.php on line 29PHP message: PHP Notice:  Undefined offset: 1 in /opt/www/autoconfig/autodiscover.php on line 137PHP message: PHP Notice:  Undefined offset: 1 in /opt/www/autoconfig/autodiscover.php on line 156PHP message: PHP Notice:  Undefined offset: 1 in /opt/www/autoconfig/autodiscover.php on line 156PHP message: PHP Notice:  Undefined offset: 1 in /opt/www/autoconfig/autodiscover.php on line 195" while reading response header from upstream, client: 40.85.91.8, server: autoconfig.*, request: "POST /Autodiscover/Autodiscover.xml HTTP/1.1", upstream: "fastcgi://127.0.0.1:9001", host: "autodiscover.magri.email"
2019/10/08 13:30:04 [error] 7642#7642: *332 FastCGI sent in stderr: "PHP message: PHP Notice:  Undefined offset: 1 in /opt/www/autoconfig/autodiscover.php on line 28PHP message: PHP Notice:  Undefined offset: 1 in /opt/www/autoconfig/autodiscover.php on line 29PHP message: PHP Notice:  Undefined offset: 1 in /opt/www/autoconfig/autodiscover.php on line 137PHP message: PHP Notice:  Undefined offset: 1 in /opt/www/autoconfig/autodiscover.php on line 156PHP message: PHP Notice:  Undefined offset: 1 in /opt/www/autoconfig/autodiscover.php on line 156PHP message: PHP Notice:  Undefined offset: 1 in /opt/www/autoconfig/autodiscover.php on line 195" while reading response header from upstream, client: 40.69.150.142, server: _, request: "POST /Autodiscover/Autodiscover.xml HTTP/1.1", upstream: "fastcgi://127.0.0.1:9001", host: "magri.email"
2019/10/08 13:30:06 [error] 7642#7642: *338 FastCGI sent in stderr: "PHP message: PHP Notice:  Undefined offset: 1 in /opt/www/autoconfig/autodiscover.php on line 28PHP message: PHP Notice:  Undefined offset: 1 in /opt/www/autoconfig/autodiscover.php on line 29PHP message: PHP Notice:  Undefined offset: 1 in /opt/www/autoconfig/autodiscover.php on line 137PHP message: PHP Notice:  Undefined offset: 1 in /opt/www/autoconfig/autodiscover.php on line 156PHP message: PHP Notice:  Undefined offset: 1 in /opt/www/autoconfig/autodiscover.php on line 156PHP message: PHP Notice:  Undefined offset: 1 in /opt/www/autoconfig/autodiscover.php on line 195" while reading response header from upstream, client: 40.69.150.142, server: autoconfig.*, request: "POST /Autodiscover/Autodiscover.xml HTTP/1.1", upstream: "fastcgi://127.0.0.1:9001", host: "autodiscover.magri.email"
2019/10/08 13:30:07 [error] 7642#7642: *343 FastCGI sent in stderr: "PHP message: PHP Notice:  Undefined offset: 1 in /opt/www/autoconfig/autodiscover.php on line 28PHP message: PHP Notice:  Undefined offset: 1 in /opt/www/autoconfig/autodiscover.php on line 29PHP message: PHP Notice:  Undefined offset: 1 in /opt/www/autoconfig/autodiscover.php on line 137PHP message: PHP Notice:  Undefined offset: 1 in /opt/www/autoconfig/autodiscover.php on line 156PHP message: PHP Notice:  Undefined offset: 1 in /opt/www/autoconfig/autodiscover.php on line 156PHP message: PHP Notice:  Undefined offset: 1 in /opt/www/autoconfig/autodiscover.php on line 195" while reading response header from upstream, client: 40.69.150.142, server: autoconfig.*, request: "GET /Autodiscover/Autodiscover.xml HTTP/1.1", upstream: "fastcgi://127.0.0.1:9001", host: "autodiscover.magri.email"
2019/10/08 13:30:08 [error] 7642#7642: *347 FastCGI sent in stderr: "PHP message: PHP Notice:  Undefined offset: 1 in /opt/www/autoconfig/autodiscover.php on line 28PHP message: PHP Notice:  Undefined offset: 1 in /opt/www/autoconfig/autodiscover.php on line 29PHP message: PHP Notice:  Undefined offset: 1 in /opt/www/autoconfig/autodiscover.php on line 137PHP message: PHP Notice:  Undefined offset: 1 in /opt/www/autoconfig/autodiscover.php on line 156PHP message: PHP Notice:  Undefined offset: 1 in /opt/www/autoconfig/autodiscover.php on line 156PHP message: PHP Notice:  Undefined offset: 1 in /opt/www/autoconfig/autodiscover.php on line 195" while reading response header from upstream, client: 40.69.150.142, server: autoconfig.*, request: "POST /Autodiscover/Autodiscover.xml HTTP/1.1", upstream: "fastcgi://127.0.0.1:9001", host: "autodiscover.magri.email"
2019/10/08 13:34:55 [error] 7642#7642: *361 FastCGI sent in stderr: "PHP message: PHP Notice:  Undefined offset: 1 in /opt/www/autoconfig/autodiscover.php on line 28PHP message: PHP Notice:  Undefined offset: 1 in /opt/www/autoconfig/autodiscover.php on line 29PHP message: PHP Notice:  Undefined offset: 1 in /opt/www/autoconfig/autodiscover.php on line 137PHP message: PHP Notice:  Undefined offset: 1 in /opt/www/autoconfig/autodiscover.php on line 156PHP message: PHP Notice:  Undefined offset: 1 in /opt/www/autoconfig/autodiscover.php on line 156PHP message: PHP Notice:  Undefined offset: 1 in /opt/www/autoconfig/autodiscover.php on line 195" while reading response header from upstream, client: 144.91.78.95, server: _, request: "GET /autodiscover/autodiscover.xml HTTP/1.1", upstream: "fastcgi://127.0.0.1:9001", host: "mail.magri.email"
2019/10/08 13:39:00 [error] 7642#7642: *376 open() "/opt/www/autoconfig/autodiscover/autodiscover.json" failed (2: No such file or directory), client: 5.90.73.27, server: autoconfig.*, request: "GET /autodiscover/autodiscover.json?Email=matteo%40magri.email&Protocol=Autodiscoverv1&RedirectCount=1 HTTP/1.1", host: "autodiscover.magri.email"
2019/10/08 13:39:05 [error] 7642#7642: *380 FastCGI sent in stderr: "PHP message: PHP Notice:  Undefined offset: 1 in /opt/www/autoconfig/autodiscover.php on line 28PHP message: PHP Notice:  Undefined offset: 1 in /opt/www/autoconfig/autodiscover.php on line 29PHP message: PHP Notice:  Undefined offset: 1 in /opt/www/autoconfig/autodiscover.php on line 137PHP message: PHP Notice:  Undefined offset: 1 in /opt/www/autoconfig/autodiscover.php on line 156PHP message: PHP Notice:  Undefined offset: 1 in /opt/www/autoconfig/autodiscover.php on line 156PHP message: PHP Notice:  Undefined offset: 1 in /opt/www/autoconfig/autodiscover.php on line 195" while reading response header from upstream, client: 5.90.73.27, server: autoconfig.*, request: "GET /autodiscover/autodiscover.xml HTTP/1.1", upstream: "fastcgi://127.0.0.1:9001", host: "autodiscover.magri.email"
2019/10/08 13:40:25 [error] 7642#7642: *386 FastCGI sent in stderr: "PHP message: PHP Notice:  Undefined offset: 1 in /opt/www/autoconfig/autodiscover.php on line 28PHP message: PHP Notice:  Undefined offset: 1 in /opt/www/autoconfig/autodiscover.php on line 29PHP message: PHP Notice:  Undefined offset: 1 in /opt/www/autoconfig/autodiscover.php on line 137PHP message: PHP Notice:  Undefined offset: 1 in /opt/www/autoconfig/autodiscover.php on line 156PHP message: PHP Notice:  Undefined offset: 1 in /opt/www/autoconfig/autodiscover.php on line 156PHP message: PHP Notice:  Undefined offset: 1 in /opt/www/autoconfig/autodiscover.php on line 195" while reading response header from upstream, client: 40.69.150.142, server: _, request: "POST /Autodiscover/Autodiscover.xml HTTP/1.1", upstream: "fastcgi://127.0.0.1:9001", host: "magri.email"
2019/10/08 13:40:27 [error] 7642#7642: *392 FastCGI sent in stderr: "PHP message: PHP Notice:  Undefined offset: 1 in /opt/www/autoconfig/autodiscover.php on line 28PHP message: PHP Notice:  Undefined offset: 1 in /opt/www/autoconfig/autodiscover.php on line 29PHP message: PHP Notice:  Undefined offset: 1 in /opt/www/autoconfig/autodiscover.php on line 137PHP message: PHP Notice:  Undefined offset: 1 in /opt/www/autoconfig/autodiscover.php on line 156PHP message: PHP Notice:  Undefined offset: 1 in /opt/www/autoconfig/autodiscover.php on line 156PHP message: PHP Notice:  Undefined offset: 1 in /opt/www/autoconfig/autodiscover.php on line 195" while reading response header from upstream, client: 40.69.150.142, server: autoconfig.*, request: "POST /Autodiscover/Autodiscover.xml HTTP/1.1", upstream: "fastcgi://127.0.0.1:9001", host: "autodiscover.magri.email"
2019/10/08 13:40:27 [error] 7642#7642: *397 FastCGI sent in stderr: "PHP message: PHP Notice:  Undefined offset: 1 in /opt/www/autoconfig/autodiscover.php on line 28PHP message: PHP Notice:  Undefined offset: 1 in /opt/www/autoconfig/autodiscover.php on line 29PHP message: PHP Notice:  Undefined offset: 1 in /opt/www/autoconfig/autodiscover.php on line 137PHP message: PHP Notice:  Undefined offset: 1 in /opt/www/autoconfig/autodiscover.php on line 156PHP message: PHP Notice:  Undefined offset: 1 in /opt/www/autoconfig/autodiscover.php on line 156PHP message: PHP Notice:  Undefined offset: 1 in /opt/www/autoconfig/autodiscover.php on line 195" while reading response header from upstream, client: 40.69.150.142, server: autoconfig.*, request: "GET /Autodiscover/Autodiscover.xml HTTP/1.1", upstream: "fastcgi://127.0.0.1:9001", host: "autodiscover.magri.email"
2019/10/08 13:40:29 [error] 7642#7642: *401 FastCGI sent in stderr: "PHP message: PHP Notice:  Undefined offset: 1 in /opt/www/autoconfig/autodiscover.php on line 28PHP message: PHP Notice:  Undefined offset: 1 in /opt/www/autoconfig/autodiscover.php on line 29PHP message: PHP Notice:  Undefined offset: 1 in /opt/www/autoconfig/autodiscover.php on line 137PHP message: PHP Notice:  Undefined offset: 1 in /opt/www/autoconfig/autodiscover.php on line 156PHP message: PHP Notice:  Undefined offset: 1 in /opt/www/autoconfig/autodiscover.php on line 156PHP message: PHP Notice:  Undefined offset: 1 in /opt/www/autoconfig/autodiscover.php on line 195" while reading response header from upstream, client: 40.69.150.142, server: autoconfig.*, request: "POST /Autodiscover/Autodiscover.xml HTTP/1.1", upstream: "fastcgi://127.0.0.1:9001", host: "autodiscover.magri.email"
2019/10/08 13:41:16 [error] 7642#7642: *406 FastCGI sent in stderr: "PHP message: PHP Notice:  Undefined offset: 1 in /opt/www/autoconfig/autodiscover.php on line 28PHP message: PHP Notice:  Undefined offset: 1 in /opt/www/autoconfig/autodiscover.php on line 29PHP message: PHP Notice:  Undefined offset: 1 in /opt/www/autoconfig/autodiscover.php on line 137PHP message: PHP Notice:  Undefined offset: 1 in /opt/www/autoconfig/autodiscover.php on line 156PHP message: PHP Notice:  Undefined offset: 1 in /opt/www/autoconfig/autodiscover.php on line 156PHP message: PHP Notice:  Undefined offset: 1 in /opt/www/autoconfig/autodiscover.php on line 195" while reading response header from upstream, client: 40.69.150.142, server: _, request: "POST /Autodiscover/Autodiscover.xml HTTP/1.1", upstream: "fastcgi://127.0.0.1:9001", host: "magri.email"
2019/10/08 13:41:17 [error] 7642#7642: *411 FastCGI sent in stderr: "PHP message: PHP Notice:  Undefined offset: 1 in /opt/www/autoconfig/autodiscover.php on line 28PHP message: PHP Notice:  Undefined offset: 1 in /opt/www/autoconfig/autodiscover.php on line 29PHP message: PHP Notice:  Undefined offset: 1 in /opt/www/autoconfig/autodiscover.php on line 137PHP message: PHP Notice:  Undefined offset: 1 in /opt/www/autoconfig/autodiscover.php on line 156PHP message: PHP Notice:  Undefined offset: 1 in /opt/www/autoconfig/autodiscover.php on line 156PHP message: PHP Notice:  Undefined offset: 1 in /opt/www/autoconfig/autodiscover.php on line 195" while reading response header from upstream, client: 40.69.150.142, server: autoconfig.*, request: "POST /Autodiscover/Autodiscover.xml HTTP/1.1", upstream: "fastcgi://127.0.0.1:9001", host: "autodiscover.magri.email"
2019/10/08 13:41:17 [error] 7642#7642: *397 FastCGI sent in stderr: "PHP message: PHP Notice:  Undefined offset: 1 in /opt/www/autoconfig/autodiscover.php on line 28PHP message: PHP Notice:  Undefined offset: 1 in /opt/www/autoconfig/autodiscover.php on line 29PHP message: PHP Notice:  Undefined offset: 1 in /opt/www/autoconfig/autodiscover.php on line 137PHP message: PHP Notice:  Undefined offset: 1 in /opt/www/autoconfig/autodiscover.php on line 156PHP message: PHP Notice:  Undefined offset: 1 in /opt/www/autoconfig/autodiscover.php on line 156PHP message: PHP Notice:  Undefined offset: 1 in /opt/www/autoconfig/autodiscover.php on line 195" while reading response header from upstream, client: 40.69.150.142, server: autoconfig.*, request: "GET /Autodiscover/Autodiscover.xml HTTP/1.1", upstream: "fastcgi://127.0.0.1:9001", host: "autodiscover.magri.email"
2019/10/08 13:41:19 [error] 7642#7642: *418 FastCGI sent in stderr: "PHP message: PHP Notice:  Undefined offset: 1 in /opt/www/autoconfig/autodiscover.php on line 28PHP message: PHP Notice:  Undefined offset: 1 in /opt/www/autoconfig/autodiscover.php on line 29PHP message: PHP Notice:  Undefined offset: 1 in /opt/www/autoconfig/autodiscover.php on line 137PHP message: PHP Notice:  Undefined offset: 1 in /opt/www/autoconfig/autodiscover.php on line 156PHP message: PHP Notice:  Undefined offset: 1 in /opt/www/autoconfig/autodiscover.php on line 156PHP message: PHP Notice:  Undefined offset: 1 in /opt/www/autoconfig/autodiscover.php on line 195" while reading response header from upstream, client: 40.69.150.142, server: autoconfig.*, request: "POST /Autodiscover/Autodiscover.xml HTTP/1.1", upstream: "fastcgi://127.0.0.1:9001", host: "autodiscover.magri.email"
2019/10/08 13:52:15 [error] 7642#7642: *439 directory index of "/opt/www/autoconfig/" is forbidden, client: 212.83.146.233, server: autoconfig.*, request: "GET / HTTP/1.1", host: "autoconfig.sempai.it"
2019/10/08 13:53:43 [error] 18673#18673: *7 FastCGI sent in stderr: "PHP message: PHP Warning:  explode() expects parameter 2 to be string, array given in /opt/www/autoconfig/autodiscover.php on line 29PHP message: PHP Warning:  array_key_exists(): The first argument should be either a string or an integer in /opt/www/autoconfig/autodiscover.php on line 42PHP message: PHP Notice:  Array to string conversion in /opt/www/autoconfig/autodiscover.php on line 136PHP message: PHP Notice:  Undefined offset: 1 in /opt/www/autoconfig/autodiscover.php on line 137PHP message: PHP Notice:  Undefined offset: 1 in /opt/www/autoconfig/autodiscover.php on line 156PHP message: PHP Notice:  Undefined offset: 1 in /opt/www/autoconfig/autodiscover.php on line 156PHP message: PHP Notice:  Undefined offset: 1 in /opt/www/autoconfig/autodiscover.php on line 195PHP message: PHP Notice:  Array to string conversion in /opt/www/autoconfig/autodiscover.php on line 203PHP message: PHP Notice:  Array to string conversion in /opt/www/autoconfig/autodiscover.php on line 229PHP message: PHP Notice:  Array to string conversion in /opt/www/autoconfig/autodiscover.php on line 242PHP message: PHP Notice:  Array to string conversion in /opt/www/autoconfig/autodiscover.php on line 255PHP message: PHP Notice:  Array to string conversion in /opt/www/autoconfig/autodiscover.php on line 268" while reading response header from upstream, client: 40.85.91.8, server: _, request: "POST /Autodiscover/Autodiscover.xml HTTP/1.1", upstream: "fastcgi://127.0.0.1:9001", host: "magri.email"
2019/10/08 13:53:43 [error] 18673#18673: *9 FastCGI sent in stderr: "PHP message: PHP Warning:  explode() expects parameter 2 to be string, array given in /opt/www/autoconfig/autodiscover.php on line 29PHP message: PHP Warning:  array_key_exists(): The first argument should be either a string or an integer in /opt/www/autoconfig/autodiscover.php on line 42PHP message: PHP Notice:  Array to string conversion in /opt/www/autoconfig/autodiscover.php on line 136PHP message: PHP Notice:  Array to string conversion in /opt/www/autoconfig/autodiscover.php on line 164PHP message: PHP Notice:  Array to string conversion in /opt/www/autoconfig/autodiscover.php on line 165" while reading response header from upstream, client: 40.85.91.8, server: _, request: "POST /Autodiscover/Autodiscover.xml HTTP/1.1", upstream: "fastcgi://127.0.0.1:9001", host: "magri.email"
2019/10/08 13:53:44 [error] 18673#18673: *13 FastCGI sent in stderr: "PHP message: PHP Warning:  explode() expects parameter 2 to be string, array given in /opt/www/autoconfig/autodiscover.php on line 29PHP message: PHP Warning:  array_key_exists(): The first argument should be either a string or an integer in /opt/www/autoconfig/autodiscover.php on line 42PHP message: PHP Notice:  Array to string conversion in /opt/www/autoconfig/autodiscover.php on line 136PHP message: PHP Notice:  Undefined offset: 1 in /opt/www/autoconfig/autodiscover.php on line 137PHP message: PHP Notice:  Undefined offset: 1 in /opt/www/autoconfig/autodiscover.php on line 156PHP message: PHP Notice:  Undefined offset: 1 in /opt/www/autoconfig/autodiscover.php on line 156PHP message: PHP Notice:  Undefined offset: 1 in /opt/www/autoconfig/autodiscover.php on line 195PHP message: PHP Notice:  Array to string conversion in /opt/www/autoconfig/autodiscover.php on line 203PHP message: PHP Notice:  Array to string conversion in /opt/www/autoconfig/autodiscover.php on line 229PHP message: PHP Notice:  Array to string conversion in /opt/www/autoconfig/autodiscover.php on line 242PHP message: PHP Notice:  Array to string conversion in /opt/www/autoconfig/autodiscover.php on line 255PHP message: PHP Notice:  Array to string conversion in /opt/www/autoconfig/autodiscover.php on line 268" while reading response header from upstream, client: 40.85.91.8, server: autoconfig.*, request: "POST /Autodiscover/Autodiscover.xml HTTP/1.1", upstream: "fastcgi://127.0.0.1:9001", host: "autodiscover.magri.email"
2019/10/08 13:53:44 [error] 18673#18673: *17 FastCGI sent in stderr: "PHP message: PHP Warning:  explode() expects parameter 2 to be string, array given in /opt/www/autoconfig/autodiscover.php on line 29PHP message: PHP Warning:  array_key_exists(): The first argument should be either a string or an integer in /opt/www/autoconfig/autodiscover.php on line 42PHP message: PHP Notice:  Array to string conversion in /opt/www/autoconfig/autodiscover.php on line 136PHP message: PHP Notice:  Array to string conversion in /opt/www/autoconfig/autodiscover.php on line 164PHP message: PHP Notice:  Array to string conversion in /opt/www/autoconfig/autodiscover.php on line 165" while reading response header from upstream, client: 40.85.91.8, server: autoconfig.*, request: "POST /Autodiscover/Autodiscover.xml HTTP/1.1", upstream: "fastcgi://127.0.0.1:9001", host: "autodiscover.magri.email"
2019/10/08 13:53:44 [error] 18673#18673: *20 FastCGI sent in stderr: "PHP message: PHP Warning:  explode() expects parameter 2 to be string, array given in /opt/www/autoconfig/autodiscover.php on line 29PHP message: PHP Warning:  array_key_exists(): The first argument should be either a string or an integer in /opt/www/autoconfig/autodiscover.php on line 42PHP message: PHP Notice:  Array to string conversion in /opt/www/autoconfig/autodiscover.php on line 136PHP message: PHP Notice:  Undefined offset: 1 in /opt/www/autoconfig/autodiscover.php on line 137PHP message: PHP Notice:  Undefined offset: 1 in /opt/www/autoconfig/autodiscover.php on line 156PHP message: PHP Notice:  Undefined offset: 1 in /opt/www/autoconfig/autodiscover.php on line 156PHP message: PHP Notice:  Undefined offset: 1 in /opt/www/autoconfig/autodiscover.php on line 195PHP message: PHP Notice:  Array to string conversion in /opt/www/autoconfig/autodiscover.php on line 203PHP message: PHP Notice:  Array to string conversion in /opt/www/autoconfig/autodiscover.php on line 229PHP message: PHP Notice:  Array to string conversion in /opt/www/autoconfig/autodiscover.php on line 242PHP message: PHP Notice:  Array to string conversion in /opt/www/autoconfig/autodiscover.php on line 255PHP message: PHP Notice:  Array to string conversion in /opt/www/autoconfig/autodiscover.php on line 268" while reading response header from upstream, client: 40.85.91.8, server: autoconfig.*, request: "GET /Autodiscover/Autodiscover.xml HTTP/1.1", upstream: "fastcgi://127.0.0.1:9001", host: "autodiscover.magri.email"
2019/10/08 13:53:45 [error] 18673#18673: *24 FastCGI sent in stderr: "PHP message: PHP Warning:  explode() expects parameter 2 to be string, array given in /opt/www/autoconfig/autodiscover.php on line 29PHP message: PHP Warning:  array_key_exists(): The first argument should be either a string or an integer in /opt/www/autoconfig/autodiscover.php on line 42PHP message: PHP Notice:  Array to string conversion in /opt/www/autoconfig/autodiscover.php on line 136PHP message: PHP Notice:  Undefined offset: 1 in /opt/www/autoconfig/autodiscover.php on line 137PHP message: PHP Notice:  Undefined offset: 1 in /opt/www/autoconfig/autodiscover.php on line 156PHP message: PHP Notice:  Undefined offset: 1 in /opt/www/autoconfig/autodiscover.php on line 156PHP message: PHP Notice:  Undefined offset: 1 in /opt/www/autoconfig/autodiscover.php on line 195PHP message: PHP Notice:  Array to string conversion in /opt/www/autoconfig/autodiscover.php on line 203PHP message: PHP Notice:  Array to string conversion in /opt/www/autoconfig/autodiscover.php on line 229PHP message: PHP Notice:  Array to string conversion in /opt/www/autoconfig/autodiscover.php on line 242PHP message: PHP Notice:  Array to string conversion in /opt/www/autoconfig/autodiscover.php on line 255PHP message: PHP Notice:  Array to string conversion in /opt/www/autoconfig/autodiscover.php on line 268" while reading response header from upstream, client: 40.85.91.8, server: autoconfig.*, request: "POST /Autodiscover/Autodiscover.xml HTTP/1.1", upstream: "fastcgi://127.0.0.1:9001", host: "autodiscover.magri.email"
2019/10/08 13:53:45 [error] 18673#18673: *17 FastCGI sent in stderr: "PHP message: PHP Warning:  explode() expects parameter 2 to be string, array given in /opt/www/autoconfig/autodiscover.php on line 29PHP message: PHP Warning:  array_key_exists(): The first argument should be either a string or an integer in /opt/www/autoconfig/autodiscover.php on line 42PHP message: PHP Notice:  Array to string conversion in /opt/www/autoconfig/autodiscover.php on line 136PHP message: PHP Notice:  Array to string conversion in /opt/www/autoconfig/autodiscover.php on line 164PHP message: PHP Notice:  Array to string conversion in /opt/www/autoconfig/autodiscover.php on line 165" while reading response header from upstream, client: 40.85.91.8, server: autoconfig.*, request: "POST /Autodiscover/Autodiscover.xml HTTP/1.1", upstream: "fastcgi://127.0.0.1:9001", host: "autodiscover.magri.email"
2019/10/08 13:56:23 [error] 18946#18946: *3 FastCGI sent in stderr: "PHP message: PHP Notice:  Undefined offset: 1 in /opt/www/autoconfig/autodiscover.php on line 28PHP message: PHP Notice:  Undefined offset: 1 in /opt/www/autoconfig/autodiscover.php on line 29PHP message: PHP Notice:  Undefined offset: 1 in /opt/www/autoconfig/autodiscover.php on line 137PHP message: PHP Notice:  Undefined offset: 1 in /opt/www/autoconfig/autodiscover.php on line 156PHP message: PHP Notice:  Undefined offset: 1 in /opt/www/autoconfig/autodiscover.php on line 156PHP message: PHP Notice:  Undefined offset: 1 in /opt/www/autoconfig/autodiscover.php on line 195" while reading response header from upstream, client: 40.85.91.8, server: _, request: "POST /Autodiscover/Autodiscover.xml HTTP/1.1", upstream: "fastcgi://127.0.0.1:9001", host: "magri.email"
2019/10/08 13:56:24 [error] 18946#18946: *11 FastCGI sent in stderr: "PHP message: PHP Notice:  Undefined offset: 1 in /opt/www/autoconfig/autodiscover.php on line 28PHP message: PHP Notice:  Undefined offset: 1 in /opt/www/autoconfig/autodiscover.php on line 29PHP message: PHP Notice:  Undefined offset: 1 in /opt/www/autoconfig/autodiscover.php on line 137PHP message: PHP Notice:  Undefined offset: 1 in /opt/www/autoconfig/autodiscover.php on line 156PHP message: PHP Notice:  Undefined offset: 1 in /opt/www/autoconfig/autodiscover.php on line 156PHP message: PHP Notice:  Undefined offset: 1 in /opt/www/autoconfig/autodiscover.php on line 195" while reading response header from upstream, client: 40.85.91.8, server: autoconfig.*, request: "POST /Autodiscover/Autodiscover.xml HTTP/1.1", upstream: "fastcgi://127.0.0.1:9001", host: "autodiscover.magri.email"
2019/10/08 13:56:24 [error] 18946#18946: *18 FastCGI sent in stderr: "PHP message: PHP Notice:  Undefined offset: 1 in /opt/www/autoconfig/autodiscover.php on line 28PHP message: PHP Notice:  Undefined offset: 1 in /opt/www/autoconfig/autodiscover.php on line 29PHP message: PHP Notice:  Undefined offset: 1 in /opt/www/autoconfig/autodiscover.php on line 137PHP message: PHP Notice:  Undefined offset: 1 in /opt/www/autoconfig/autodiscover.php on line 156PHP message: PHP Notice:  Undefined offset: 1 in /opt/www/autoconfig/autodiscover.php on line 156PHP message: PHP Notice:  Undefined offset: 1 in /opt/www/autoconfig/autodiscover.php on line 195" while reading response header from upstream, client: 40.85.91.8, server: autoconfig.*, request: "GET /Autodiscover/Autodiscover.xml HTTP/1.1", upstream: "fastcgi://127.0.0.1:9001", host: "autodiscover.magri.email"
2019/10/08 13:56:25 [error] 18946#18946: *22 FastCGI sent in stderr: "PHP message: PHP Notice:  Undefined offset: 1 in /opt/www/autoconfig/autodiscover.php on line 28PHP message: PHP Notice:  Undefined offset: 1 in /opt/www/autoconfig/autodiscover.php on line 29PHP message: PHP Notice:  Undefined offset: 1 in /opt/www/autoconfig/autodiscover.php on line 137PHP message: PHP Notice:  Undefined offset: 1 in /opt/www/autoconfig/autodiscover.php on line 156PHP message: PHP Notice:  Undefined offset: 1 in /opt/www/autoconfig/autodiscover.php on line 156PHP message: PHP Notice:  Undefined offset: 1 in /opt/www/autoconfig/autodiscover.php on line 195" while reading response header from upstream, client: 40.85.91.8, server: autoconfig.*, request: "POST /Autodiscover/Autodiscover.xml HTTP/1.1", upstream: "fastcgi://127.0.0.1:9001", host: "autodiscover.magri.email"

The test over 'https://testconnectivity.microsoft.com/' always failed with the error :

Attempting to send an Autodiscover POST request to potential Autodiscover URLs :

The Microsoft Connectivity Analyzer is attempting to retrieve an XML Autodiscover response from URL https://magri.email:443/Autodiscover/Autodiscover.xml for user matteo@magri.email.

The Microsoft Connectivity Analyzer failed to obtain an Autodiscover XML response.

Additional Details
   
None of the expected XML elements were found in the XML response.
HTTP Response Headers:
Transfer-Encoding: chunked
Connection: keep-alive
Vary: Accept-Encoding
X-Frame-Options: sameorigin
X-Content-Type-Options: nosniff
X-XSS-Protection: 1; mode=block
X-Download-Options: noopen
X-Permitted-Cross-Domain-Policies: none
Content-Security-Policy: default-src https: data: 'unsafe-inline' 'unsafe-eval'
Referrer-Policy: strict-origin
Content-Type: text/xml;charset=UTF-8
Date: Tue, 08 Oct 2019 12:05:13 GMT
Server: nginx
Elapsed Time: 150 ms.

Can be an issue with autodiscover.php file ?

----

Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.

2

Re: autodiscover.php - Error

Hi LainX84,

Sorry about this trouble. But i have some questions for you:

- How did you test the AutoDiscover script?
- What data did you submit via http POST?

For iRedMail Easy deployment, you can create ticket in the web ticket system after logged in to iRedMail Easy: https://easy.iredmail.org/

3 (edited by LainX84 2019-10-08 21:03:40)

Re: autodiscover.php - Error

ZhangHuangbin wrote:

Hi LainX84,

Sorry about this trouble. But i have some questions for you:

- How did you test the AutoDiscover script?
- What data did you submit via http POST?

For iRedMail Easy deployment, you can create ticket in the web ticket system after logged in to iRedMail Easy: https://easy.iredmail.org/

I do test with 'https://testconnectivity.microsoft.com/' and test failed.
Is a site from Microsoft to check and test autodiscover / autoconfig function.
Try also from outlook app from mobile and mail from iOS sometime take the correct configuration, sometime nope.
So i've check over DNS setting from my provider and over the server and found that alert.