summaryrefslogtreecommitdiff
path: root/conf/templates/resmgr.conf.template.in
blob: 7ad9aea417bd3f745755544cf8d8f6303a54ef1e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
KOLAB_META_START
TARGET=@resmgr_confdir@/kolabfilter.conf
PERMISSIONS=0640
OWNERSHIP=@resmgr_conffile_usr@:@resmgr_conffile_grp@
KOLAB_META_END
<?php

/*  
 *  COPYRIGHT
 *  ---------
 *
 *  See docs/AUTHORS file
 *
 *
 *  LICENSE
 *  -------
 *
 *  This program is free software; you can redistribute it and/or modify
 *  it under the terms of the GNU General Public License as published by
 *  the Free Software Foundation; either version 2 of the License, or
 *  (at your option) any later version.
 *
 *  This program is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU General Public License for more details.
 *
 *  You should have received a copy of the GNU General Public License
 *  along with this program; if not, write to the Free Software
 *  Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 *
 *  $Revision$
 *
 *  ABOUT
 *  -----
 *
 *  This file provides configuration settings for both the
 *  kolabfilter.php and the kolabmailboxfilter.php scripts.
 *
 */
global $conf;

$conf = array();

/* Cyrus server connection string */
@@@if cyrus-imap@@@
$conf['kolab']['imap']['server'] = '@@@connect_addr@@@';
@@@else@@@
$conf['kolab']['imap']['server'] = '@@@local_addr@@@';
@@@endif@@@

/* Local delivery backend (default LMTP) */
$conf['kolab']['filter']['delivery_backend'] = 'lmtp';

/* LMTP settings (Cyrus IMAPd usually offers LMTP on port 2003) */
$conf['kolab']['filter']['lmtp_host'] = '@@@local_addr@@@';
$conf['kolab']['filter']['lmtp_port'] = 2003;

/* SMTP settings (Kolab Postfix usually offers reinjection port on
 * 10025)
 */
$conf['kolab']['filter']['smtp_host'] = '@@@local_addr@@@';
$conf['kolab']['filter']['smtp_port'] = 10025;

/* Local IP address of the mailserver for bypassing content filters */
$conf['kolab']['filter']['local_addr'] = '@@@local_addr@@@';

/* What is our default mail domain? This is used if any users do not
 * have '@domain' specified after their username as part of their
 * email address.
 */
$conf['kolab']['filter']['email_domain'] = '@@@postfix-mydomain@@@';

/* List of kolab hosts that are privileged */
$conf['kolab']['filter']['kolabhosts'] = '@@@kolabhost|join(,)@@@';

/* List privileged networks */
$conf['kolab']['filter']['privileged_networks'] = '@@@postfix-mynetworks|join(,)@@@';

/* Are we using virtual domains with Cyrus? */
$conf['kolab']['filter']['virtual_domains'] = true;

/* Should we append domains to mailbox URIs? This only applies when
 * virtual_domains is true, and when using manager accounts.
 */
$conf['kolab']['filter']['append_domains'] = false;

/* Should we make sure that the sender and From header match for mail
 * that origins on this server?
 */
@@@if kolabfilter-verify-from-header@@@
$conf['kolab']['filter']['verify_from_header'] = ('@@@kolabfilter-verify-from-header@@@'=='TRUE');
@@@else@@@
$conf['kolab']['filter']['verify_from_header'] = false;
@@@endif@@@

/* Should we perform this check on mail from our
 * subdomains too?
 */
$conf['kolab']['filter']['verify_subdomains'] = true;

/* Should the Sender: header be used over From: if present? */
@@@if kolabfilter-allow-sender-header@@@
$conf['kolab']['filter']['allow_sender_header'] = ('@@@kolabfilter-allow-sender-header@@@'=='TRUE');
@@@else@@@
$conf['kolab']['filter']['allow_sender_header'] = false;
@@@endif@@@

/* Should reject messages with From headers that dont match
 * the envelope? Default is to rewrite the header
 */
