1

Topic: ActiveSync: nginx upstream connection refused

==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version (check /etc/iredmail-release): 2021020901 (Backend: mariadb, Date: 2021-02-10 13:36:19) iRedMail Easy
- Linux/BSD distribution name and version: Ubuntu 20.04
- Web server (Apache or Nginx): nginx
====

Hi,

my nginx error.log is full of this:

2021/02/19 07:38:33 [error] 8212#8212: *263183 connect() failed (111: Connection refused) while connecting to upstream, client: 84.189.x.y, server: _, request: "POST /Microsoft-Server-ActiveSync?Cmd=Ping&User=testuser@example.com&DeviceId=FFBC9B4AB6BA4D61BAD05DFF6405AFA1&DeviceType=WindowsOutlook15 HTTP/1.1", upstream: "http://127.0.0.1:20000/SOGo/Microsoft-Server-ActiveSync?Cmd=Ping&User=testuser@example.com&DeviceId=FFBC9B4AB6BA4D61BAD05DFF6405AFA1&DeviceType=WindowsOutlook15", host: "mail.example.com"

2021/02/19 07:38:33 [error] 8212#8212: *264154 connect() failed (111: Connection refused) while connecting to upstream, client: 84.189.x.y, server: _, request: "POST /Microsoft-Server-ActiveSync?Cmd=Sync&User=testuser@example.com&DeviceId=FFBC9B4AB6BA4D61BAD05DFF6405AFA1&DeviceType=WindowsOutlook15 HTTP/1.1", upstream: "http://127.0.0.1:20000/SOGo/Microsoft-Server-ActiveSync?Cmd=Sync&User=testuser@example.com&DeviceId=FFBC9B4AB6BA4D61BAD05DFF6405AFA1&DeviceType=WindowsOutlook15", host: "mail.example.com"

2021/02/19 07:38:33 [error] 8212#8212: *264154 connect() failed (111: Connection refused) while connecting to upstream, client: 84.189.x.y, server: _, request: "POST /Microsoft-Server-ActiveSync?Cmd=Sync&User=testuser@example.com&DeviceId=FFBC9B4AB6BA4D61BAD05DFF6405AFA1&DeviceType=WindowsOutlook15 HTTP/1.1", upstream: "http://127.0.0.1:20000/SOGo/Microsoft-Server-ActiveSync?Cmd=Sync&User=testuser@example.com&DeviceId=FFBC9B4AB6BA4D61BAD05DFF6405AFA1&DeviceType=WindowsOutlook15", host: "mail.example.com"

The client is Outlook 2016. Any idea what is causing this?

2

Re: ActiveSync: nginx upstream connection refused

- It says "connection refused", Is SOGo service running?
- For server deployed with iRedMail Easy, better use the ticket system in the iRedMail Easy web portal: https://easy.iredmail.org/

----

Buy me a cup of coffee ($5) to support iRedMail:

buy me a cup of coffee

3

Re: ActiveSync: nginx upstream connection refused

Hi,

found the "problem": These entries are generated when doing a "service sogo restart". But for a single ActiveSync connection I get 37 entries. I guess this adds tons of entries to my log file, if I have 50 or 100 active connections.
So probably better stop nginx before restarting sogo.