Closed erwinwildenburg closed 11 years ago
Hi,
BackendCombined (using IMAP) doesn't requires php-mapi
Look at your backend/combined/config.php, you must configure some bits also there (and forget to remove the lines for unused backends)
Regards
Thx it fixed the issue
I'm trying to setup PHP-Push-2 however for some reason it requires php5-mapi? Ofcourse I can just install it but it requires almost a complete zarafa setup...
Using iRedMail for the mail server setup and SOGo for everything else.
Here is my config.php: <?php /***
/**
Default settings */ // Defines the default time zone, change e.g. to "Europe/London" if necessary define('TIMEZONE', '');
// Defines the base path on the server define('BASE_PATH', dirname($_SERVER['SCRIPT_FILENAME']). '/');
// Try to set unlimited timeout define('SCRIPT_TIMEOUT', 0);
//Max size of attachments to display inline. Default is 2 MB define('MAX_EMBEDDED_SIZE', 2097152);
/**
/**
LOGLEVEL_WARN and LOGLEVEL_INFO level entries. */ define('LOGFILEDIR', '/var/log/z-push/'); define('LOGFILE', LOGFILEDIR . 'z-push.log'); define('LOGERRORFILE', LOGFILEDIR . 'z-push-error.log'); define('LOGLEVEL', LOGLEVEL_INFO); define('LOGAUTHFAIL', false);
// To save e.g. WBXML data only for selected users, add the usernames to the array // The data will be saved into a dedicated file per user in the LOGFILEDIR define('LOGUSERLEVEL', LOGLEVEL_DEVICEID); $specialLogUsers = array();
/**
Mobile settings */ // Device Provisioning define('PROVISIONING', true);
// This option allows the 'loose enforcement' of the provisioning policies for older // devices which don't support provisioning (like WM 5 and HTC Android Mail) - dw2412 contribution // false (default) - Enforce provisioning for all devices // true - allow older devices, but enforce policies on devices which support it define('LOOSE_PROVISIONING', false);
// Default conflict preference // Some devices allow to set if the server or PIM (mobile) // should win in case of a synchronization conflict // SYNC_CONFLICT_OVERWRITE_SERVER - Server is overwritten, PIM wins // SYNC_CONFLICT_OVERWRITE_PIM - PIM is overwritten, Server wins (default) define('SYNC_CONFLICT_DEFAULT', SYNC_CONFLICT_OVERWRITE_PIM);
// Global limitation of items to be synchronized // The mobile can define a sync back period for calendar and email items // For large stores with many items the time period could be limited to a max value // If the mobile transmits a wider time period, the defined max value is used // Applicable values: // SYNC_FILTERTYPE_ALL (default, no limitation) // SYNC_FILTERTYPE_1DAY, SYNC_FILTERTYPE_3DAYS, SYNC_FILTERTYPE_1WEEK, SYNC_FILTERTYPE_2WEEKS, // SYNC_FILTERTYPE_1MONTH, SYNC_FILTERTYPE_3MONTHS, SYNC_FILTERTYPE_6MONTHS define('SYNC_FILTERTIME_MAX', SYNC_FILTERTYPE_ALL);
// Interval in seconds before checking if there are changes on the server when in Ping. // It means the highest time span before a change is pushed to a mobile. Set it to // a higher value if you have a high load on the server. define('PING_INTERVAL', 30);
// Interval in seconds to force a re-check of potentially missed notifications when // using a changes sink. Default are 300 seconds (every 5 min). // This can also be disabled by setting it to false define('SINK_FORCERECHECK', 300);
// Set the fileas (save as) order for contacts in the webaccess/webapp/outlook. // It will only affect new/modified contacts on the mobile which then are synced to the server. // Possible values are: // SYNC_FILEAS_FIRSTLAST - fileas will be "Firstname Middlename Lastname" // SYNC_FILEAS_LASTFIRST - fileas will be "Lastname, Firstname Middlename" // SYNC_FILEAS_COMPANYONLY - fileas will be "Company" // SYNC_FILEAS_COMPANYLAST - fileas will be "Company (Lastname, Firstname Middlename)" // SYNC_FILEAS_COMPANYFIRST - fileas will be "Company (Firstname Middlename Lastname)" // SYNC_FILEAS_LASTCOMPANY - fileas will be "Lastname, Firstname Middlename (Company)" // SYNC_FILEAS_FIRSTCOMPANY - fileas will be "Firstname Middlename Lastname (Company)" // The company-fileas will only be set if a contact has a company set. If one of // company-fileas is selected and a contact doesn't have a company set, it will default // to SYNC_FILEAS_FIRSTLAST or SYNC_FILEAS_LASTFIRST (depending on if last or first // option is selected for company). // If SYNC_FILEAS_COMPANYONLY is selected and company of the contact is not set // SYNC_FILEAS_LASTFIRST will be used define('FILEAS_ORDER', SYNC_FILEAS_LASTFIRST);
// Amount of items to be synchronized per request // Normally this value is requested by the mobile. Common values are 5, 25, 50 or 100. // Exporting too much items can cause mobile timeout on busy systems. // Z-Push will use the lowest value, either set here or by the mobile. // default: 100 - value used if mobile does not limit amount of items define('SYNC_MAX_ITEMS', 100);
/**
Backend settings */ // The data providers that we are using (see configuration below) define('BACKEND_PROVIDER', "BackendCombined");
// **** // 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', '127.0.0.1'); // connecting to default port (143) define('IMAP_PORT', 143); // best cross-platform compatibility (see http://php.net/imap_open 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_USEIMAPMAIL', true); /* BEGIN fmbiete's contribution r1527, ZP-319 / // list of folders we want to exclude from sync. Names, or part of it, separated by | // example: dovecot.sieve|archive|spam define('IMAP_EXCLUDEDFOLDERS', ''); / END fmbiete's contribution r1527, ZP-319 */
// **** // BackendMaildir settings // **** define('MAILDIR_BASE', '/tmp'); define('MAILDIR_SUBDIR', 'Maildir');
// ** // BackendVCardDir settings // ** define('VCARDDIR_DIR', '/home/%u/.kde/share/apps/kabc/stdvcf');
// ** // BackendCalDAV settings // ** define('CALDAV_SERVER', 'https://webmail.example.net'); define('CALDAV_PORT', '443'); define('CALDAV_PATH', '/SOGo/dav/%u/'); define('CALDAV_PERSONAL', 'personal'); //Personal CalDAV folder
// ** // BackendCardDAV settings // ** define('CARDDAV_SERVER', 'https://webmail.example.net'); define('CARDDAV_PORT', '443'); define('CARDDAV_PATH', '/SOGo/dav/%u/Contacts/'); define('CARDDAV_PRINCIPAL', 'personal'); //Personal CardDAV folder
// ** // BackendLDAP settings // ** define('LDAP_SERVER', '127.0.0.1'); define('LDAP_SERVER_PORT', '389'); define('LDAP_USER_DN', 'cn=vmail,dc=example,dc=net'); define('LDAP_BASE_DNS', 'Contacts:o=domains,dc=example,dc=net'); //Multiple values separator is |
/**
/**
added/modified folders. */
$additionalFolders = array( // demo entry for the synchronization of contacts from the public folder. // uncomment (remove '/' '/') and fill in the folderid / array( 'store' => "SYSTEM", 'folderid' => "", 'name' => "Public Contacts", 'type' => SYNC_FOLDER_TYPE_USER_CONTACT, ), / );
?>