Results 1 to 10 of 10

Thread: z-push and zimbra backend problem

  1. #1
    ben1967 is offline Senior Member
    Join Date
    Apr 2011
    Posts
    62
    Rep Power
    4

    Default z-push and zimbra backend problem

    Dear All

    I have ZCS OSE ver 7.1 running fine for sometime and recently stated separate z-push server ver 2.04

    I downlaoded and installed as per docs and also installed the zimbra backend zimbra54-zpush2-zpush1-as12.1.tgz and used the zimbra z-push-2.

    confiured the config.php as per install doc

    now when I use my browser to http://ipaddress/Microsoft-Server-ActiveSync it prompts me for a username and password box

    when entering the my email username and password it just displays a blank screen

    my /var/log/z-push/z-push.log shows

    12/11/2012 00:34:13 [ 2979] [DEBUG] [user1] Including backend file: '/var/www/html/z-push/backend/zimbra/zimbra.php'
    12/11/2012 00:34:13 [ 2979] [ WARN] [user1] /var/www/html/z-push/lib/core/zpush.php:445 Use of undefined constant ZIMBRA_USER_DIR - assumed 'ZIMBRA_USER_DIR' (8)


    I just tried to sync my smart phone using the exchange option on the mobile but it just says cannot connect to server


    appreciate if someone can help and advise where i can be wrong



    regards

    simon

  2. #2
    Yaroze is offline Intermediate Member
    Join Date
    Jul 2012
    Posts
    23
    Rep Power
    3

    Default

    Maybe you put some incorrect values in your z-push config.php.
    Post your config.php

  3. #3
    ben1967 is offline Senior Member
    Join Date
    Apr 2011
    Posts
    62
    Rep Power
    4

    Default

    Dear Yaroze,

    I really thank you for your immediately reply and sorry for not posting my config file
    here below is my part of my config file the rest of the file is unchanged.
    also my zpush error.log does not show any errors
    ---------

    define('PROVISIONING', false);

    /************************************************** ********************************
    * Backend settings
    */
    // The data providers that we are using (see configuration below)
    define('BACKEND_PROVIDER', "BackendZimbra");


    // Add to config
    define('ZIMBRA_URL', 'http://comm.baladia.gov.kw');
    define('ZIMBRA_SYNC_CONTACT_PICTURES', true);
    define('ZIMBRA_VIRTUAL_CONTACTS',true);
    define('ZIMBRA_VIRTUAL_APPOINTMENTS',true);
    define('ZIMBRA_VIRTUAL_TASKS',true);
    define('ZIMBRA_IGNORE_EMAILED_CONTACTS',true);
    define('ZIMBRA_HTML',true);
    define('ZIMBRA_ENFORCE_VALID_EMAIL',true);
    define('ZIMBRA_RETRIES_ON_HOST_CONNECT_ERROR',3);
    define('ZIMBRA_DEBUG',true);


    // ************************
    // BackendZarafa settings
    // ************************
    // Defines the server to which we want to connect
    define('MAPI_SERVER', 'file:///var/run/zarafa');


    // ************************
    // BackendIMAP settings
    // ************************
    // Defines the server to which we want to connect
    define('IMAP_SERVER', 'localhost');
    // connecting to default port (143)
    define('IMAP_PORT', 143);
    // best cross-platform compatibility (see PHP: imap_open - Manual for options)
    define('IMAP_OPTIONS', '/notls/norsh');
    // overwrite the "from" header if it isn't set when sending emails
    // options: 'username' - the username will be set (usefull if your login is equal to your emailaddress)
    // 'domain' - the value of the "domain" field is used
    // '@mydomain.com' - the username is used and the given string will be appended
    define('IMAP_DEFAULTFROM', '');
    // copy outgoing mail to this folder. If not set z-push will try the default folders
    define('IMAP_SENTFOLDER', '');
    // forward messages inline (default false - as attachment)
    define('IMAP_INLINE_FORWARD', false);
    // use imap_mail() to send emails (default) - if false mail() is used
    define('IMAP_USE_IMAPMAIL', true);


    // ************************
    // BackendMaildir settings
    // ************************
    define('MAILDIR_BASE', '/tmp');
    define('MAILDIR_SUBDIR', 'Maildir');

    // **********************
    // BackendVCardDir settings
    // **********************
    define('VCARDDIR_DIR', '/home/%u/.kde/share/apps/kabc/stdvcf');


    /************************************************** ********************************
    * Search provider settings
    *
    * Alternative backend to perform SEARCH requests (GAL search)
    * By default the main Backend defines the preferred search functionality.
    * If set, the Search Provider will always be preferred.
    * Use 'BackendSearchLDAP' to search in a LDAP directory (see backend/searchldap/config.php)
    */
    define('SEARCH_PROVIDER', '');
    // Time in seconds for the server search. Setting it too high might result in timeout.
    // Setting it too low might not return all results. Default is 10.
    define('SEARCH_WAIT', 10);
    // The maximum number of results to send to the client. Setting it too high
    // might result in timeout. Default is 10.
    define('SEARCH_MAXRESULTS', 10);
    -----------------------------

    I really appreciate your kind help

    regards

    simon

  4. #4
    liverpoolfcfan's Avatar
    liverpoolfcfan is offline Outstanding Member
    Join Date
    Oct 2009
    Location
    Dublin, IRELAND
    Posts
    712
    Rep Power
    6

    Default

    If you typed the zimbra_url properly - it is certainly not accessible from here.

    When you hit the page with a browser - does the pop-up box say "The server says: ZPush" ? If it does - then it is the z-push server - if not then it is a different web server authenticating you.

    Assuming it does say z-push - if nothing is happening after - check your apache logs for errors.

    Have you installed the needed php extensions ? php-soap, php-curl, php-mbstring, php-process

    If you are missing any of the first two - you will not be able to authenticate to the backend.

  5. #5
    Yaroze is offline Intermediate Member
    Join Date
    Jul 2012
    Posts
    23
    Rep Power
    3

    Default

    Does zimbra_url point to your actual zimbra server?

  6. #6
    ben1967 is offline Senior Member
    Join Date
    Apr 2011
    Posts
    62
    Rep Power
    4

    Default

    Dear Yaroze and liverpoolfcfan n guys


    I really appreciate and immensely grateful to you guys. actually I did have to install php-soap, php-curl, php-mbstring, php-process as they were not there but still it was not working .
    then in apache logs i could see

    ----
    PHP Fatal error: Call to undefined function json_decode()
    in /var/www/html/z-push/backend/zimbra/zimbra.php on line 8453
    -----

    then googling arround about json_decode i hereby found the link

    Installing php json pecl extension on centos | Blog

    and added extensions in php.ini

    reload apache and wow it worked like a charm and I could see the page
    ----

    Z-Push - Open Source ActiveSync
    Version 2.0.4-1497
    GET not supported
    This is the Z-Push location and can only be accessed by Microsoft ActiveSync-capable devices


    More information about Z-Push can be found at:
    Z-Push homepage
    Z-Push download page at BerliOS
    Z-Push Bugtracker and Roadmap

    All modifications to this sourcecode must be published and returned to the community.
    Please see AGPLv3 License for details.


    Also as liverpoolfcfan he could not access the url since this is a test server
    the zimbra and z-ush servers are running on a private ip. Once I get this working I would configure a new zpush server with public ip
    I already have a zimbra server running in production but no zpush server

    so just wanted to set up 2 server ( zimbra and z-push ) and test out before implementing in production

    once again thanks a million guys and God bless you


    regards

    simon

  7. #7
    liverpoolfcfan's Avatar
    liverpoolfcfan is offline Outstanding Member
    Join Date
    Oct 2009
    Location
    Dublin, IRELAND
    Posts
    712
    Rep Power
    6

    Default

    Happy to hear you have gotten going.

    What PHP version are you using? json_decode is standard since php 5.2

  8. #8
    ben1967 is offline Senior Member
    Join Date
    Apr 2011
    Posts
    62
    Rep Power
    4

    Default

    Dear Liverpoolfcfan

    sorry for the delay n my writing got busy with some other stuff
    Actually I am using php 5.1 . its cetnos 5.6 x 64 bit and I had just used yum to install php and even when I did a yum update php there was no new version avaliable
    i do have the rpm forge and epl repos

    i used the below url to install it

    PECL :: Package :: json

    and even there i noticed it latter that json_decode is built in 5.2

    but I did not yet test my mobile sync .. got busy with some stuff
    but quite positive it gonna work fine

    Thanks and regards

    simon

  9. #9
    liverpoolfcfan's Avatar
    liverpoolfcfan is offline Outstanding Member
    Join Date
    Oct 2009
    Location
    Dublin, IRELAND
    Posts
    712
    Rep Power
    6

    Default

    If you are only starting on CentOS 5.6 and have not set up users yet - then I would suggest before you start you uninstall php and php-*, and instead install php53 and the related php53-* extensions. These are standard CentOS distributions of php5.3 but cannot operate side-by-side with the older php packages.

  10. #10
    ben1967 is offline Senior Member
    Join Date
    Apr 2011
    Posts
    62
    Rep Power
    4

    Default

    Dear Liverpoolfcfan,

    I tested yesterday with my samsung smart phone and woww it works like a charm.. had no issues at all.
    but honestly all due credit to you guys

    by the Liverpoolfcfan i really do appreciate your above tip cause really used to have hard times regarding php and php53 with default yum

    once again thanks a million and God bless

    regards

    simon

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 1053
    Last Post: 08-10-2014, 06:37 PM
  2. [SOLVED] Z-push Zimbra backend workaround
    By Inchoate in forum Mobility
    Replies: 6
    Last Post: 01-19-2012, 04:22 AM
  3. [SOLVED] Z-push Zimbra backend workaround
    By Inchoate in forum Administrators
    Replies: 0
    Last Post: 10-31-2010, 07:06 AM
  4. Replies: 348
    Last Post: 10-11-2010, 05:39 AM
  5. Replies: 1
    Last Post: 03-24-2009, 11:02 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •