129 lines
3.7 KiB
Plaintext
129 lines
3.7 KiB
Plaintext
<?php
|
|
//
|
|
// OpenSMTPD Admin
|
|
// by Mischa Peters <mischa at high5 dot nl>
|
|
// Copyright (c) 2022 High5!
|
|
// License Info: LICENSE.TXT
|
|
//
|
|
// File: config.inc.php
|
|
//
|
|
if (preg_match("/config.inc.php/", $_SERVER['SCRIPT_NAME'])) {
|
|
header("Location: login.php");
|
|
exit;
|
|
}
|
|
|
|
|
|
// Debug mode
|
|
// Enables PHP error output
|
|
$CONF['debug'] = 'false';
|
|
|
|
// Language config
|
|
// Language files are located in './languages'.
|
|
$CONF['default_language'] = 'en';
|
|
|
|
// Database Config
|
|
// mysqli = MySQL 4.1
|
|
// pgsql = PostgreSQL
|
|
$CONF['database_type'] = 'mysqli';
|
|
$CONF['database_host'] = 'localhost';
|
|
$CONF['database_user'] = 'opensmtpdadmin';
|
|
$CONF['database_password'] = 'RandomStringOfChars';
|
|
$CONF['database_name'] = 'opensmtpd';
|
|
$CONF['database_prefix'] = '';
|
|
|
|
// Site Admin
|
|
// Define the Site Admins email address below.
|
|
// This will be used to send emails from to create mailboxes.
|
|
$CONF['admin_email'] = 'postmaster@change-this-to-your.domain.tld';
|
|
|
|
// Encrypt
|
|
$CONF['encrypt'] = 'bcrypt';
|
|
|
|
// Generate Password
|
|
// Generate a random password for a mailbox and display it.
|
|
// If you want to automagically generate paswords set this to 'YES'.
|
|
$CONF['generate_password'] = 'NO';
|
|
|
|
// Page Size
|
|
// Set the number of entries that you would like to see
|
|
// in one page.
|
|
$CONF['page_size'] = '25';
|
|
|
|
// Default Aliases
|
|
// The default aliases that need to be created for all domains.
|
|
$CONF['default_aliases'] = array (
|
|
'abuse' => 'abuse@change-this-to-your.domain.tld',
|
|
'hostmaster' => 'hostmaster@change-this-to-your.domain.tld',
|
|
'postmaster' => 'postmaster@change-this-to-your.domain.tld',
|
|
'webmaster' => 'webmaster@change-this-to-your.domain.tld'
|
|
);
|
|
|
|
// Mailboxes
|
|
// If you want to store the mailboxes per domain set this to 'YES'.
|
|
// Example: /usr/local/virtual/domain.tld/username@domain.tld
|
|
$CONF['domain_path'] = 'NO';
|
|
// If you don't want to have the domain in your mailbox set this to 'NO'.
|
|
// Example: /usr/local/virtual/domain.tld/username
|
|
$CONF['domain_in_mailbox'] = 'YES';
|
|
|
|
// Default Domain Values
|
|
// Specify your default values below. Quota in MB.
|
|
$CONF['aliases'] = '10';
|
|
$CONF['mailboxes'] = '10';
|
|
$CONF['maxquota'] = '0';
|
|
|
|
// Quota
|
|
// When you want to enforce quota for your mailbox users set this to 'YES'.
|
|
$CONF['quota'] = 'NO';
|
|
// You can either use '1024000' or '1048576'
|
|
$CONF['quota_multiplier'] = '1024000';
|
|
|
|
// Transport
|
|
// If you want to define additional transport options for a domain set this to 'YES'.
|
|
// Read the transport file of the OpenSMTPD documentation.
|
|
$CONF['transport'] = 'NO';
|
|
|
|
// Virtual Vacation
|
|
// If you want to use virtual vacation for you mailbox users set this to 'YES'.
|
|
$CONF['vacation'] = 'NO';
|
|
|
|
// Alias Control
|
|
// OpenSMTPD Admin inserts an alias in the alias table for every mailbox it creates.
|
|
// The reason for this is that when you want catch-all and normal mailboxes
|
|
// to work you need to have the mailbox replicated in the alias table.
|
|
// If you want to take control of these aliases as well set this to 'YES'.
|
|
$CONF['alias_control'] = 'NO';
|
|
|
|
// Special Alias Control
|
|
// Set to 'NO' if you don't want your domain admins to change the default aliases.
|
|
$CONF['special_alias_control'] = 'YES';
|
|
|
|
// Logging
|
|
// If you don't want logging set this to 'NO';
|
|
$CONF['logging'] = 'YES';
|
|
|
|
// Header
|
|
$CONF['show_header_text'] = 'NO';
|
|
$CONF['header_text'] = ':: OpenSMTPD Admin ::';
|
|
|
|
// Footer
|
|
// Below information will be on all pages.
|
|
// If you don't want the footer information to appear set this to 'NO'.
|
|
$CONF['show_footer_text'] = 'YES';
|
|
$CONF['footer_text'] = 'Return to change-this-to-your.domain.tld!';
|
|
$CONF['footer_link'] = 'http://change-this-to-your.domain.tld/';
|
|
|
|
// Welcome Message
|
|
// This message is send to every newly created mailbox.
|
|
// Change the text between EOM.
|
|
$CONF['welcome_text'] = <<<EOM
|
|
Hi,
|
|
|
|
Welcome to your new account.
|
|
EOM;
|
|
|
|
//
|
|
// END OF CONFIG FILE
|
|
//
|
|
?>
|