-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathconfig.inc.php-example
More file actions
97 lines (71 loc) · 3.78 KB
/
Copy pathconfig.inc.php-example
File metadata and controls
97 lines (71 loc) · 3.78 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
<?php
# Primary configuration options. This is where you should start.
define( 'ADMIN_USER', 'admin' );
// Where the root of this project is visible from web
define( 'BASE_URL', 'http'.( isset($_SERVER['HTTPS']) ? 's' : '' ).'://'.$_SERVER['HTTP_HOST'].strtr(dirname($_SERVER['SCRIPT_NAME']).'/',['//' => '/']) );
define( 'INCLUDE_DIR', 'includes' );
define( 'AUTHSIGN', "<a href='http://cyrup.sf.net' target='_blank'>cyrup.sf.net</a>" );
// "mysql" for MySQL, "mpdo" for mysql PDO, "pgsql" for PostgreSQL
define( 'DB_TYPE', 'mpdo' );
# SQL
define( 'SQL_HOST', 'localhost' );
define( 'SQL_DB', 'mail' );
define( 'SQL_USER', 'postfix' );
define( 'SQL_PASS', 'XXXXX' );
# Cyrus
define( 'CYRUS_HOST', 'localhost' );
define( 'CYRUS_PORT', 143 );
define( 'CYRUS_USER', 'cyrus' );
define( 'CYRUS_PASS', 'XXXXX' );
// Default delimiter is '.' Must be '/' when unixhierarchysep is set to 1 in imapd.conf
define( 'CYRUS_DELIMITER', '/' );
// Available: USERSUFFIX, USER@DOMAIN.TLD
// "USERSUFFIX": Mailboxes will be created with the suffix specified for each domain. For examaple "user_bogus", where suffix is "_bogus". Suffix may be empty only for one domain.
// "USER@DOMAIN.TLD" (RECOMMENDED): This style mailboxes works as virtual_mailbox_maps
define( 'MAILBOX_STYLE', 'USER@DOMAIN.TLD' ); // Available: USERSUFFIX, USER@DOMAIN.TLD
// it is possible to set DEFAULT_DOMAIN same as "defaultdomain" in imapd.conf if MAILBOX_STYLE is set to USER@DOMAIN.TLD. Works with saslauthd only
define( 'DEFAULT_DOMAIN', '' );
// The same meaning as for pam_mysql crypt parameter. See pam_mysql docs for details
// 0 - means clear text passwords,
// 1 - UNIX crypt()
// 2 - use MySQL's PASSWORD() NOT VALID FOR PGSQL
// 3 - MD5
// 4 - SHA1 (RECOMMENDED)
define( 'PASSWORD_CRYPT', 0 );
# User interface & miscelaneous options
// true - one html "<input type=text ..." field (usefull only with PASSWORD_CRYPT=0)
// false - two html "<input type=password ..." input fields (enter & reenter)
define( 'SHOW_PASSWORD', false );
// Minimal password length
define( 'MIN_PASSWORD_LENGTH', 4 );
// Default user quota in megabytes
define( 'DEFAULT_QUOTA', 50 );
define( 'MAX_QUOTA', 1000000000);
// Allow to disable user's quota
define( 'ALLOW_NO_QUOTA', 1 );
// Maximum lenght of email address
define( 'MAX_ACCOUNT_LENGTH', 100 );
// Report vacation status in list of accounts (may be slow)
define( 'SHOW_VACATION_LIST', 0 );
// Where to save list of domains. May be used to speed-up domain search. A webserver's user needs to have write permissions to this file.
define( 'DOMAIN_EXPORT_FILE', '/etc/postfix/local.domains' );
// Export system domain names for system aliases ( postmaster etc )
define( 'SYSTEM_ALIASES', '/etc/postfix/aliases.pcre' );
define ( 'SESS_LIFE' , get_cfg_var('session.gc_maxlifetime'));
// Folders to be created for new accounts (but not subscribed)
const IMAP_FOLDERS = [ 'SPAM' ];
define( 'JS_URL', BASE_URL.'js' );
define( 'IMAGES_URL', BASE_URL.'img' );
// Version. The bigger the better
define( 'VERSION', ' CyrUp v2.6' );
define( 'TITLE', VERSION.': ' );
# Debug level & verbose messages
define( 'D_NONE', 0 ); // no debug messages
define( 'D_INCLUDE', 1 ); // include() or require()
define( 'D_FUNCTION', 2 ); // most function calls
define( 'D_SQL_ERROR', 4 ); // sql errors
define( 'D_IMAP_ERROR', 8 ); // imap errors
define( 'D_ALL', 255 ); // full verbose
define ( 'DEBUG_LEVEL', D_SQL_ERROR | D_IMAP_ERROR );
# define ( 'DEBUG_LEVEL', D_ALL );
# define ( 'DEBUG_LEVEL', D_SQL_ERROR | D_FUNCTION | D_INCLUDE );