Repository navigation
Expand file tree
/
Copy pathsettings.php.default
More file actions
127 lines (109 loc) · 4.36 KB
/
Copy pathsettings.php.default
File metadata and controls
127 lines (109 loc) · 4.36 KB
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
<?php
/*
* This is the configuration file, in PHP format. In most cases, it's
* ok just to edit our settings, and remove the // comments.
*/
/*
* System "nodes" are the most important directives; they specify where
* your Halon mail gateway(s) are, and how to access it/them. It might be
* a good idea to read about authentication scripts on our wiki, to create
* specific access rights so that if this end-user web is compromised, your
* gateways are not. In some cases, even read-only access is good enough for
* this application.
*/
//$settings['node'][] = array(
// 'address' => 'https://10.2.0.30/',
// 'username' => 'admin',
// 'password' => 'admin',
// );
//$settings['node'][] = array(
// 'address' => 'https://10.2.0.31/',
// 'username' => 'admin',
// 'password' => 'admin',
// );
/*
* The API key is used by the Halon mail gateways to communicate with
* this application, such as creating database users when messages are
* quarantined, or doing black/whitelist lookups.
*/
//$settings['api-key'] = 'secret';
/*
* The "mail from" and "public-url" settings are used by this application
* as self identification, for example in mail such as forgot password
* reminders or digest lists.
*/
//$settings['mail']['from'] = 'Mail quarantine <postmaster@example.org>';
//$settings['public-url'] = 'http://10.2.0.166/enduser/';
/*
* It's possible to use this application completely without a database.
* However, features such as local users (if SMTP or LDAP authentication
* is not suitable) and black/whitelisting requires a database. You can use
* most databases, such as SQLite, MySQL and PostgreSQL. Below are a few
* examples. You should use PHP PDO format.
*/
//$settings['database']['dsn'] = 'sqlite:/tmp/foo.db';
//$settings['database']['dsn'] = 'pgsql:host=localhost;port=5432;dbname=spenduser;user=halon;password=halon';
//$settings['database']['dsn'] = 'mysql:host=localhost;port=5432;dbname=spenduser';
//$settings['database']['user'] = 'root';
//$settings['database']['password'] = '1';
/*
* Authentication is probably the second most important configuration
* directive, as it specifies how end-users should identify themselves.
* You can use the following types:
* - LDAP, against for example an Exchange server
* - SMTP (SASL), against a mail server, if the username is an e-mail
* - Database, populated by the Halon mail gateways when mail are quarantined
* - Local accounts, statically configured in this file (with access rights).
* Use lower case letters when manually adding an access level.
*/
//$settings['authentication'][] = array(
// 'type' => 'database',
// );
//$settings['authentication'][] = array(
// 'type' => 'account',
// 'access' => array(
// 'domain' => array('halonsecurity.com'),
// 'mail' => array('support@halon.se')
// ),
// 'username' => 'foo',
// 'password' => 'foo',
// );
//$settings['authentication'][] = array(
// 'type' => 'ldap',
// 'uri' => 'ldap://10.2.7.2',
// 'base_dn' => 'CN=Users,DC=dev,DC=halon,DC=local',
// 'schema' => 'msexchange',
// );
//$settings['authentication'][] = array(
// 'type' => 'smtp',
// 'host' => '10.2.0.30',
// 'port' => 25,
// );
/*
* The quarantine filter is used to restrict the end-user access to
* only certain quarantines, in case you have multiple quarantines with
* different purposes.
*/
//$settings['quarantine-filter'][] = 'mailquarantine:1';
//$settings['quarantine-filter'][] = 'mailquarantine:2';
/*
* The default filter-pattern to use when creating additional
* inbound/outbound restrictions are "{from} or {to}", however
* in some cases it's necessary to know if the message is
* inbound or outbound.
*/
//$settings['filter-pattern'] = '{from} server=mailserver:2 or {to} server=mailserver:1';
/*
* It's possible to send "digest" messages with a list of what's in
* the quarantine. It is added as a cron job, to be run every 24 hours:
* # php cron.php.txt digestday
* and it will use the authentication sources to find users. To use LDAP,
* add a 'bind_dn' and 'bind_password' to your LDAP source. To use static
* users (type account), add a 'email' to them. To send digest messages to
* EVERY RECIPIENT (user or not) that has quarantine messages, enable the
* to-all option below. To have a "direct release link" in the messages,
* enable the digest secret below.
*/
//$settings['digest']['to-all'] = true;
//$settings['digest']['secret'] = 'badsecret';
?>