[horde] ActiveSync email disabled. But horde connects to imap server?
Michael J Rubinsky
mrubinsk at horde.org
Fri May 9 13:51:32 UTC 2014
Quoting Erling Preben Hansen <erling at eph.dk>:
> Citat af Erling Preben Hansen <erling at eph.dk>:
>
>> Citat af Michael J Rubinsky <mrubinsk at horde.org>:
>>
>>> Quoting Erling Preben Hansen <erling at eph.dk>:
>>>
>>>> Hey
>>>>
>>>> I have set up ActiveSync as this:
>>>>
>>>> $conf['activesync']['emailsync'] = false;
>>>> $conf['activesync']['version'] = '14.1';
>>>> $conf['activesync']['autodiscovery'] = 'full';
>>>> $conf['activesync']['hosts']['imap']['host'] = 'eph.dk';
>>>> $conf['activesync']['hosts']['imap']['port'] = 993;
>>>> $conf['activesync']['hosts']['imap']['ssl'] = true;
>>>> $conf['activesync']['hosts']['pop']['host'] = 'eph.dk';
>>>> $conf['activesync']['hosts']['pop']['port'] = 995;
>>>> $conf['activesync']['hosts']['pop']['ssl'] = true;
>>>> $conf['activesync']['hosts']['smtp']['host'] = 'eph.dk';
>>>> $conf['activesync']['hosts']['smtp']['port'] = 465;
>>>> $conf['activesync']['hosts']['smtp']['popauth'] = false;
>>>> $conf['activesync']['hosts']['smtp']['ssl'] = true;
>>>> $conf['activesync']['outlookdiscovery'] = true;
>>>> $conf['activesync']['logging']['type'] = 'horde';
>>>> $conf['activesync']['ping']['heartbeatmin'] = 60;
>>>> $conf['activesync']['ping']['heartbeatmax'] = 2700;
>>>> $conf['activesync']['ping']['heartbeatdefault'] = 480;
>>>> $conf['activesync']['ping']['deviceping'] = true;
>>>> $conf['activesync']['ping']['waitinterval'] = 120;
>>>> $conf['activesync']['enabled'] = true;
>>>>
>>>> I can see in my logs that Horde is opening and authenticating a
>>>> connection
>>>> to my imap server.
>>>> This connection is open for 30 minutes and then closes and immediately
>>>> opens again.
>>>> Imap is only handling mails
>>>>
>>>> Horde authentication is done to sql server so there is no need to open
>>>> Imap.
>>>> Horde is handling Calendars Contacts Notes and Tasks.
>>>>
>>>> Is this normal behavior.......
>>>> and why is it so.
>>>
>>> I cannot reproduce this. Also, I see that you have configured outlook
>>> autodiscovery, which doesn't configure *ActiveSync* on Outlook, but
>>> provides information to configure outlook for IMAP/POP etc... Is this
>>> what you are using, or is this from a mobile device?
>>>
>>> --
>>> mike
>>> The Horde Project
>>> http://www.horde.org
>>>
> https://www.facebook.com/hordeprojecthttps://www.twitter.com/hordeproject
>>
>> entries is for autodiscovery for outlook.
>> I have some users that find it being a very nice feature.
>>
>> /erling
>> --
>> Horde mailing list
>> Frequently Asked Questions: http://horde.org/faq/To unsubscribe, mail:
>> horde-unsubscribe at lists.horde.org
>
> Hey
>
> I keep hitting the maillist rooftop when I ad some of the
> device-Active-sync.log
> but here is logentries from mail.info and horde.log.
>
> grep from mail.info
>
> May 5 22:14:14 eph-03 imapd: LOGOUT, user=myuser at eph.dk,
> ip=[::ffff:127.0.0.1], headers=0, body=0, rcvd=24, sent=229, time=829
> May 5 22:14:16 eph-03 imapd: LOGIN, user=myuser at eph.dk,
> ip=[::ffff:127.0.0.1], port=[34630], protocol=IMAP
>
> May 5 22:31:06 eph-03 imapd: LOGOUT, user=myuser at eph.dk,
> ip=[::ffff:127.0.0.1], headers=0, body=0, rcvd=24, sent=229, time=1010
> May 5 22:31:08 eph-03 imapd: LOGIN, user=myuser at eph.dk,
> ip=[::ffff:127.0.0.1], port=[34650], protocol=IMAP
>
> May 5 22:47:58 eph-03 imapd: LOGOUT, user=myuser at eph.dk,
> ip=[::ffff:127.0.0.1], headers=0, body=0, rcvd=24, sent=229, time=1010
> May 5 22:47:59 eph-03 imapd: LOGIN, user=myuser at eph.dk,
> ip=[::ffff:127.0.0.1], port=[34679], protocol=IMAP
>
> horde.log
>
> my-ip - eph.dk\\myuser at eph.dk [05/May/2014:22:14:15 +0200] "POST
> /Microsoft-Server-ActiveSync?Cmd=Ping&User=eph.dk%5Cmyuser%40eph.dk&DeviceId=androidc1233653448&DeviceType=Android
> HTTP/1.1" 200 13 "-"
>
> my-ip - eph.dk\\myuser at eph.dk [05/May/2014:22:31:07 +0200] "POST
> /Microsoft-Server-ActiveSync?Cmd=FolderSync&User=eph.dk%5Cmyuser%40eph.dk&DeviceId=androidc1233653448&DeviceType=Android
> HTTP/1.1" 200 63 "-"
> my-ip - eph.dk\\myuser at eph.dk [05/May/2014:22:31:07 +0200] "POST
> /Microsoft-Server-ActiveSync?Cmd=Ping&User=eph.dk%5Cmyuser%40eph.dk&DeviceId=androidc1233653448&DeviceType=Android
> HTTP/1.1" 200 13 "-"
>
> my-ip - eph.dk\\myuser at eph.dk [05/May/2014:22:47:59 +0200] "POST
> /Microsoft-Server-ActiveSync?Cmd=Ping&User=eph.dk%5Cmyuser%40eph.dk&DeviceId=androidc1233653448&DeviceType=Android
> HTTP/1.1" 200 13 "-"
Your logs show that email folders are NOT being pinged. It's also
impossible for the ActiveSync code to communicate with the IMAP server
when emailsync == false, since the adapter object is never created.
This MUST be coming from Horde's authentication attempt for some
reason. Unfortunately, since I cannot reproduce this you are going to
have to trace this yourself and find out what part of the code is
attempting to initialize IMP.
ActiveSync calls into the authentication library in
Horde_Core_ActiveSync_Driver::authenticate() so that is a good place
to start looking.
--
mike
The Horde Project
http://www.horde.org
https://www.facebook.com/hordeproject
https://www.twitter.com/hordeproject
More information about the horde
mailing list