[horde] Still ActiveSync problems
Michael J Rubinsky
mrubinsk at horde.org
Sun Nov 6 17:32:42 UTC 2022
Quoting Ronny Forberger <ronnyforberger at ronnyforberger.de>:
> Hi Brent,
>
> thank you for your message.
>
> I have removed the
>
> $conf['activesync']['logging']['level'] = '1';
>
> line and created the /var/log/apache2/activesync.log file, but I
> still have the problem with Android.
>
> There is nothing in the activesync log and Android tells me, I could
> not set up the account.
Are you filling in the account details or just relying to
autodiscovery? To rule out issues there, I would manually configure
the account.
> Weird thing is, it works without problem with the TbSync Thunderbird
> plugin (still nothing in the log though).
>
> I am out of ideas.
>
> Best regards,
>
> Ronny
>
> Am 05.11.2022 um 19:52 schrieb Brent:
>> Quoting Ronny Forberger <ronnyforberger at ronnyforberger.de>:
>>
>>> Hi Michael,
>>>
>>> thank you for your advice.
>>>
>>> I have the almost recent versions of Horde_Core and
>>> Horde_ActiveSync (from the Debian packages), but it already worked
>>> with even older versions, but installed through PEAR.
>>>
>>> My versions:
>>>
>>> php-horde-core 2.31.16+debian0-2
>>> php-horde-activesync 2.41.5-1
>>>
>>> My installation doesn't write an ActiveSync log at all to the
>>> configured path.
>>>
>>> Relevant configuration:
>>>
>>> $conf['activesync']['params']['driverconfig'] = 'horde';
>>> $conf['activesync']['storage'] = 'Sql';
>>> $conf['activesync']['emailsync'] = true;
>>> $conf['activesync']['version'] = '14.1';
>>> $conf['activesync']['auth']['type'] = 'basic';
>>> $conf['activesync']['autodiscovery'] = 'user';
>>> $conf['activesync']['outlookdiscovery'] = false;
>>> $conf['activesync']['logging']['path'] = '/var/log/apache2/activesync.log';
>>> $conf['activesync']['logging']['level'] = '1';
>>> $conf['activesync']['logging']['type'] = 'onefile';
>>> $conf['activesync']['ping']['heartbeatmin'] = 60;
>>> $conf['activesync']['ping']['heartbeatmax'] = 2700;
>>> $conf['activesync']['ping']['heartbeatdefault'] = 480;
>>> $conf['activesync']['ping']['deviceping'] = true;
>>> $conf['activesync']['ping']['waitinterval'] = 15;
>>> $conf['activesync']['enabled'] = true;
>>>
>>> I have write permissions on /var/log/apache2 and Apache2 already
>>> writes logs there.
>>>
>>> Any clue why I do not get an ActiveSync log?
>>>
>>> Best regards,
>>>
>>> Ronny
>>>
>>> Am 06.10.2022 um 23:27 schrieb Michael J Rubinsky:
>>>> Quoting Ronny Forberger <ronnyforberger at ronnyforberger.de>:
>>>>
>>>>> Hi,
>>>>>
>>>>> I still have ActiveSync problems.
>>>>>
>>>>> I configured my Horde 5.2.22 using the Debian packages.
>>>>>
>>>>> But I have two ActiveSync Clients which of one connects
>>>>> (BlueMail App) but I can't see any new messages coming up in
>>>>> folders.
>>>>>
>>>>> Another client (Android GMail) does not even set up the device.
>>>>>
>>>>> I cannot see any error in the log files which is relevant, and
>>>>> my active sync device log is not even written.
>>>>>
>>>>> My configuration of Horde:
>>>>>
>>>>> <?php
>>>>> /* CONFIG START. DO NOT CHANGE ANYTHING IN OR AFTER THIS LINE. */
>>>>> // $Id: 08fc885cd91fbae2d752e274b554c5f1645129c8 $
>>>>> $conf['vhosts'] = false;
>>>>> $conf['debug_level'] = E_ALL & ~E_NOTICE;
>>>>> $conf['max_exec_time'] = 0;
>>>>> $conf['compress_pages'] = true;
>>>>> $conf['secret_key'] = "redacted";
>>>>> $conf['umask'] = 077;
>>>>> $conf['testdisable'] = true;
>>>>> $conf['use_ssl'] = 1;
>>>>> $conf['server']['name'] = $_SERVER['SERVER_NAME'];
>>>>> $conf['urls']['token_lifetime'] = 30;
>>>>> $conf['urls']['hmac_lifetime'] = 30;
>>>>> $conf['urls']['pretty'] = 'rewrite';
>>>>> $conf['safe_ips'] = array();
>>>>> $conf['session']['name'] = 'Horde';
>>>>> $conf['session']['use_only_cookies'] = true;
>>>>> $conf['session']['timeout'] = 0;
>>>>> $conf['session']['cache_limiter'] = 'nocache';
>>>>> $conf['session']['max_time'] = 72000;
>>>>> $conf['cookie']['domain'] = $_SERVER['SERVER_NAME'];
>>>>> $conf['cookie']['path'] = '/';
>>>>> $conf['sql']['username'] = 'horde';
>>>>> $conf['sql']['password'] = "redacted";
>>>>> $conf['sql']['socket'] = '/var/run/mysqld/mysqld.sock';
>>>>> $conf['sql']['protocol'] = 'unix';
>>>>> $conf['sql']['database'] = 'horde_prod';
>>>>> $conf['sql']['charset'] = 'utf-8';
>>>>> $conf['sql']['ssl'] = false;
>>>>> $conf['sql']['splitread'] = false;
>>>>> $conf['sql']['logqueries'] = false;
>>>>> $conf['sql']['phptype'] = 'mysqli';
>>>>> $conf['nosql']['phptype'] = false;
>>>>> $conf['ldap']['useldap'] = false;
>>>>> $conf['auth']['admins'] = array('ronnyforberger');
>>>>> $conf['auth']['checkip'] = true;
>>>>> $conf['auth']['checkbrowser'] = true;
>>>>> $conf['auth']['resetpassword'] = false;
>>>>> $conf['auth']['alternate_login'] = false;
>>>>> $conf['auth']['redirect_on_logout'] = false;
>>>>> $conf['auth']['list_users'] = 'list';
>>>>> $conf['auth']['params']['app'] = 'imp';
>>>>> $conf['auth']['driver'] = 'application';
>>>>> $conf['auth']['params']['count_bad_logins'] = false;
>>>>> $conf['auth']['params']['login_block'] = false;
>>>>> $conf['auth']['params']['login_block_count'] = 5;
>>>>> $conf['auth']['params']['login_block_time'] = 5;
>>>>> $conf['signup']['allow'] = false;
>>>>> $conf['log']['priority'] = 'DEBUG';
>>>>> $conf['log']['ident'] = 'HORDE';
>>>>> $conf['log']['name'] = LOG_USER;
>>>>> $conf['log']['type'] = 'syslog';
>>>>> $conf['log']['enabled'] = true;
>>>>> $conf['log_accesskeys'] = false;
>>>>> $conf['prefs']['maxsize'] = 65535;
>>>>> $conf['prefs']['params']['driverconfig'] = 'horde';
>>>>> $conf['prefs']['driver'] = 'Sql';
>>>>> $conf['alarms']['params']['driverconfig'] = 'horde';
>>>>> $conf['alarms']['params']['ttl'] = 300;
>>>>> $conf['alarms']['driver'] = 'Sql';
>>>>> $conf['group']['params']['driverconfig'] = 'horde';
>>>>> $conf['group']['driver'] = 'Sql';
>>>>> $conf['perms']['driverconfig'] = 'horde';
>>>>> $conf['perms']['driver'] = 'Sql';
>>>>> $conf['share']['no_sharing'] = false;
>>>>> $conf['share']['auto_create'] = true;
>>>>> $conf['share']['world'] = true;
>>>>> $conf['share']['any_group'] = false;
>>>>> $conf['share']['hidden'] = false;
>>>>> $conf['share']['cache'] = false;
>>>>> $conf['share']['driver'] = 'Sqlng';
>>>>> $conf['cache']['default_lifetime'] = 86400;
>>>>> $conf['cache']['params']['dir'] = '/var/lib/horde/cache';
>>>>> $conf['cache']['params']['sub'] = 0;
>>>>> $conf['cache']['driver'] = 'File';
>>>>> $conf['cache']['use_memorycache'] = 'Apc';
>>>>> $conf['cachecssparams']['url_version_param'] = true;
>>>>> $conf['cachejsparams']['url_version_param'] = true;
>>>>> $conf['cachejs'] = true;
>>>>> $conf['cachecssparams']['driver'] = 'filesystem';
>>>>> $conf['cachecssparams']['filemtime'] = false;
>>>>> $conf['cachecssparams']['lifetime'] = 86400;
>>>>> $conf['cachecss'] = true;
>>>>> $conf['cachejsparams']['driver'] = 'filesystem';
>>>>> $conf['cachejsparams']['compress'] = 'php';
>>>>> $conf['cachejsparams']['lifetime'] = 604800;
>>>>> $conf['cachejs'] = true;
>>>>> $conf['cachethemesparams']['check'] = 'appversion';
>>>>> $conf['cachethemesparams']['lifetime'] = 604800;
>>>>> $conf['cachethemes'] = true;
>>>>> $conf['lock']['params']['driverconfig'] = 'horde';
>>>>> $conf['lock']['driver'] = 'Sql';
>>>>> $conf['token']['params']['driverconfig'] = 'horde';
>>>>> $conf['token']['driver'] = 'Sql';
>>>>> $conf['history']['params']['driverconfig'] = 'horde';
>>>>> $conf['history']['driver'] = 'Sql';
>>>>> $conf['davstorage']['params']['driverconfig'] = 'horde';
>>>>> $conf['davstorage']['driver'] = 'Sql';
>>>>> $conf['mailer']['params']['sendmail_path'] = '/usr/sbin/sendmail';
>>>>> $conf['mailer']['params']['sendmail_args'] = '-oi';
>>>>> $conf['mailer']['type'] = 'sendmail';
>>>>> $conf['vfs']['params']['driverconfig'] = 'horde';
>>>>> $conf['vfs']['type'] = 'Sql';
>>>>> $conf['sessionhandler']['type'] = 'Builtin';
>>>>> $conf['sessionhandler']['hashtable'] = false;
>>>>> $conf['spell']['driver'] = '';
>>>>> $conf['gnupg']['path'] = '/usr/bin/gpg';
>>>>> $conf['gnupg']['keyserver'] = array('pool.sks-keyservers.net');
>>>>> $conf['gnupg']['timeout'] = 10;
>>>>> $conf['nobase64_img'] = false;
>>>>> $conf['image']['driver'] = 'Imagick';
>>>>> $conf['exif']['driver'] = 'Bundled';
>>>>> $conf['geoip']['datafile'] = '/usr/share/GeoIP/GeoIP.dat';
>>>>> $conf['timezone']['location'] =
>>>>> 'ftp://ftp.iana.org/tz/tzdata-latest.tar.gz';
>>>>> $conf['problems']['email'] = 'webmaster at forberger-online.de';
>>>>> $conf['problems']['maildomain'] = 'forberger-online.de';
>>>>> $conf['problems']['tickets'] = false;
>>>>> $conf['problems']['attachments'] = true;
>>>>> $conf['menu']['links']['help'] = 'all';
>>>>> $conf['menu']['links']['prefs'] = 'authenticated';
>>>>> $conf['menu']['links']['problem'] = 'all';
>>>>> $conf['menu']['links']['login'] = 'all';
>>>>> $conf['menu']['links']['logout'] = 'authenticated';
>>>>> $conf['portal']['fixed_blocks'] = array();
>>>>> $conf['accounts']['driver'] = 'null';
>>>>> $conf['user']['verify_from_addr'] = false;
>>>>> $conf['user']['select_view'] = true;
>>>>> $conf['facebook']['enabled'] = false;
>>>>> $conf['twitter']['enabled'] = false;
>>>>> $conf['urlshortener'] = false;
>>>>> $conf['weather']['provider'] = false;
>>>>> $conf['imap']['server'] = 'localhost';
>>>>> $conf['imap']['port'] = 143;
>>>>> $conf['imap']['secure'] = 'tls';
>>>>> $conf['imap']['maildomain'] = 'forberger-online.de';
>>>>> $conf['imap']['cache_folders'] = false;
>>>>> $conf['imap']['enabled'] = true;
>>>>> $conf['imsp']['enabled'] = false;
>>>>> $conf['kolab']['enabled'] = false;
>>>>> $conf['hashtable']['driver'] = 'none';
>>>>> $conf['activesync']['params']['driverconfig'] = 'horde';
>>>>> $conf['activesync']['storage'] = 'Sql';
>>>>> $conf['activesync']['emailsync'] = true;
>>>>> $conf['activesync']['version'] = '14.1';
>>>>> $conf['activesync']['auth']['type'] = 'basic';
>>>>> $conf['activesync']['autodiscovery'] = 'user';
>>>>> $conf['activesync']['outlookdiscovery'] = false;
>>>>> $conf['activesync']['logging']['path'] =
>>>>> '/var/log/apache2/activesync.log';
>>>>> $conf['activesync']['logging']['level'] = '1';
>>>>> $conf['activesync']['logging']['type'] = 'onefile';
>>>>> $conf['activesync']['ping']['heartbeatmin'] = 60;
>>>>> $conf['activesync']['ping']['heartbeatmax'] = 2700;
>>>>> $conf['activesync']['ping']['heartbeatdefault'] = 480;
>>>>> $conf['activesync']['ping']['deviceping'] = true;
>>>>> $conf['activesync']['ping']['waitinterval'] = 15;
>>>>> $conf['activesync']['enabled'] = true;
>>>>> /* CONFIG END. DO NOT CHANGE ANYTHING IN OR BEFORE THIS LINE. */
>>>>>
>>>>> I get alot of (different) php errors in the logs though.
>>>>>
>>>>> Any idea what could be wrong?
>>>>
>>>> Hard to say without looking at the activesync logs.
>>>>
>>>> Some thoughts though: Make sure you have the most up to date
>>>> Horde_Core and Horde_ActiveSync packages as there are recent
>>>> fixes for the auto discover functionality that some newer android
>>>> clients might need.
>>>>
>>>> Also, even if GMail doesn't automatically setup the device you
>>>> should be able to manually configure it for activesync.
>>>>
>>>> Regarding BlueMail, I've never used it before, but I just
>>>> downloaded the android app and it successfully setupt the
>>>> activesync account and synchronized my mail, calendar, and
>>>> addressbooks. You can enable activesync logging in the horde
>>>> config and provide the sync log for the bluemail device.
>>>>
>>>>> Best regards,
>>>>>
>>>>> Ronny Forberger
>>>>> Ronny Forberger
>>>>> ronnyforberger at ronnyforberger.de
>>>>> --
>>>>> Horde mailing list
>>>>> Frequently Asked Questions: http://horde.org/faq/
>>>>> To unsubscribe, mail: horde-unsubscribe at lists.horde.org
>>>
>>> --
>>> Ronny Forberger
>>> ronnyforberger at ronnyforberger.de
>>>
>>>
>>
>> My configuration looks the same as yours; however, I note you have
>> an extra line that isn't in my conf.php:
>>
>> $conf['activesync']['logging']['level'] = '1';
>>
>> I don't have that at all, so I'm not sure where it is being set. To
>> be clear, you DO have devices set to use ActiveSync, right? Just
>> setup an account on ios/android and choose to connect to Exchange
>> and fill in the appropriate information to connect to your server.
>>
>> Try to create the file you want in that directory with the
>> appropriate permissions and see if the file gets updated. Perhaps
>> your apache user can't create files there but it CAN update them?
>>
>> brent
>
> --
> Ronny Forberger
> ronnyforberger at ronnyforberger.de
>
> --
> Horde mailing list
> Frequently Asked Questions: http://horde.org/faq/
> To unsubscribe, mail: horde-unsubscribe at lists.horde.org
--
mike
The Horde Project
http://www.horde.org
https://www.facebook.com/hordeproject
https://www.twitter.com/hordeproject
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-keys
Size: 9386 bytes
Desc: PGP Public Key
URL: <https://lists.horde.org/archives/horde/attachments/20221106/0f264ba3/attachment-0001.key>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 851 bytes
Desc: PGP Digital Signature
URL: <https://lists.horde.org/archives/horde/attachments/20221106/0f264ba3/attachment-0001.sig>
More information about the horde
mailing list