[horde] ActiveSync-ERR: Problem loading mail folders from IMAP server: User is not authorized
"Michael Hübner"
michael.huebner at gmx.net
Fri Dec 28 10:53:45 UTC 2012
I did some more digging, and find it really confusing, courier-imap says login was successfull wenn doing the test with testexchangeconnectivity.com:
Dec 28 11:37:19 testserver imapd: Connection, ip=[::ffff:127.0.0.1]
Dec 28 11:37:19 testserver authdaemond: received auth request, service=imap, authtype=login
Dec 28 11:37:19 testserver authdaemond: authpam: trying this module
Dec 28 11:37:19 testserver authdaemond: authpam: sysusername=testuser, sysuserid=<null>, sysgroupid=1000, homedir=/var/mail/testuser, address=testuser, full$
Dec 28 11:37:19 testserver authdaemond: pam_service=imap, pam_username=testuser
Dec 28 11:37:19 testserver authdaemond: dopam successful
Dec 28 11:37:19 testserver authdaemond: Authenticated: sysusername=testuser, sysuserid=<null>, sysgroupid=1000, homedir=/var/mail/testuser, address=testuser$
Dec 28 11:37:19 testserver imapd: LOGIN, user=testuser, ip=[::ffff:127.0.0.1], port=[33127], protocol=IMAP
Dec 28 11:37:19 testserver imapd: LOGOUT, user=testuser, ip=[::ffff:127.0.0.1], headers=0, body=0, rcvd=24, sent=252, time=0, starttls=1
Still horde-activesynclog says login was not successfull:
2012-12-28T11:37:19+01:00 DEBUG: Client did not provide authentication data.
2012-12-28T11:37:19+01:00 INFO: [27137] Horde_Core_ActiveSync_Driver::authenticate() attempt for testuser
2012-12-28T11:37:19+01:00 DEBUG: [1589099912] FOLDERSYNC request received for user testuser
2012-12-28T11:37:19+01:00 DEBUG: [1589099912] loadDeviceInfo: testuser
2012-12-28T11:37:19+01:00 INFO: Request being handled for device: 1589099912 Supporting protocol version: 12.0
2012-12-28T11:37:19+01:00 INFO: [1589099912] Handling FOLDERSYNC command.
2012-12-28T11:37:19+01:00 DEBUG: [1589099912] Checking policykey for device: 0 user: testuser
2012-12-28T11:37:19+01:00 DEBUG: Policykey: 0 verified.
2012-12-28T11:37:19+01:00 DEBUG: I <FolderHierarchy:FolderSync>
2012-12-28T11:37:19+01:00 DEBUG: I <FolderHierarchy:SyncKey>
2012-12-28T11:37:19+01:00 DEBUG: I 0
2012-12-28T11:37:19+01:00 DEBUG: I </FolderHierarchy:SyncKey>
2012-12-28T11:37:19+01:00 DEBUG: [Horde_ActiveSync::handleFolderSync] syncKey: 0
2012-12-28T11:37:19+01:00 DEBUG: [27137] Resetting device state.
2012-12-28T11:37:19+01:00 DEBUG: Replacing SYNC_CACHE entry for user testuser and device 1589099912: a:12:{s:18:"confirmed_synckeys";a:0:{}s:17:"lasthbsyncstarted";b$
2012-12-28T11:37:19+01:00 DEBUG: I </FolderHierarchy:FolderSync>
2012-12-28T11:37:19+01:00 DEBUG: [Horde_ActiveSync::handleFolderSync] newSyncKey: {50dd765f-fd44-4682-853f-6a014e2e75c3}1
2012-12-28T11:37:19+01:00 DEBUG: [27137] Initializing folder diff engine
2012-12-28T11:37:19+01:00 DEBUG: [27137] Horde_Core_ActiveSync_Driver::getFolderList()
2012-12-28T11:37:19+01:00 DEBUG: [27137] Polling Horde_Core_ActiveSync_Driver::_getMailFolders()
2012-12-28T11:37:19+01:00 ERR: [27137] Problem loading mail folders from IMAP server: User is not authorized
2012-12-28T11:37:19+01:00 ERR: User is not authorized
2012-12-28T11:37:19+01:00 DEBUG: [27137] No folder changes found.
2012-12-28T11:37:19+01:00 DEBUG: O <FolderHierarchy:FolderSync>
2012-12-28T11:37:19+01:00 DEBUG: O <FolderHierarchy:Status>
2012-12-28T11:37:19+01:00 DEBUG: O 1
2012-12-28T11:37:19+01:00 DEBUG: O <FolderHierarchy:Status/>
2012-12-28T11:37:19+01:00 DEBUG: O <FolderHierarchy:SyncKey>
2012-12-28T11:37:19+01:00 DEBUG: O 0
2012-12-28T11:37:19+01:00 DEBUG: O <FolderHierarchy:SyncKey/>
2012-12-28T11:37:19+01:00 DEBUG: O <FolderHierarchy:Changes>
2012-12-28T11:37:19+01:00 DEBUG: O <FolderHierarchy:Count>
2012-12-28T11:37:19+01:00 DEBUG: O 0
2012-12-28T11:37:19+01:00 DEBUG: O <FolderHierarchy:Count/>
2012-12-28T11:37:19+01:00 DEBUG: O <FolderHierarchy:Changes/>
2012-12-28T11:37:19+01:00 DEBUG: O <FolderHierarchy:FolderSync/>
2012-12-28T11:37:19+01:00 INFO: [27137] User testuser logged off
I just did a pear-upgrade and got the latest update of activesync, it doesnt help unfortunately.
I would greatly appreciate any advice.
Regards,
Michael
-------- Original-Nachricht --------
> Datum: Thu, 27 Dec 2012 01:03:14 +0100
> Von: "Michael Hübner" <michael.huebner at gmx.net>
> An: horde at lists.horde.org
> Betreff: [horde] ActiveSync-ERR: Problem loading mail folders from IMAP server: User is not authorized
> Hello,
>
> I hope all had a merry christmas. I'm a new user and trying to set up a
> active-sync server with horde (fresh install from today) to connect a
> christmas present (HTC Wildfire S) to a private (single-user) emailserver.
> I am running Apache/2.2.22 (Debian) DAV/2 PHP/5.4.4-10 mod_ssl/2.2.22
> OpenSSL/1.0.1c and managed to set up horde with imp - the web interface is
> running fine.
>
>
> But I am not able to display any message folders on the mobile device - I
> do not see any mail in the inbox. Sending e-mail with the mobile device and
> the MS-Exchange profile works fine (althoug I do get an error from the
> device as the "sent" folder doesn't get updated).
>
> testexchangeconnectivity.com gives following error (in German - sorry):
> Es wird versucht, einen OPTIONS-Befehl an den Server zu senden.
> Die OPTIONS-Antwort wurde erfolgreich empfangen und ist gültig.
>
> Es wird versucht, den Befehl 'FolderSync' in der Exchange
> ActiveSync-Sitzung auszuführen.
> Fehler beim Testen des Befehls 'FolderSync'.
>
> Weitere Details
> Kein Posteingangsordner in der XML-Antwort gefunden.
>
> I enabled error logging on my server, horde logs gives following errors:
> DEBUG: [26431] Initializing folder diff engine
> DEBUG: Horde_Core_ActiveSync_Driver::getFolderList()
> DEBUG: Polling Horde_Core_ActiveSync_Driver::_getMailFolders()
> ERR: Problem loading mail folders from IMAP server: User is not authorized
> ERR: User is not authorized
> DEBUG: [26431] No folder changes found.
>
>
> I did read the note "RewriteRule .* -
> [E=HTTP_MS_ASPROTOCOLVERSION:%{HTTP:Ms-Asprotocolversion}] etc." info on the horde-wiki but that doesnt seem to
> help or change anything.
>
> I am really struggeling where the problem could be, if anybody could give
> me a hint where to look for I would be very glad, mailing list / web search
> didnt help me.
>
> Best regards,
> Michael Huebner
>
> --
> Horde mailing list
> Frequently Asked Questions: http://horde.org/faq/
> To unsubscribe, mail: horde-unsubscribe at lists.horde.org
More information about the horde
mailing list