source: contrib/z-push/config.php.template @ 4903

Revision 4903, 5.1 KB checked in by thiagoaos, 13 years ago (diff)

Ticket #2192 - Adicionado configuração para definir nome da pasta Trash.

  • Property svn:executable set to *
Line 
1<?php
2/***********************************************
3* File      :   config.php
4* Project   :   Z-Push
5* Descr     :   Main configuration file
6*
7* Created   :   01.10.2007
8*
9* Zarafa Deutschland GmbH, www.zarafaserver.de
10* This file is distributed under GPL v2.
11* Consult LICENSE file for details
12************************************************/
13
14        // Defines the default time zone
15        if (function_exists("date_default_timezone_set")){
16                date_default_timezone_set("America/Sao_Paulo");
17        }
18
19        // Defines the base path on the server, terminated by a slash
20        define('BASE_PATH', dirname($_SERVER['SCRIPT_FILENAME']) . "/");
21
22        // Define the include paths
23        ini_set('include_path',
24                BASE_PATH. "include/" . PATH_SEPARATOR .
25                BASE_PATH. PATH_SEPARATOR .
26                ini_get('include_path') . PATH_SEPARATOR .
27                "/usr/share/php/" . PATH_SEPARATOR .
28                "/usr/share/php5/" . PATH_SEPARATOR .
29                "/usr/share/pear/");
30
31        define('STATE_DIR', 'state');
32
33        // Try to set unlimited timeout
34        define('SCRIPT_TIMEOUT', 0);
35
36        //Max size of attachments to display inline. Default is 1MB
37        define('MAX_EMBEDDED_SIZE', 1048576);
38
39        // Device Provisioning
40        define('PROVISIONING', true);
41
42        // This option allows the 'loose enforcement' of the provisioning policies for older
43        // devices which don't support provisioning (like WM 5 and HTC Android Mail) - dw2412 contribution
44        // false (default) - Enforce provisioning for all devices
45        // true - allow older devices, but enforce policies on devices which support it 
46        define('LOOSE_PROVISIONING', true);
47
48        // The data providers that we are using (see configuration below)
49        //$BACKEND_PROVIDER = "BackendIMAP";
50        //$BACKEND_PROVIDER = "BackendCalendarExpresso";
51        //$BACKEND_PROVIDER = "BackendContactsExpresso";
52        //$BACKEND_PROVIDER = "BackendVCDir";
53        //$BACKEND_PROVIDER = "BackendRSS";
54        $BACKEND_PROVIDER = "BackendProxy";
55        $BACKEND_EMAIL = "BackendIMAP";
56        $BACKEND_CONTACTS = "BackendContactsExpresso";
57        $BACKEND_CALENDAR = "BackendCalendarExpresso";
58
59        // ************************
60        //  BackendICS settings
61        // ************************
62
63        // Defines the server to which we want to connect
64        define('MAPI_SERVER', 'file:///var/run/zarafa');
65
66        // ************************
67        //  BackendIMAP settings
68        // ************************
69
70        // Defines the server to which we want to connect
71        // recommended to use local servers only
72        define('IMAP_SERVER', '10.200.112.132');
73        // connecting to default port (143)
74        define('IMAP_PORT', 143);
75        // best cross-platform compatibility (see http://php.net/imap_open for options)
76        define('IMAP_OPTIONS', '/notls/norsh');
77        // overwrite the "from" header if it isn't set when sending emails
78        // options: 'username'    - the username will be set (usefull if your login is equal to your emailaddress)
79        //        'domain'    - the value of the "domain" field is used
80        //        '@mydomain.com' - the username is used and the given string will be appended
81        define('IMAP_DEFAULTFROM', 'domain');
82        // copy outgoing mail to this folder. If not set z-push will try the default folders
83        define('IMAP_SENTFOLDER', 'INBOX/Sent');
84        // define('IMAP_TRASHFOLDER', 'INBOX/Lixeira');
85        //
86        // define('IMAP_DISPLAYNAME_SENTFOLDER', 'Enviados');
87        // define('IMAP_DISPLAYNAME_TRASHFOLDER', 'Lixeira');
88       
89        // ************************
90        //  BackendMaildir settings
91        // ************************
92        define('MAILDIR_BASE', '/tmp');
93        define('MAILDIR_SUBDIR', 'Maildir');
94
95        // **********************
96        //  BackendVCDir settings
97        // **********************
98        define('VCARDDIR_DIR', '/var/www/vcf');
99
100        // **********************
101        //  TRACE settings
102        //  When enabled it creates a file named trace-<USER-ID>.txt during sincronization
103        // **********************
104        // A string with User_Login that you want to trace or a boolean FALSE if you don't want to trace.   
105        define('TRACE_UID', '86928023953');
106        // TRACE_TYPE can be 'ALL', 'IMAP', 'CALENDAR' or 'CONTACTS'
107        define('TRACE_TYPE', 'IMAP');
108
109        // ****************************************************
110        //      LDAP Authentication settings
111        // ****************************************************   
112        // Set USER and PASSWORD if you are not using anonymous bind
113        // Must have read access to DN, UID and UIDNUMBER of all users
114        define("ANONYMOUS_BIND", false);
115        define("LDAP_BIND_USER", "cn=admin,ou=expressolivre,ou=corp,dc=serpro,dc=gov,dc=br");
116        define("LDAP_BIND_PASSWORD", "correio");
117
118        define("LDAP_HOST", "ldap://10.200.112.132/"); // Address of your LDAP server
119        define("LDAP_PORT", "389"); // Port of your LDAP server
120
121        // Search base & filter
122        define("LDAP_SEARCH_BASE", "dc=serpro,dc=gov,dc=br"); // Base path to search the filter. Example: dc=company,dc=com
123        define("LDAP_SEARCH_FILTER", "uid=SEARCHVALUE"); // The filter is the user login attribute. You can change only the "uid" by other attribute. The SEARCHVALUE string is replaced by the user login inside the backends.
124
125        // LDAP field mapping.
126        global $ldap_field_map;
127        $ldap_field_map = array(
128                DN                              => 'dn', // Change 'dn' only if you use other attribute name in your LDAP.
129                UID                             => 'uid', // Change 'uid' only if you use other attribute name in your LDAP.
130                UIDNUMBER       => 'uidnumber', // Change 'uidnumber' only if you use other attribute name in your LDAP.
131        );
132?>
Note: See TracBrowser for help on using the repository browser.