Topic: iRedMail 9.9 cannot access from Outlook EAS
Required information
- iRedMail version (check /etc/iredmail-release): 0.9.9
- Linux/BSD distribution name and version: Ubuntu 18.04.02 TLS
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MySQL
- Web server (Apache or Nginx): Nginx
- Manage mail accounts with iRedAdmin-Pro? yes
- Let's encrypted: Yes
iRedMail0.9.9\config
export USE_IREDADMIN='YES'
export USE_ROUNDCUBE='NO'
export USE_SOGO='YES'
export USE_NETDATA='YES'
export USE_FAIL2BAN='YES'
After I upgraded iredmail version 0.9.9 and import old database from previous version worked fine. I can access Sogo, IMAP/SSL, SMTP/SSL, but I getting error "The connection to Exchange is unavailable" when trying to connect Outlook. My outlook version is 2007,2010,2013.
I also try access Microsoft-ActiveSync-Server/ then it show SOGo page.
https://webmail.mydomain.com/SOGo/Micro … domain.com
Config from /etc/nginx/templates/sogo.tmpl is below
location ^~ /Microsoft-Server-ActiveSync {
proxy_pass http://127.0.0.1:20000/SOGo/Microsoft-S … ctiveSync;
proxy_connect_timeout 3540;
proxy_send_timeout 3540;
proxy_read_timeout 3540;
location ^~ /SOGo/Microsoft-Server-ActiveSync {
proxy_pass http://127.0.0.1:20000/SOGo/Microsoft-S … ctiveSync;
proxy_connect_timeout 3540;
proxy_send_timeout 3540;
proxy_read_timeout 3540;
And from nginx log access is below
/var/log/nginx/access.log
52.125.132.212 - s@mydomain.com [19/Jul/2019:13:02:46 +0700] "POST /Microsoft-Server-ActiveSync?User=s%40mydomain.com&DeviceId=84F160D88894A45E&DeviceType=Outlook&Cmd=Sync HTTP/1.1" 200 0 "-" "Outlook-iOS-Android/1.0"
192.168.104.18 - - [19/Jul/2019:13:03:58 +0700] "GET /SOGo/Microsoft-ActiveSync-Server/postmaster@mydomain.com HTTP/1.1" 200 7437 "-" "Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/75.0.3770.142 Safari/537.36"
192.168.104.18 - - [19/Jul/2019:13:03:58 +0700] "GET /SOGo.woa/WebServerResources/img/sogo.ico?lm=1563097270 HTTP/1.1" 200 4887 "https://webmail.mydomain.com/SOGo/Micro … domain.com" "Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/75.0.3770.142 Safari/537.36"
/var/log/nginx/error.log
2019/07/19 12:31:56 [error] 22802#22802: *2684 open() "/var/www/html/autodiscover/autodiscover.xml" failed (2: No such file or directory), client: 182.232.190.77, server: _, request: "POST /autodiscover/autodiscover.xml HTTP/1.1", host: "autodiscover.mydomain.com"
2019/07/19 12:31:56 [error] 22802#22802: *2687 open() "/var/www/html/autodiscover/autodiscover.xml" failed (2: No such file or directory), client: 182.232.190.77, server: _, request: "POST /autodiscover/autodiscover.xml HTTP/1.1", host: "autodiscover.mydomain.com"
2019/07/19 12:41:59 [error] 22802#22802: *345 upstream timed out (110: Connection timed out) while reading response header from upstream, client: 192.168.104.90, server: _, request: "POST /Microsoft-Server-ActiveSync?Cmd=Ping&User=designer1@mydomain.com&DeviceId=B3D5DF6814B849758E92089C773EF99C&DeviceType=WindowsOutlook15 HTTP/1.1", upstream: "http://127.0.0.1:20000/SOGo/Microsoft-S … sOutlook15", host: "webmail.mydomain.com"
----
Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.