@@@if kolabfilter-reject-forged-from-header@@@
$conf['kolab']['filter']['reject_forged_from_header'] = ('@@@kolabfilter-reject-forged-from-header@@@'=='TRUE');
@@@else@@@
$conf['kolab']['filter']['reject_forged_from_header'] = false;
@@@endif@@@

/* Text to be inserted in From: when rewriting untrusted mails */
// $conf['kolab']['filter']['untrusted_subject_insert'] = "(UNTRUSTED, sender is <%s>)";
// $conf['kolab']['filter']['unauthenticated_subject_insert'] = "(UNTRUSTED, sender <%s> is not authenticated)";

/* Should we allow forwarded ical messages from Outlook
 * by encapsulating them in a MIME multipart
 */
$conf['kolab']['filter']['allow_outlook_ical_forward']  = true;

/* What is the address of the LDAP server address where user objects
 * reside
 */
$conf['kolab']['ldap']['server'] = '@@@ldap_uri@@@';

/* What is the Base DN of our LDAP database? */
$conf['kolab']['ldap']['basedn'] = '@@@base_dn@@@';

/* What DN should we use to bind to the LDAP server? */
$conf['kolab']['ldap']['phpdn'] = '@@@php_dn@@@';

/* What password should we use with the above DN when binding? */
$conf['kolab']['ldap']['phppw'] = '@@@php_pw@@@';

/**
 * If you use customized LDAP attributes on your LDAP server the
 * following configuration setting allows you to map the standard
 * Kolab attribute names to your customizations.
 *
 * Specify the mapping line by line:
 *
 * $conf['kolab']['ldap']['map']['uid'] = 'uid2';
 * $conf['kolab']['ldap']['map']['mobile'] = 'handy';
 *
 * or use a hash structure:
 *
 * $conf['kolab']['ldap']['map'] = array('uid' => 'uid2',
 *                                       'mobile' => 'handy');
 *
 */
//$conf['kolab']['ldap']['map']['uid'] = 'uid2';

/* What account should we use to read/write calendar data? This
 * account should have access to the calendar mailbox of all
 * resource/group mailboxes.
 */
$conf['kolab']['filter']['calendar_id'] = '@@@calendar_id@@@';
$conf['kolab']['filter']['calendar_pass'] = '@@@calendar_pw@@@';

/* What is the name of the users' calendar mailbox?  This is only used
 * when the user does not already have a primary calendar folder
 * (search via Kolab annotation)
 */
$conf['kolab']['filter']['calendar_store'] = 'Calendar';

/* Where can we get free/busy information from? */
$conf['kolab']['freebusy']['server']  = 'https://@@@fqdnhostname@@@/freebusy';

/* Temporary data storage for the scripts */
$conf['kolab']['filter']['tempdir'] = '@resmgr_tmpdir@';

/* Uncomment if the resource manager should generate translated messages. */
//$conf['kolab']['filter']['locale_path'] = '@resmgr_localedir@';
//$conf['kolab']['filter']['locale'] = 'de_DE';

/* PHP error logging */
$conf['kolab']['filter']['error_log'] = '@resmgr_logdir@/fatal.log';

/* Allow special users to log into the system */
$conf['kolab']['imap']['allow_special_users'] = true;

/* Do not record login attempts */
$conf['auth']['params']['login_block'] = false;

/* Set some configuration values for Horde_Secret:: */
$conf['session']['timeout'] = 0;
$conf['cookie']['path'] = '/';
$conf['cookie']['domain'] = '@@@postfix-mydomain@@@';
$conf['use_ssl'] = 0;

/* Horde::Log configuration
 *
 * PEAR_LOG_INFO is the suggested setting for tracking what happens to
 * your mails in the filters.
 */
$conf['log']['enabled']          = true;
$conf['log']['priority']         = PEAR_LOG_DEBUG; // Leave this on DEBUG for now. We just restructured the package...
$conf['log']['type']             = '@resmgr_log_type@';
$conf['log']['name']             = '@resmgr_log_name@';
$conf['log']['ident']            = 'Kolab Filter';
$conf['log']['params']['append'] = true;

//!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
//
// If you modify this file, please do not forget to ping upstream
// about synchronizing this file with 
//
// FIXME: The upstream reference point is currently missing!
//
//!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
?>