-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdefine_vars.php
63 lines (56 loc) · 1.29 KB
/
define_vars.php
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
<?php
// NOTE: All keys and values MUST be in lower case here.
/**
* The target IMAP server
*/
global $TARGETHOST;
$TARGETHOST = "mail.example.org";
/**
* An array of trusted domains.
* Requests with any domains not in this array shall be denied
*/
$TRUSTEDDOMAINS = [
"example.org",
"example.com"
];
global $TRUSTEDDOMAINS;
/**
* An array to find a mailserver by domain or provider name
*/
global $HOSTS;
$HOSTS = array(
'example.org' => 'mail.example.org',
'example.com' => 'imap.example.com',
'examplemail' => 'imap.example.net',
);
/**
* An array defining if the username equals to the email address
* or if the username is the user-part in [email protected]
*
* true, if the username is the same as the email address
* false, if the username is the user-part in '[email protected]'
*/
global $USERISEMAIL;
$USERISEMAIL = array(
'example.org' => true,
'example.com' => true
);
/**
* An array defining blocked values.
* This list is utilized to ensure that no unwanted
* commands are smuggled in as a user-provided value.
*
* Regardless of this list, any arguments to be passed to
* the system MUST be used with 'escapeshellcmd($args)'.
*/
global $BLOCKEDVALUES;
$BLOCKEDVALUES = array(
'\s',
'\n',
' ',
'sudo ',
'su ',
'rm ',
'|'
);
?>