1

Topic: iPhone Mail app fails to connect with Exchange

==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version (check /etc/iredmail-release): 1.5.1 MARIADB edition
- Deployed with iRedMail Easy or the downloadable installer? downloadable installer
- Linux/BSD distribution name and version: Ubuntu 20
- 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.
====
Hello.  I have a new iredmail server running in AWS, Let's Encrypt cert, etc. and can send and receive email from several different mail clients (Roundcube, SOGo, Outlook, various email apps) except the native iPhone Mail app.  I get the error "Account error: Cannot Get Mail: the connection to the server failed." 

Interestingly, it allows me to send email.  I just cannot see any folders/email.

What logs can I look at in SOGo to find the problem?
Also, I know I can ignore the native iPhone Mail app which I personally do not like, but there are several folks who use it.

Thanks
Dan

----

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

2

Re: iPhone Mail app fails to connect with Exchange

Looking at the sogo.log I see this...

19:16:42 sogod [1208]: mx.domain.click "OPTIONS /SOGo/Microsoft-Server-ActiveSync?Cmd=Options&User=domain.click%5Cdan%40domain.click&DeviceId=0e4fc47e9ce44fdbb1f56ce20e61cb13&DeviceType=Outlook HTTP/1.0" 200 0/0 0.002 - - 0 - 12

Mar 07 19:16:42 sogod [1208]: <0x0x556f5d9e2cd0[NGImap4Client]> TLS started successfully.

Mar 07 19:16:42 sogod [1208]: mx.domain.click "POST /SOGo/Microsoft-Server-ActiveSync?Cmd=FolderSync&User=domain.click%5Cdan%40domain.click&DeviceId=0e4fc47e9ce44fdbb1f56ce20e61cb13&DeviceType=Outlook HTTP/1.0" 200 41/29 0.159 - - 0 - 14

Mar 07 19:16:42 sogod [1205]: [ERROR] <0x0x556f5d3b3150[WOHttpTransaction]> client disconnected during delivery of response for <WORequest[0x0x556f5d664ce0]: method=POST uri=/SOGo/Microsoft-Server-ActiveSync?Cmd=Ping&User=domain.click%5Cdan%40domain.click&DeviceId=0e4fc47e9ce44fdbb1f56ce20e61cb13&DeviceType=Outlook app=SOGo rqKey=Microsoft-Server-ActiveSync rqPath=(null)> (len=13): the socket was shutdown

Mar 07 19:16:42 sogod [1205]: mx.domain.click "POST /SOGo/Microsoft-Server-ActiveSync?Cmd=Ping&User=domain.click%5Cdan%40domain.click&DeviceId=0e4fc47e9ce44fdbb1f56ce20e61cb13&DeviceType=Outlook HTTP/1.0" 200 13/268 152.064 - - 0 - 13

Mar 07 19:16:42 sogod [1208]: <0x0x556f5de873e0[SOGoActiveSyncDispatcher]> Sleeping 30 seconds while detecting changes for user dan@domain.click in Ping...

Mar 07 19:16:46 sogod [1083]: [WARN] <0x0x556f5cd0c720[WOWatchDogChild]> pid 1204 has been hanging in the same request for 1 minutes

Mar 07 19:16:47 sogod [1204]: <0x0x556f5d147330[SOGoActiveSyncDispatcher]> Sleeping 30 seconds while detecting changes for user dan@domain.click in Ping...

3

Re: iPhone Mail app fails to connect with Exchange

ok.  it's solved.  I guess I just had to write it down...
on the iphone, settings, mail, accounts, I unchecked everything except Mail.  Then it started to work as expected.  I then checked all the other except Notes; which is probably the one that had the issue, I guess.

Have a great night.