1 (edited by gilles.quenot 2018-06-08 04:56:36)

Topic: Can't connect via activeSync

==== Required information ====
- iRedMail version: 0.9.5-1
- Linux/BSD distribution name and version: debian 8
- Store mail accounts in which backend : MySQL
- Web server : Nginx
- Manage mail accounts with iRedAdmin-Pro: no
====

Hi,

I try to configure my Android 6.0.1 with a Microsoft Exchange ActiveSync account type, so
email : me@example.com
passwd: xxxx

Then try to connect, I get an authentification error from my device and from /var/log/sogo/sogo.log :

Jun 07 16:21:17 sogod [1570]: <0xfffffffffffffffffffffffff[SOGoDAVAuthenticator]> tried wrong password for user 'gilles.quenot'!
Jun 07 16:21:17 sogod [1570]: localhost.localdomain "OPTIONS /SOGo/Microsoft-Server-ActiveSync?Cmd=OPTIONS&User=gilles.quenot&DeviceId=XXXX&DeviceType=SAMSUNGSMJ500FN HTTP/1.0" 401 12/0 0.004 - - 0

The password have been reset to ensure it the good one with :

doveadm pw -s 'ssha512' -p 'foobar'

then in MySQL :

use vmail;
UPDATE mailbox SET password=<doveadm output> WHERE username='gilles.quenot@example.com'

tested OK from https://example.com/sogo and it's the same I type in my Android device.

What's wrong ?

----

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

2

Re: Can't connect via activeSync

gilles.quenot wrote:

Jun 07 16:21:17 sogod [1570]: <0xfffffffffffffffffffffffff[SOGoDAVAuthenticator]> tried wrong password for user 'gilles.quenot'!

Did you use full email address as login username?

3

Re: Can't connect via activeSync

Yes I do

4

Re: Can't connect via activeSync

The log you pasted in first post shows only username part of email address was used as login username.

5

Re: Can't connect via activeSync

When the app ask domain\username, you are asked to type :

domain.com\you@example.com

Not the default

6

Re: Can't connect via activeSync

- Which application do you use?
- Does it work if you type just full email address as username?

7

Re: Can't connect via activeSync

ZhangHuangbin wrote:

- Which application do you use?
- Does it work if you type just full email address as username?

Example : https://pix.toile-libre.org/upload/img/1528912810.png


Yes it works now when putting instead of \me:

domain.tld\me@example.com

This is the default microsoft exchange Android 6.0.1 account application

Preferences > accounts > microsoft exchange