3 0fd75c45 2022-07-30 mischa // Postfix Admin
4 0fd75c45 2022-07-30 mischa // by Mischa Peters <mischa at high5 dot net>
5 0fd75c45 2022-07-30 mischa // Copyright (c) 2002 - 2005 High5!
6 0fd75c45 2022-07-30 mischa // License Info: http://www.postfixadmin.com/?file=LICENSE.TXT
8 0fd75c45 2022-07-30 mischa // File: config.inc.php
10 0fd75c45 2022-07-30 mischa if (ereg ("config.inc.php", $_SERVER['PHP_SELF']))
12 0fd75c45 2022-07-30 mischa header ("Location: login.php");
16 0fd75c45 2022-07-30 mischa // Postfix Admin Path
17 0fd75c45 2022-07-30 mischa // Set the location to your Postfix Admin installation here.
18 0fd75c45 2022-07-30 mischa $CONF['postfix_admin_url'] = '';
19 0fd75c45 2022-07-30 mischa $CONF['postfix_admin_path'] = '';
21 0fd75c45 2022-07-30 mischa // Language config
22 0fd75c45 2022-07-30 mischa // Language files are located in './languages'.
23 0fd75c45 2022-07-30 mischa $CONF['default_language'] = 'en';
25 0fd75c45 2022-07-30 mischa // Database Config
26 0fd75c45 2022-07-30 mischa // mysql = MySQL 3.23 and 4.0
27 0fd75c45 2022-07-30 mischa // mysqli = MySQL 4.1
28 0fd75c45 2022-07-30 mischa // pgsql = PostgreSQL
29 0fd75c45 2022-07-30 mischa $CONF['database_type'] = 'mysql';
30 0fd75c45 2022-07-30 mischa $CONF['database_host'] = 'localhost';
31 0fd75c45 2022-07-30 mischa $CONF['database_user'] = 'postfixadmin';
32 0fd75c45 2022-07-30 mischa $CONF['database_password'] = 'postfixadmin';
33 0fd75c45 2022-07-30 mischa $CONF['database_name'] = 'postfix';
34 0fd75c45 2022-07-30 mischa $CONF['database_prefix'] = '';
36 0fd75c45 2022-07-30 mischa // Site Admin
37 0fd75c45 2022-07-30 mischa // Define the Site Admins email address below.
38 0fd75c45 2022-07-30 mischa // This will be used to send emails from to create mailboxes.
39 0fd75c45 2022-07-30 mischa $CONF['admin_email'] = 'postmaster@change-this-to-your.domain.tld';
41 0fd75c45 2022-07-30 mischa // Mail Server
42 0fd75c45 2022-07-30 mischa // Hostname (FQDN) of your mail server.
43 0fd75c45 2022-07-30 mischa // This is used to send email to Postfix in order to create mailboxes.
44 0fd75c45 2022-07-30 mischa $CONF['smtp_server'] = 'localhost';
45 0fd75c45 2022-07-30 mischa $CONF['smtp_port'] = '25';
47 0fd75c45 2022-07-30 mischa // Encrypt
48 0fd75c45 2022-07-30 mischa // In what way do you want the passwords to be crypted?
49 0fd75c45 2022-07-30 mischa // md5crypt = internal postfix admin md5
50 0fd75c45 2022-07-30 mischa // system = whatever you have set as your PHP system default
51 0fd75c45 2022-07-30 mischa // cleartext = clear text passwords (ouch!)
52 0fd75c45 2022-07-30 mischa $CONF['encrypt'] = 'md5crypt';
54 0fd75c45 2022-07-30 mischa // Generate Password
55 0fd75c45 2022-07-30 mischa // Generate a random password for a mailbox and display it.
56 0fd75c45 2022-07-30 mischa // If you want to automagically generate paswords set this to 'YES'.
57 0fd75c45 2022-07-30 mischa $CONF['generate_password'] = 'NO';
59 0fd75c45 2022-07-30 mischa // Page Size
60 0fd75c45 2022-07-30 mischa // Set the number of entries that you would like to see
61 0fd75c45 2022-07-30 mischa // in one page.
62 0fd75c45 2022-07-30 mischa $CONF['page_size'] = '10';
64 0fd75c45 2022-07-30 mischa // Default Aliases
65 0fd75c45 2022-07-30 mischa // The default aliases that need to be created for all domains.
66 0fd75c45 2022-07-30 mischa $CONF['default_aliases'] = array (
67 0fd75c45 2022-07-30 mischa 'abuse' => 'abuse@change-this-to-your.domain.tld',
68 0fd75c45 2022-07-30 mischa 'hostmaster' => 'hostmaster@change-this-to-your.domain.tld',
69 0fd75c45 2022-07-30 mischa 'postmaster' => 'postmaster@change-this-to-your.domain.tld',
70 0fd75c45 2022-07-30 mischa 'webmaster' => 'webmaster@change-this-to-your.domain.tld'
73 0fd75c45 2022-07-30 mischa // Mailboxes
74 0fd75c45 2022-07-30 mischa // If you want to store the mailboxes per domain set this to 'YES'.
75 0fd75c45 2022-07-30 mischa // Example: /usr/local/virtual/domain.tld/username@domain.tld
76 0fd75c45 2022-07-30 mischa $CONF['domain_path'] = 'NO';
77 0fd75c45 2022-07-30 mischa // If you don't want to have the domain in your mailbox set this to 'NO'.
78 0fd75c45 2022-07-30 mischa // Example: /usr/local/virtual/domain.tld/username
79 0fd75c45 2022-07-30 mischa $CONF['domain_in_mailbox'] = 'YES';
81 0fd75c45 2022-07-30 mischa // Default Domain Values
82 0fd75c45 2022-07-30 mischa // Specify your default values below. Quota in MB.
83 0fd75c45 2022-07-30 mischa $CONF['aliases'] = '10';
84 0fd75c45 2022-07-30 mischa $CONF['mailboxes'] = '10';
85 0fd75c45 2022-07-30 mischa $CONF['maxquota'] = '10';
88 0fd75c45 2022-07-30 mischa // When you want to enforce quota for your mailbox users set this to 'YES'.
89 0fd75c45 2022-07-30 mischa $CONF['quota'] = 'NO';
90 0fd75c45 2022-07-30 mischa // You can either use '1024000' or '1048576'
91 0fd75c45 2022-07-30 mischa $CONF['quota_multiplier'] = '1024000';
93 0fd75c45 2022-07-30 mischa // Transport
94 0fd75c45 2022-07-30 mischa // If you want to define additional transport options for a domain set this to 'YES'.
95 0fd75c45 2022-07-30 mischa // Read the transport file of the Postfix documentation.
96 0fd75c45 2022-07-30 mischa $CONF['transport'] = 'NO';
98 0fd75c45 2022-07-30 mischa // Virtual Vacation
99 0fd75c45 2022-07-30 mischa // If you want to use virtual vacation for you mailbox users set this to 'YES'.
100 0fd75c45 2022-07-30 mischa // NOTE: Make sure that you install the vacation module. http://high5.net/postfixadmin/
101 0fd75c45 2022-07-30 mischa $CONF['vacation'] = 'NO';
102 0fd75c45 2022-07-30 mischa // This is the autoreply domain that you will need to set in your Postfix
103 0fd75c45 2022-07-30 mischa // transport maps to handle virtual vacations. It does not need to be a
104 0fd75c45 2022-07-30 mischa // real domain (i.e. you don't need to setup DNS for it).
105 0fd75c45 2022-07-30 mischa $CONF['vacation_domain'] = 'autoreply.change-this-to-your.domain.tld';
107 0fd75c45 2022-07-30 mischa // Alias Control
108 0fd75c45 2022-07-30 mischa // Postfix Admin inserts an alias in the alias table for every mailbox it creates.
109 0fd75c45 2022-07-30 mischa // The reason for this is that when you want catch-all and normal mailboxes
110 0fd75c45 2022-07-30 mischa // to work you need to have the mailbox replicated in the alias table.
111 0fd75c45 2022-07-30 mischa // If you want to take control of these aliases as well set this to 'YES'.
112 0fd75c45 2022-07-30 mischa $CONF['alias_control'] = 'NO';
114 0fd75c45 2022-07-30 mischa // Special Alias Control
115 0fd75c45 2022-07-30 mischa // Set to 'NO' if you don't want your domain admins to change the default aliases.
116 0fd75c45 2022-07-30 mischa $CONF['special_alias_control'] = 'YES';
118 0fd75c45 2022-07-30 mischa // Logging
119 0fd75c45 2022-07-30 mischa // If you don't want logging set this to 'NO';
120 0fd75c45 2022-07-30 mischa $CONF['logging'] = 'YES';
122 0fd75c45 2022-07-30 mischa // Header
123 0fd75c45 2022-07-30 mischa $CONF['show_header_text'] = 'NO';
124 0fd75c45 2022-07-30 mischa $CONF['header_text'] = ':: Postfix Admin ::';
126 0fd75c45 2022-07-30 mischa // Footer
127 0fd75c45 2022-07-30 mischa // Below information will be on all pages.
128 0fd75c45 2022-07-30 mischa // If you don't want the footer information to appear set this to 'NO'.
129 0fd75c45 2022-07-30 mischa $CONF['show_footer_text'] = 'YES';
130 0fd75c45 2022-07-30 mischa $CONF['footer_text'] = 'Return to change-this-to-your.domain.tld';
131 0fd75c45 2022-07-30 mischa $CONF['footer_link'] = 'http://change-this-to-your.domain.tld';
133 0fd75c45 2022-07-30 mischa // Welcome Message
134 0fd75c45 2022-07-30 mischa // This message is send to every newly created mailbox.
135 0fd75c45 2022-07-30 mischa // Change the text between EOM.
136 0fd75c45 2022-07-30 mischa $CONF['welcome_text'] = <<<EOM
139 0fd75c45 2022-07-30 mischa Welcome to your new account.
143 0fd75c45 2022-07-30 mischa // END OF CONFIG FILE