Results 1 to 8 of 8

Thread: GAB sync from other server

  1. #1
    Senior Member
    Join Date
    Dec 2012
    Posts
    133

    GAB sync from other server

    Hi,

    how do I configure a global addressbook sync (GAB) from an other server? I already share the states via sql and access and access the mail server via Kopano backend.

    When I start the sync, I get the following error:

    Code:
    [email protected]:/usr/share/z-push/tools/gab-sync# ./gab-sync.php -a sync
    PHP Warning:  mapi_logon_zarafa(): Unable to setup service for provider in /usr/share/z-push/tools/gab-sync/lib/kopano.php on line 73
    Kopano: login failed with error code: 0xFFFFFFFF80040111
    The server.log on the mail server says:

    Code:
    Tue Mar  7 15:59:53 2017: [warning] Failed to authenticate user SYSTEM from 192.168.211.21 using program php
    This is the config file:

    Code:
    // The field to be hashed that is unique and never changes
    // in the entire lifetime of the GAB entry.
    define('HASHFIELD', 'account');
    define('AMOUNT_OF_CHUNKS', 10);
    
    // SyncWorker implementation to be used
    define('SYNCWORKER', 'Kopano');
    
    // Unique id to find a contact from the GAB (value to be supplied by -u on the command line)
    // Zarafa supports: 'account' and 'smtpAddress' (email)
    define('UNIQUEID', 'account');
    
    define("SERVER", "http://192.168.213.40:236/zarafa");
    
    define('USERNAME', 'SYSTEM');
    define('PASSWORD', '');
    define('CERTIFICATE', null);
    define('CERTIFICATE_PASSWORD', null);
    
    // Store where the hidden folder is located.
    // For the public folder, use SYSTEM
    // to use another store, use the same as USERNAME
    // or another store where USERNAME has full access to.
    define('HIDDEN_FOLDERSTORE', 'SYSTEM');
    
    /// Do not change (unless you know exactly what you do)
    define('HIDDEN_FOLDERNAME', 'Z-Push-KOE-GAB');
    This is the same configuration (except the server as on the mail server).

    Yes - there is a firewall in between, but the packets are not getting blocked. I double checked it with tcpdump and I can see, that the packets are beeing received by the mail server.

    Any ideas?

  2. #2
    Zarafa

    Join Date
    Jan 2009
    Location
    Hanover, Germany
    Posts
    1,891
    In your above code block it says:

    Code:
    define('USERNAME', 'SYSTEM');
    define('PASSWORD', '');
    Here you have to enter a username and a password ;-)

    To be fair, it does say so at https://wiki.z-hub.io/display/ZP/Kopano+OL+Extension
    Regards Felix

    How to get Kopano

    Zarafa ALPHA/BETA/RC feedback in BETA forum please.
    Zarafa IRC chat: irc.freenode.com > #zarafa
    Zarafa documentation: http://documentation.zarafa.com/

    No support via PM! Please contact our sales team for an offer if you want my full attention.

  3. #3
    Senior Member
    Join Date
    Sep 2007
    Location
    Aka SebastianBrasil
    Posts
    1,467
    The configuration is the same as for e.g. kopano-admin or kopano-spooler being executed on another host. Either you use a username+password or you setup the certificates and the cert-password in the configuration.

  4. #4
    Senior Member
    Join Date
    Dec 2012
    Posts
    133
    Thanks, it works now.

    I also found out, that you have to fully sync Outlook before the GAB gets synced.
    Last edited by comfreak; 09-03-2017 at 08:14 AM.

  5. #5
    Senior Member
    Join Date
    Apr 2014
    Posts
    186
    Outlook seems to sync all email before contacts/appointments/tasks so my recommendation for syncing Outlook is always to set the client up initially with 1-month. That way after the 1 month's worth of email has synced the contacts/appointments/tasks will all get synced over.

    Thereafter, you can change the email duration up to All, if desired, and you are not waiting to get your contact list/calendar/etc populated.

  6. #6
    Senior Member
    Join Date
    Sep 2007
    Location
    Aka SebastianBrasil
    Posts
    1,467
    That's actually an interesting approach. Get one month worth of email and calendaring so you can start working and then do the rest.
    Perhaps something we can implement in KOE by default

  7. #7
    Senior Member
    Join Date
    Dec 2012
    Posts
    133
    This would be nice to implement by default. The rollout for 100 user at our company without such an function could be quite funny..

    "oh yeah, you can not use outlook right now, because it has to be synced fully"

    "how long will it take?"

    "let me see how many mails you have...oh...~100.000...jeah..some hours"

    nice...

  8. #8
    Senior Member
    Join Date
    Sep 2007
    Location
    Aka SebastianBrasil
    Posts
    1,467
    You could of course do that manually by setting it to one month and then later updating the profile to "all".
    But yeah, you can do that with a few, but for 100 it's not going to be fun.
    I am pretty sure there is a registry flag that controls this.

Similar Threads

  1. Sync WebDAV *.ics to Zarafa Server
    By Mempity in forum Administration and Integration
    Replies: 1
    Last Post: 22-08-2012, 02:53 PM
  2. Zafra MS Exchange Server sync
    By PackElend in forum Migration
    Replies: 1
    Last Post: 25-04-2012, 09:10 AM
  3. sync deletion of mails back to imap server
    By jabo10000 in forum Administration and Integration
    Replies: 4
    Last Post: 27-12-2011, 11:08 AM
  4. Zarafa Contacts sync with LDAP Server
    By chris84 in forum Administration and Integration Archives
    Replies: 4
    Last Post: 02-07-2010, 12:15 PM
  5. active sync keeps asking for echange server reference
    By awarring in forum Mobile devices Archives
    Replies: 5
    Last Post: 01-04-2010, 10:12 AM

Bookmarks

Posting Permissions

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