59177427 |
1 | <?php |
390372b4 |
2 | // |
3 | // BEFORE EDITING THIS FILE! |
4 | // |
5 | // Don't edit this file directly. Copy it to config.php before you |
6 | // edit it. However, it is best to use the configuration script |
7 | // conf.pl if at all possible. That is the easiest and cleanest way |
8 | // to configure. |
9 | // |
10 | |
f435778e |
11 | // This makes sure we don't load it dozens of times |
12 | // don't change this |
13 | if (defined('config_php')) |
14 | return; |
15 | define('config_php', true); |
16 | |
4011c3ca |
17 | // don't change |
78692381 |
18 | global $config_version; |
55b82481 |
19 | $config_version = "x64"; |
390372b4 |
20 | |
baf93783 |
21 | // Organization's logo picture (blank if none) |
78692381 |
22 | global $org_logo; |
001befaf |
23 | $org_logo = "../images/sm_logo.png"; |
baf93783 |
24 | |
25 | // Organization's name |
78692381 |
26 | global $org_name; |
baf93783 |
27 | $org_name = "SquirrelMail"; |
28 | |
29 | // Webmail Title |
30 | // This is the title that goes at the top of the browser window |
78692381 |
31 | global $org_title; |
baf93783 |
32 | $org_title = "SquirrelMail $version"; |
6ef7145f |
33 | |
34 | // Default language |
35 | // This is the default language. It is used as a last resort if SquirrelMail |
36 | // can't figure out which language to display. |
37 | // Use the two-letter code. |
38 | global $squirrelmail_default_language; |
4da27e4f |
39 | $squirrelmail_default_language = "en"; |
baf93783 |
40 | |
41 | // The server that your imap server is on |
78692381 |
42 | global $imapServerAddress, $imapPort; |
baf93783 |
43 | $imapServerAddress = "localhost"; |
44 | $imapPort = 143; |
45 | |
46 | // The domain where your email address is. |
47 | // Example: in "luke@usa.om.org", usa.om.org is the domain. |
48 | // this is for all the messages sent out. Reply address |
49 | // is generated by $username@$domain |
78692381 |
50 | global $domain; |
baf93783 |
51 | $domain = "mydomain.com"; |
52 | |
53 | // Your SMTP server and port number (usually the same as the IMAP server) |
78692381 |
54 | global $smtpServerAddress, $smtpPort; |
baf93783 |
55 | $smtpServerAddress = "localhost"; |
56 | $smtpPort = 25; |
57 | |
58 | // Uncomment this if you want to deliver locally using sendmail instead |
59 | // of connecting to a SMTP-server |
78692381 |
60 | // global $useSendmail, $sendmail_path; |
baf93783 |
61 | // $useSendmail = true; |
62 | // $sendmail_path = "/usr/sbin/sendmail"; |
63 | |
64 | // This is displayed right after they log in |
78692381 |
65 | global $motd; |
a37f3771 |
66 | $motd = ""; |
baf93783 |
67 | |
baf93783 |
68 | // Whether or not to use a special color for special folders. If not, special |
69 | // folders will be the same color as the other folders |
78692381 |
70 | global $use_special_folder_color; |
baf93783 |
71 | $use_special_folder_color = true; |
72 | |
51457ed2 |
73 | // The type of IMAP server you are running |
74 | // Valid type are the following (case is important). |
75 | // |
76 | // courier |
77 | // cyrus |
78 | // exchange |
79 | // uw |
6ef7145f |
80 | // other |
78692381 |
81 | global $imap_server_type; |
51457ed2 |
82 | $imap_server_type = "cyrus"; |
83 | |
f923b93d |
84 | // Rather than going to the signout.php page (which only allows you |
85 | // to sign back in), setting signout_page allows you to sign |
86 | // the user out and then redirect to whatever page you want. |
87 | // For instance, the following would return the user to your |
88 | // home page: $signout_page = "/"; |
89 | // Set to the empty string to continue to use the default signout page. |
55c61345 |
90 | global $signout_page; |
f923b93d |
91 | $signout_page = ""; |
92 | |
5479d709 |
93 | // Many servers store mail in your home directory. With this, they |
cf85d665 |
94 | // store them in a subdirectory: mail/ or Mail/, etc. If your |
5479d709 |
95 | // server does this, please set this to what the default mail folder |
96 | // should be. This is still a user preference, so they can change |
97 | // it if it is different for each user. |
98 | // |
99 | // Example: |
cf85d665 |
100 | // $default_folder_prefix = "mail/"; |
5479d709 |
101 | // -- or -- |
cf85d665 |
102 | // $default_folder_prefix = "Mail/folders/"; |
5479d709 |
103 | // |
104 | // If you do not use this, please set it to "". |
78692381 |
105 | global $default_folder_prefix; |
cf85d665 |
106 | $default_folder_prefix = ""; |
107 | // If you do not wish to give them the option to change this, set it to false. |
108 | // Otherwise, if it is true, they can change the folder prefix to be anything. |
78692381 |
109 | global $show_prefix_option; |
cf85d665 |
110 | $show_prefix_option = false; |
5479d709 |
111 | |
ca1f4a68 |
112 | // The following are related to deleting messages. |
113 | // $move_to_trash |
114 | // - if this is set to "true", when "delete" is pressed, it |
115 | // will attempt to move the selected messages to the folder |
116 | // named $trash_folder. If it's set to "false", we won't even |
117 | // attempt to move the messages, just delete them. |
118 | // $trash_folder |
119 | // - This is the path to the default trash folder. For Cyrus |
120 | // IMAP, it would be "INBOX.Trash", but for UW it would be |
121 | // "Trash". We need the full path name here. |
122 | // $auto_expunge |
123 | // - If this is true, when a message is moved or copied, the |
124 | // source mailbox will get expunged, removing all messages |
125 | // marked "Deleted". |
e5370d43 |
126 | // $sent_folder |
127 | // - This is the path to where Sent messages will be stored. |
baf93783 |
128 | |
78692381 |
129 | global $default_move_to_trash, $default_move_to_sent, $trash_folder, |
21420f0f |
130 | $auto_expunge, $sent_folder, $draft_folder, $default_save_as_draft; |
baf93783 |
131 | $default_move_to_trash = true; |
2f287147 |
132 | $default_move_to_sent = true; |
21420f0f |
133 | $default_save_as_draft = true; |
baf93783 |
134 | $trash_folder = "INBOX.Trash"; |
135 | $auto_expunge = true; |
e5370d43 |
136 | $sent_folder = "INBOX.Sent"; |
21420f0f |
137 | $draft_folder = "INBOX.Drafts"; |
baf93783 |
138 | |
ca1f4a68 |
139 | // Special Folders are folders that can't be manipulated like normal |
140 | // user created folders can. A couple of examples would be |
141 | // "INBOX.Trash", "INBOX.Drafts". We have them set to Netscape's |
142 | // default mailboxes, but this obviously can be changed. To add one, |
143 | // just add a new number to the array. |
baf93783 |
144 | |
78692381 |
145 | global $special_folders; |
baf93783 |
146 | $special_folders[0] = "INBOX"; // The first one has to be the inbox (whatever the name is) |
147 | $special_folders[1] = $trash_folder; |
a3886f39 |
148 | $special_folders[2] = $sent_folder; |
baf93783 |
149 | $special_folders[3] = "INBOX.Drafts"; |
150 | $special_folders[4] = "INBOX.Templates"; |
151 | |
78546ff2 |
152 | // Should I create the Sent and Trash folders automatically for a new |
153 | // user that doesn't already have them created? |
154 | global $auto_create_special; |
155 | $auto_create_special = true; |
156 | |
baf93783 |
157 | // Whether or not to list the special folders first (true/false) |
78692381 |
158 | global $list_special_folders_first; |
baf93783 |
159 | $list_special_folders_first = true; |
160 | |
161 | // Are all your folders subfolders of INBOX (i.e. cyrus IMAP server) |
162 | // If you are not sure, set it to false. |
78692381 |
163 | global $default_sub_of_inbox; |
baf93783 |
164 | $default_sub_of_inbox = true; |
165 | |
ca1f4a68 |
166 | // Some IMAP daemons (UW) handle folders weird. They only allow a |
167 | // folder to contain either messages or other folders, not both at |
168 | // the same time. This option controls whether or not to display an |
169 | // option during folder creation. The option toggles which type of |
170 | // folder it should be. |
baf93783 |
171 | // |
ca1f4a68 |
172 | // If this option confuses you, make it "true". You can't hurt |
173 | // anything if it's true, but some servers will respond weird if it's |
174 | // false. (Cyrus works fine whether it's true OR false). |
78692381 |
175 | global $show_contain_subfolders_option; |
baf93783 |
176 | $show_contain_subfolders_option = false; |
177 | |
17ce8467 |
178 | // This option controls what character set is used when sending mail |
179 | // and when sending HTMl to the browser. Do not set this to US-ASCII, |
180 | // use ISO-8859-1 instead. For cyrillic it is best to use KOI8-R, |
181 | // since this implementation is faster than the alternatives. |
78692381 |
182 | global $default_charset; |
17ce8467 |
183 | $default_charset = "iso-8859-1"; |
184 | |
baf93783 |
185 | // Path to the data/ directory |
ca1f4a68 |
186 | // It is a possible security hole to have a writable directory |
187 | // under the web server's root directory (ex: /home/httpd/html). |
188 | // For this reason, it is possible to put the data directory |
189 | // anywhere you would like. The path name can be absolute or |
190 | // relative (to the config directory). It doesn't matter. Here are |
191 | // two examples: |
baf93783 |
192 | // |
193 | // Absolute: |
194 | // $data_dir = "/usr/local/squirrelmail/data/"; |
195 | // |
196 | // Relative (to the config directory): |
197 | // $data_dir = "../data/"; |
78692381 |
198 | global $data_dir; |
baf93783 |
199 | $data_dir = "../data/"; |
ca1f4a68 |
200 | |
201 | // Path to directory used for storing attachments while a mail is |
202 | // being sent. There are a few security considerations regarding this |
203 | // directory: |
204 | // - It should have the permission 733 (rwx-wx-wx) to make it |
205 | // impossible for a random person with access to the webserver to |
206 | // list files in this directory. Confidential data might be laying |
207 | // around there |
208 | // - Since the webserver is not able to list the files in the content |
209 | // is also impossible for the webserver to delete files lying around |
210 | // there for too long. |
211 | // - It should probably be another directory than data_dir. |
78692381 |
212 | global $attachment_dir; |
4df48d80 |
213 | $attachment_dir = $data_dir; |
2848c630 |
214 | |
3392dc86 |
215 | // Hash level used for data directory. |
216 | global $dir_hash_level; |
217 | $dir_hash_level = 0; |
218 | |
61d9e885 |
219 | // This is the default size of the folder list. Default is 150, |
2848c630 |
220 | // but you can set it to whatever you wish. |
78692381 |
221 | global $default_left_size; |
61d9e885 |
222 | $default_left_size = 150; |
17ce8467 |
223 | |
985f7c88 |
224 | // Some IMAP servers allow a username (like "bob") to log in if they use |
225 | // uppercase in their name (like "Bob" or "BOB"). This creates extra |
226 | // preference files. Toggling this option to true will transparently |
227 | // change all usernames to lowercase. |
78692381 |
228 | global $force_username_lowercase; |
985f7c88 |
229 | $force_username_lowercase = false; |
230 | |
231 | |
17ce8467 |
232 | // Themes |
233 | // You can define your own theme and put it in this directory. You must |
234 | // call it as the example below. You can name the theme whatever you |
235 | // want. For an example of a theme, see the ones included in the config |
236 | // directory. |
237 | // |
17ce8467 |
238 | // To add a new theme to the options that users can choose from, just add |
239 | // a new number to the array at the bottom, and follow the pattern. |
78692381 |
240 | global $theme; |
17ce8467 |
241 | |
242 | // The first one HAS to be here, and is your system's default theme. |
243 | // It can be any theme you want |
390372b4 |
244 | $theme[0]["PATH"] = "../themes/default_theme.php"; |
17ce8467 |
245 | $theme[0]["NAME"] = "Default"; |
246 | |
390372b4 |
247 | $theme[1]["PATH"] = "../themes/plain_blue_theme.php"; |
6170c5b6 |
248 | $theme[1]["NAME"] = "Plain Blue"; |
17ce8467 |
249 | |
390372b4 |
250 | $theme[2]["PATH"] = "../themes/sandstorm_theme.php"; |
6170c5b6 |
251 | $theme[2]["NAME"] = "Sand Storm"; |
17ce8467 |
252 | |
390372b4 |
253 | $theme[3]["PATH"] = "../themes/deepocean_theme.php"; |
6170c5b6 |
254 | $theme[3]["NAME"] = "Deep Ocean"; |
17ce8467 |
255 | |
390372b4 |
256 | $theme[4]["PATH"] = "../themes/slashdot_theme.php"; |
6170c5b6 |
257 | $theme[4]["NAME"] = "Slashdot"; |
17ce8467 |
258 | |
390372b4 |
259 | $theme[5]["PATH"] = "../themes/purple_theme.php"; |
6170c5b6 |
260 | $theme[5]["NAME"] = "Purple"; |
17ce8467 |
261 | |
390372b4 |
262 | $theme[6]["PATH"] = "../themes/forest_theme.php"; |
6170c5b6 |
263 | $theme[6]["NAME"] = "Forest"; |
17ce8467 |
264 | |
390372b4 |
265 | $theme[7]["PATH"] = "../themes/ice_theme.php"; |
6170c5b6 |
266 | $theme[7]["NAME"] = "Ice"; |
17ce8467 |
267 | |
390372b4 |
268 | $theme[8]["PATH"] = "../themes/seaspray_theme.php"; |
6170c5b6 |
269 | $theme[8]["NAME"] = "Sea Spray"; |
a871010c |
270 | |
390372b4 |
271 | $theme[9]["PATH"] = "../themes/bluesteel_theme.php"; |
9d1c518c |
272 | $theme[9]["NAME"] = "Blue Steel"; |
59eff34d |
273 | |
390372b4 |
274 | $theme[10]["PATH"] = "../themes/dark_grey_theme.php"; |
6170c5b6 |
275 | $theme[10]["NAME"] = "Dark Grey"; |
276 | |
390372b4 |
277 | $theme[11]["PATH"] = "../themes/high_contrast_theme.php"; |
6170c5b6 |
278 | $theme[11]["NAME"] = "High Contrast"; |
24fc5dd2 |
279 | |
8af40496 |
280 | $theme[12]["PATH"] = "../themes/black_bean_burrito_theme.php"; |
281 | $theme[12]["NAME"] = "Black Bean Burrito"; |
0493a8d9 |
282 | |
944eb785 |
283 | $theme[13]["PATH"] = "../themes/servery_theme.php"; |
284 | $theme[13]["NAME"] = "Servery"; |
285 | |
6e0fa5e6 |
286 | $theme[14]["PATH"] = "../themes/maize_theme.php"; |
287 | $theme[14]["NAME"] = "Maize"; |
288 | |
289 | $theme[15]["PATH"] = "../themes/bluesnews_theme.php"; |
290 | $theme[15]["NAME"] = "BluesNews"; |
40c9b37a |
291 | |
292 | $theme[16]["PATH"] = "../themes/deepocean2_theme.php"; |
293 | $theme[16]["NAME"] = "Deep Ocean 2"; |
6e0fa5e6 |
294 | |
94c9adcb |
295 | $theme[17]["PATH"] = "../themes/blue_gray_theme.php"; |
296 | $theme[17]["NAME"] = "Blue Gray"; |
297 | |
a610c5e4 |
298 | $theme[18]["PATH"] = "../themes/dompie_theme.php"; |
299 | $theme[18]["NAME"] = "Dompie"; |
300 | |
301 | $theme[19]["PATH"] = "../themes/methodical_theme.php"; |
302 | $theme[19]["NAME"] = "Methodical"; |
303 | |
a1b33f64 |
304 | $theme[20]["PATH"] = "../themes/greenhouse_effect.php"; |
305 | $theme[20]["NAME"] = "Greenhouse Effect (Changes)"; |
306 | |
307 | $theme[21]["PATH"] = "../themes/in_the_pink.php"; |
308 | $theme[21]["NAME"] = "In The Pink (Changes)"; |
309 | |
310 | $theme[22]["PATH"] = "../themes/kind_of_blue.php"; |
311 | $theme[22]["NAME"] = "Kind of Blue (Changes)"; |
312 | |
313 | $theme[23]["PATH"] = "../themes/monostochastic.php"; |
314 | $theme[23]["NAME"] = "Monostochastic (Changes)"; |
315 | |
316 | $theme[24]["PATH"] = "../themes/shades_of_grey.php"; |
317 | $theme[24]["NAME"] = "Shades of Grey (Changes)"; |
318 | |
319 | $theme[25]["PATH"] = "../themes/spice_of_life.php"; |
320 | $theme[25]["NAME"] = "Spice of Life (Changes)"; |
321 | |
322 | $theme[26]["PATH"] = "../themes/spice_of_life_lite.php"; |
323 | $theme[26]["NAME"] = "Spice of Life - Lite (Changes)"; |
324 | |
325 | $theme[27]["PATH"] = "../themes/spice_of_life_dark.php"; |
326 | $theme[27]["NAME"] = "Spice of Life - Dark (Changes)"; |
327 | |
59eff34d |
328 | // LDAP server(s) |
329 | // |
330 | // Array of arrays with LDAP server parameters. See |
331 | // functions/abook_ldap_server.php for a list of possible |
332 | // parameters |
74a7d5b0 |
333 | // |
78692381 |
334 | global $ldap_server; |
335 | // |
74a7d5b0 |
336 | // EXAMPLE: |
337 | // |
338 | // $ldap_server[0] = Array( |
339 | // "host" => "memberdir.netscape.com", |
340 | // "name" => "Netcenter Member Directory", |
341 | // "base" => "ou=member_directory,o=netcenter.com"); |
59eff34d |
342 | |
6ff1c690 |
343 | // Database-driven private addressbooks |
344 | // |
345 | // DSN (Data Source Name) for a database where the private |
346 | // addressbooks are stored. See doc/db-backend.txt for more info. |
347 | // If it is not defined, the addressbooks are stored in files |
348 | // in the data dir. |
349 | // |
52c0ac47 |
350 | // global $addrbook_dsn; |
6ff1c690 |
351 | // $addrbook_dsn = 'mysql://user:pass@hostname/dbname'; |
1e0628fb |
352 | |
59eff34d |
353 | |
3806fa52 |
354 | // you have an option to chose between javascript or html version of |
355 | // address book searching. |
356 | // true = javascript |
357 | // false = html |
78692381 |
358 | global $default_use_javascript_addr_book; |
3806fa52 |
359 | $default_use_javascript_addr_book = false; |
360 | |
24fc5dd2 |
361 | // these next two options set the defaults for the way that the users see |
362 | // their folder list. |
363 | // $default_unseen_notify specifies whether or not the users will see |
364 | // the number of unseen in each folder by default |
365 | // and alsy which folders to do this to. |
366 | // 1=none, 2=inbox, 3=all |
367 | // $default_unseen_type specifies the type of notification to give the |
368 | // users by default. |
369 | // 1=(4), 2=(4,25) |
78692381 |
370 | global $default_unseen_notify, $default_unseen_type; |
24fc5dd2 |
371 | $default_unseen_notify = 2; |
372 | $default_unseen_type = 1; |
d47b2518 |
373 | |
374 | // If you are running on a machine that doesn't have the tm_gmtoff |
375 | // value in your time structure and if you are in a time zone that |
376 | // has a negative offset, you need to set this value to 1. |
377 | // This is typically people in the US that are running Solaris 7. |
78692381 |
378 | global $invert_time; |
d47b2518 |
379 | $invert_time = false; |
0ae64f08 |
380 | |
78692381 |
381 | global $plugins; |
ea0e9243 |
382 | // To install plugins, just add elements to this array that have |
383 | // the plugin directory name relative to the /plugins/ directory. |
384 | // For instance, for the "sqclock" plugin, you'd put a line like |
385 | // the following: |
386 | // $plugins[0] = "sqclock"; |
88663c22 |
387 | // $plugins[1] = "attachment_common"; |
ea0e9243 |
388 | |
88663c22 |
389 | // Do not add the closing PHP tag here just because we want to avoid |
390 | // the potential for parsing errors if there is a newline added |