1

Topic: Exchange not working in Gmail app (Android 6.0.1)

==== Required information ====
- iRedMail version (check /etc/iredmail-release): 0.9.3
- Linux/BSD distribution name and version: Ubuntu 14.04 x64
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): LDAP
- Web server (Apache or Nginx): Nginx 1.9.7
- Manage mail accounts with iRedAdmin-Pro? No
- Related log if you're reporting an issue:
====
Hi Zhang,

I tried many times adding email address to Gmail App and other email apps: Outlook, Bluemail, etc. in Android 6.0.1 with Exchange mode with no luck.

The apps show error in login with either username and/or password (both are correct).

I tried with my Blackberry Z10 and it successfully added my email with full Exchange functions (email, calendar, tasks, memo, etc.)

Do you have any ideas about that?

Thank you and best regards,

Quy

----

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

2

Re: Exchange not working in Gmail app (Android 6.0.1)

The problem is, how did you setup your Outlook, Bluemail, Gmail App, etc? Any log in SOGo/Postfix/Dovecot log files?

Did you check our tutorials below?
http://www.iredmail.org/docs/index.html … plications

3

Re: Exchange not working in Gmail app (Android 6.0.1)

ZhangHuangbin wrote:

The problem is, how did you setup your Outlook, Bluemail, Gmail App, etc? Any log in SOGo/Postfix/Dovecot log files?

Did you check our tutorials below?
http://www.iredmail.org/docs/index.html … plications

Please see the steps below in attachment.

The parameters are set correctly with the tutorial.

Post's attachments

Screenshot_20151229-200843.png 294.29 kb, file has never been downloaded. 

Screenshot_20151229-200851.png 283.4 kb, file has never been downloaded. 

You don't have the permssions to download the attachments of this post.

4

Re: Exchange not working in Gmail app (Android 6.0.1)

I used a Nexus 7 (2013) with Android 6.0.1, the Mail app was replaced by Gmail App sad

Tried other apps with Exchange as option but no luck.

5

Re: Exchange not working in Gmail app (Android 6.0.1)

I had check with Microsoft Connectivity Analyzer and the following error appears:



    Testing HTTP Authentication Methods for URL https://mail.bqtoolbox.com/Microsoft-Se … tiveSync/.
    The HTTP authentication test failed.
     Tell me more about this issue and how to resolve it
   
    Additional Details
   
A 401 error was received from the server, but no authentication methods are supported.
HTTP Response Headers:
Connection: keep-alive
Content-Length: 0
Content-Type: text/plain
Date: Tue, 29 Dec 2015 13:36:37 GMT
Server: nginx
WWW-Authenticate: basic realm="SOGo"
Elapsed Time: 654 ms.


My nginx conf is as follows:

location ^~ /Microsoft-Server-ActiveSync {
        proxy_pass http://127.0.0.1:20000/SOGo/Microsoft-S … ctiveSync;
        proxy_redirect http://127.0.0.1:20000/Microsoft-Server-ActiveSync /;
    }

    location ^~ /SOGo/Microsoft-Server-ActiveSync {
        proxy_pass http://127.0.0.1:20000/SOGo/Microsoft-S … ctiveSync;
        proxy_redirect http://127.0.0.1:20000/SOGo/Microsoft-Server-ActiveSync /;

6

Re: Exchange not working in Gmail app (Android 6.0.1)

Please make sure you're setting up apps/MUAs with correct protocols:

*) ActiveSync uses port 443.
*) IMAP uses port 143 or 993.

Also, please read our notes about ActiveSync support in tutorials (e.g. http://www.iredmail.org/docs/activesync.android.html ):

Important notes:

*) SOGo provides EAS (Exchange ActiveSync) support, but not EWS (Exchange Web Service).
*) Outlook 2013 for Windows works well with EAS.
*) Below mobile devices works well with EAS, they will sync mails, calendars, contacts, tasks, memos/notes.
    - BlackBerry 10 devices
    - iOS devices (iPad, iPhone). Tested with iOS 8.1.3.
    - Android devices. Tested with OS v4.0.
*) Apple Mail.app, and Outlook for Mac support EWS. But not EAS.
*) Outlook 2010 for Windows supports MAPI.
*) iRedMail-0.9.0 doesn't integrate OpenChange and Samba4 for native MAPI support, so SOGo groupware in iRedMail doesn't provide full support for Microsoft Outlook clients, Mac OS X Mail.app and all iOS devices, don't try to add your mail account as an Exchange account in these mail clients. You have to add separate POP3/IMAP account, caldav/carddav account instead.

7

Re: Exchange not working in Gmail app (Android 6.0.1)

ZhangHuangbin wrote:

Please make sure you're setting up apps/MUAs with correct protocols:

*) ActiveSync uses port 443.
*) IMAP uses port 143 or 993.

Also, please read our notes about ActiveSync support in tutorials (e.g. http://www.iredmail.org/docs/activesync.android.html ):

Important notes:

*) SOGo provides EAS (Exchange ActiveSync) support, but not EWS (Exchange Web Service).
*) Outlook 2013 for Windows works well with EAS.
*) Below mobile devices works well with EAS, they will sync mails, calendars, contacts, tasks, memos/notes.
    - BlackBerry 10 devices
    - iOS devices (iPad, iPhone). Tested with iOS 8.1.3.
    - Android devices. Tested with OS v4.0.
*) Apple Mail.app, and Outlook for Mac support EWS. But not EAS.
*) Outlook 2010 for Windows supports MAPI.
*) iRedMail-0.9.0 doesn't integrate OpenChange and Samba4 for native MAPI support, so SOGo groupware in iRedMail doesn't provide full support for Microsoft Outlook clients, Mac OS X Mail.app and all iOS devices, don't try to add your mail account as an Exchange account in these mail clients. You have to add separate POP3/IMAP account, caldav/carddav account instead.


I checked the log file and found the followings:

401 Unauthorized
       /Microsoft-Server-ActiveSync: 23 Time(s)
       /Microsoft-Server-ActiveSync?User=bqtoolbo ... iceType=Outlook: 5 Time(s)
       /SOGo/dav/quy.hoang%40bqtoolbox.com/: 5 Time(s)
       /SOGo/dav/quy.hoang%40bqtoolbox.com/Calendar/: 5 Time(s)
       /SOGo/dav/quy.hoang%40bqtoolbox.com/Calendar/personal/: 5 Time(s)
       /Microsoft-Server-ActiveSync/: 2 Time(s)
    403 Forbidden
       /Microsoft-Server-ActiveSync/: 2 Time(s)
       /SOGo/Microsoft-Server-ActiveSync: 2 Time(s)

  405 Method Not Allowed
       /exchange/quy.hoang@bqtoolbox.com: 2 Time(s)
       /Microsoft-Server-ActiveSync: 1 Time(s)
    499 (undefined)
       /SOGo/so/social@bqtoolbox.com/Mail/0/folde ... /view?noframe=1: 27 Time(s)
       /Microsoft-Server-ActiveSync?Cmd=Sync&Devi ... ceId=BB266FE733: 21 Time(s)
       /SOGo/so/accountant@bqtoolbox.com/Mail/0/f ... /view?noframe=1: 11 Time(s)
       /SOGo/so/cloudvps@bqtoolbox.com/Mail/0/fol ... /view?noframe=1: 3 Time(s)
       /SOGo/so/postmaster@bqtoolbox.com/Mail/0/folderINBOX/headers: 3 Time(s)
       /SOGo/so/postmaster@bqtoolbox.com/Mail/0/f ... /view?noframe=1: 2 Time(s)
       /SOGo/so/social@bqtoolbox.com/Mail/0/folderINBOX/headers: 1 Time(s)