tachtler:postfix_admin
Unterschiede
Hier werden die Unterschiede zwischen zwei Versionen angezeigt.
Beide Seiten der vorigen RevisionVorhergehende ÜberarbeitungNächste Überarbeitung | Vorhergehende ÜberarbeitungNächste ÜberarbeitungBeide Seiten der Revision | ||
tachtler:postfix_admin [2014/05/23 11:28] – klaus | tachtler:postfix_admin [2018/09/08 07:22] – [/var/www/postfixadmin/templates_c] klaus | ||
---|---|---|---|
Zeile 18: | Zeile 18: | ||
* MySQL-Datenbank [[http:// | * MySQL-Datenbank [[http:// | ||
* PHP [[http:// | * PHP [[http:// | ||
+ | * PHP mit Erweiterung '' | ||
* PHP mit Erweiterung '' | * PHP mit Erweiterung '' | ||
+ | * PHP mit Erweiterung '' | ||
===== Herunterladen ===== | ===== Herunterladen ===== | ||
Zeile 150: | Zeile 152: | ||
Falls noch nicht geschehen wird im Verzeichnis ''/ | Falls noch nicht geschehen wird im Verzeichnis ''/ | ||
+ | |||
+ | **__Apache 2.2__**: | ||
<code apache> | <code apache> | ||
# This configuration file enables the vhosts to this | # This configuration file enables the vhosts to this | ||
Zeile 178: | Zeile 182: | ||
Deny from all | Deny from all | ||
Allow from 127.0.0.1 | Allow from 127.0.0.1 | ||
+ | </ | ||
+ | DirectoryIndex index.php | ||
+ | ErrorLog logs/ | ||
+ | CustomLog logs/ | ||
+ | </ | ||
+ | </ | ||
+ | |||
+ | **__Apache 2.4__**: | ||
+ | <code apache> | ||
+ | # | ||
+ | # postfixadmin.tachtler.net | ||
+ | # | ||
+ | < | ||
+ | ServerAdmin webmaster@tachtler.net | ||
+ | ServerName postfixadmin.tachtler.net | ||
+ | ServerAlias www.postfixadmin.tachtler.net | ||
+ | ServerPath / | ||
+ | Alias / | ||
+ | DocumentRoot "/ | ||
+ | < | ||
+ | Options -Indexes | ||
+ | AllowOverride None | ||
+ | Require all granted | ||
+ | </ | ||
+ | <File " | ||
+ | Options -Indexes | ||
+ | AllowOverride None | ||
+ | Require ip 127.0.0.1/8 | ||
</ | </ | ||
DirectoryIndex index.php | DirectoryIndex index.php | ||
Zeile 188: | Zeile 220: | ||
< | < | ||
# service httpd start | # service httpd start | ||
+ | </ | ||
+ | bzw. | ||
+ | < | ||
+ | # systemctl start httpd | ||
</ | </ | ||
oder einen erneuten Start des [[http:// | oder einen erneuten Start des [[http:// | ||
Zeile 194: | Zeile 230: | ||
Stopping httpd: | Stopping httpd: | ||
Starting httpd: | Starting httpd: | ||
+ | </ | ||
+ | bzw. | ||
+ | < | ||
+ | # systemctl restart httpd | ||
</ | </ | ||
macht die oben beschriebenen Konfigurationen für den [[http:// | macht die oben beschriebenen Konfigurationen für den [[http:// | ||
Zeile 232: | Zeile 272: | ||
* Further details on the project are available at http:// | * Further details on the project are available at http:// | ||
| | ||
- | * @version $Id: config.inc.php | + | * @version $Id: config.inc.php |
* @license GNU GPL v2 or later. | * @license GNU GPL v2 or later. | ||
| | ||
Zeile 308: | Zeile 348: | ||
// Database Config | // Database Config | ||
// mysql = MySQL 3.23 and 4.0, 4.1 or 5 | // mysql = MySQL 3.23 and 4.0, 4.1 or 5 | ||
- | // mysqli = MySQL 4.1+ | + | // mysqli = MySQL 4.1+ or MariaDB |
// pgsql = PostgreSQL | // pgsql = PostgreSQL | ||
+ | // sqlite = SQLite 3 | ||
// Tachtler | // Tachtler | ||
// default: $CONF[' | // default: $CONF[' | ||
Zeile 315: | Zeile 356: | ||
// Tachtler | // Tachtler | ||
// default: $CONF[' | // default: $CONF[' | ||
- | $CONF[' | + | $CONF[' |
// Tachtler | // Tachtler | ||
// default: $CONF[' | // default: $CONF[' | ||
Zeile 324: | Zeile 365: | ||
// Tachtler | // Tachtler | ||
// default: $CONF[' | // default: $CONF[' | ||
- | $CONF[' | + | $CONF[' |
+ | |||
+ | // Database SSL Config | ||
+ | $CONF[' | ||
+ | $CONF[' | ||
+ | $CONF[' | ||
+ | $CONF[' | ||
+ | $CONF[' | ||
+ | $CONF[' | ||
// If you need to specify a different port for a MYSQL database connection, use e.g. | // If you need to specify a different port for a MYSQL database connection, use e.g. | ||
// | // | ||
Zeile 330: | Zeile 380: | ||
// | // | ||
// $CONF[' | // $CONF[' | ||
+ | // | ||
+ | // If you wish to connect using a local socket file (e.g / | ||
+ | // $CONF[' | ||
+ | / | ||
+ | // If sqlite is used, specify the database file path: | ||
+ | // | ||
// Here, if you need, you can customize table names. | // Here, if you need, you can customize table names. | ||
Zeile 346: | Zeile 402: | ||
' | ' | ||
' | ' | ||
- | ' | + | |
); | ); | ||
Zeile 357: | Zeile 413: | ||
// default: $CONF[' | // default: $CONF[' | ||
$CONF[' | $CONF[' | ||
+ | |||
+ | // Site admin name | ||
+ | // This will be used as signature in notification messages | ||
+ | $CONF[' | ||
// Mail Server | // Mail Server | ||
Zeile 363: | Zeile 423: | ||
$CONF[' | $CONF[' | ||
$CONF[' | $CONF[' | ||
+ | |||
+ | // SMTP Client | ||
+ | // Hostname (FQDN) of the server hosting Postfix Admin | ||
+ | // Used in the HELO when sending emails from Postfix Admin | ||
+ | $CONF[' | ||
// Encrypt | // Encrypt | ||
Zeile 373: | Zeile 438: | ||
// authlib = support for courier-authlib style passwords | // authlib = support for courier-authlib style passwords | ||
// dovecot: | // dovecot: | ||
- | // (WARNING: don't use dovecot:* methods that include the username in the hash - you won't be able to login to PostfixAdmin in this case) | + | // IMPORTANT: |
+ | // | ||
+ | // - you'll need at least dovecot 2.1 for salted passwords (' | ||
+ | // - dovecot 2.0.0 - 2.0.7 is not supported | ||
// Tachtler | // Tachtler | ||
// default: $CONF[' | // default: $CONF[' | ||
Zeile 379: | Zeile 447: | ||
// In what flavor should courier-authlib style passwords be encrypted? | // In what flavor should courier-authlib style passwords be encrypted? | ||
+ | // (only used if $CONF[' | ||
// md5 = {md5} + base64 encoded md5 hash | // md5 = {md5} + base64 encoded md5 hash | ||
// md5raw = {md5raw} + plain encoded md5 hash | // md5raw = {md5raw} + plain encoded md5 hash | ||
Zeile 390: | Zeile 459: | ||
// for dovecot 2.x (dovecot 2.0.0 - 2.0.7 is not supported!) | // for dovecot 2.x (dovecot 2.0.0 - 2.0.7 is not supported!) | ||
$CONF[' | $CONF[' | ||
+ | if(@file_exists('/ | ||
+ | $CONF[' | ||
+ | } | ||
// Password validation | // Password validation | ||
Zeile 404: | Zeile 476: | ||
// Tachtler | // Tachtler | ||
// default: '/ | // default: '/ | ||
- | '/ | + | '/ |
'/ | '/ | ||
'/ | '/ | ||
Zeile 430: | Zeile 502: | ||
// Default Aliases | // Default Aliases | ||
// The default aliases that need to be created for all domains. | // The default aliases that need to be created for all domains. | ||
+ | // You can specify the target address in two ways: | ||
+ | // a) a full mail address | ||
+ | // b) only a localpart (' | ||
// Tachtler | // Tachtler | ||
// default: $CONF[' | // default: $CONF[' | ||
Zeile 503: | Zeile 578: | ||
that yourself. | that yourself. | ||
Please follow the naming policy for custom database fields and tables on | Please follow the naming policy for custom database fields and tables on | ||
- | | + | |
to avoid clashes with future versions of PostfixAdmin. | to avoid clashes with future versions of PostfixAdmin. | ||
Zeile 524: | Zeile 599: | ||
$CONF[' | $CONF[' | ||
$CONF[' | $CONF[' | ||
+ | $CONF[' | ||
Zeile 539: | Zeile 615: | ||
// Tachtler | // Tachtler | ||
// default: $CONF[' | // default: $CONF[' | ||
- | $CONF[' | + | $CONF[' |
// Quota | // Quota | ||
Zeile 551: | Zeile 627: | ||
$CONF[' | $CONF[' | ||
// You can either use ' | // You can either use ' | ||
- | // Tachtler | + | $CONF[' |
- | // default: | + | |
- | $CONF[' | + | |
// Transport | // Transport | ||
Zeile 586: | Zeile 660: | ||
// transport maps to handle virtual vacations. It does not need to be a | // transport maps to handle virtual vacations. It does not need to be a | ||
// real domain (i.e. you don't need to setup DNS for it). | // real domain (i.e. you don't need to setup DNS for it). | ||
+ | // This domain must exclusively be used for vacation. Do NOT use it for " | ||
// Tachtler | // Tachtler | ||
// default: $CONF[' | // default: $CONF[' | ||
Zeile 618: | Zeile 693: | ||
// End Vacation Stuff. | // End Vacation Stuff. | ||
// | // | ||
- | |||
- | // Users Control for Domain Admin | ||
- | // Set to " | ||
- | // Userscontrol is edited in admin_create-domain.tpl and admin_edit-domain.tpl | ||
- | // Userscontrol is default set to on when creating a domain | ||
- | $CONF[' | ||
- | |||
// Alias Control | // Alias Control | ||
Zeile 631: | Zeile 699: | ||
// to work you need to have the mailbox replicated in the alias table. | // 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 ' | // If you want to take control of these aliases as well set this to ' | ||
+ | |||
+ | // If you don't want edit alias tab (user mode) set this to ' | ||
+ | $CONF[' | ||
// Alias control for superadmins | // Alias control for superadmins | ||
Zeile 664: | Zeile 735: | ||
// If you don't want sendmail tab set this to ' | // If you don't want sendmail tab set this to ' | ||
$CONF[' | $CONF[' | ||
+ | // Set this to YES if you want to allow non-super-admins to | ||
+ | // send mails to their users | ||
+ | $CONF[' | ||
// Logging | // Logging | ||
Zeile 694: | Zeile 768: | ||
// Tachtler | // Tachtler | ||
// default: $CONF[' | // default: $CONF[' | ||
- | $CONF[' | + | $CONF[' |
// Tachtler | // Tachtler | ||
// default: $CONF[' | // default: $CONF[' | ||
Zeile 722: | Zeile 796: | ||
postmaster@tachtler.net | postmaster@tachtler.net | ||
- | |||
- | Der Webmail-Dienst ist unter der Adresse (URL/Link): | ||
- | |||
- | https:// | ||
- | |||
- | zu erreichen. | ||
Vielen Dank! | Vielen Dank! | ||
Zeile 874: | Zeile 942: | ||
// See also the " | // See also the " | ||
// http:// | // http:// | ||
- | $CONF[' | + | $CONF[' |
+ | // Optional: | ||
+ | // Allows a user to reset his forgotten password with a code sent by email/SMS | ||
+ | $CONF[' | ||
+ | // Allows an admin to reset his forgotten password with a code sent by email/SMS | ||
+ | $CONF[' | ||
+ | |||
+ | // Name of the function to send a SMS | ||
+ | // Please use a name that begins with " | ||
+ | // This function must accept 2 parameters: phone number and message, | ||
+ | // and return true on success or false on failure | ||
+ | // Note: if no sms_send_function is defined, the input field for the mobile | ||
+ | // number won't be displayed | ||
+ | $CONF[' | ||
+ | |||
+ | /* | ||
+ | // Example of send SMS function using Clickatell HTTP API | ||
+ | function x_send_sms_clickatell($to, | ||
+ | |||
+ | $clickatell_api_id = ' | ||
+ | $clickatell_user = ' | ||
+ | $clickatell_password = ' | ||
+ | $clickatell_sender = ' | ||
+ | |||
+ | $url = ' | ||
+ | |||
+ | $url = sprintf($url, | ||
+ | |||
+ | $result = file_get_contents($url); | ||
+ | |||
+ | return $result !== false; | ||
+ | } | ||
+ | */ | ||
// Theme Config | // Theme Config | ||
Zeile 898: | Zeile 998: | ||
// Tachtler - Can't include config.local.php into config.local.php himself! | // Tachtler - Can't include config.local.php into config.local.php himself! | ||
// if (file_exists(dirname(__FILE__) . '/ | // if (file_exists(dirname(__FILE__) . '/ | ||
- | // | + | // |
//} | //} | ||
Zeile 906: | Zeile 1006: | ||
/* vim: set expandtab softtabstop=4 tabstop=4 shiftwidth=4: | /* vim: set expandtab softtabstop=4 tabstop=4 shiftwidth=4: | ||
</ | </ | ||
- | | + | |
+ | ==== / | ||
+ | |||
+ | :!: **HINWEIS** - Ab **Version 3.1.0** sind nachfolgende Schritte erforderlich um ein Verzeichnis mit dem Namen | ||
+ | * **'' | ||
+ | anzulegen und mit entsprechenden **Besitz**- und **Datei**rechten auszustatten, | ||
+ | |||
+ | __Erstellen des Verzeichnisses__: | ||
+ | < | ||
+ | # mkdir / | ||
+ | </ | ||
+ | |||
+ | __**Besitz**rechte des Verzeichnisses setzen__: | ||
+ | < | ||
+ | # chown -R root:apache / | ||
+ | </ | ||
+ | |||
+ | __**Datei**rechte des Verzeichnisses setzen__: | ||
+ | < | ||
+ | # chmod -R 775 / | ||
+ | </ | ||
==== Web-Anwendung ==== | ==== Web-Anwendung ==== | ||
Zeile 947: | Zeile 1068: | ||
===== Postfix Anbindung ===== | ===== Postfix Anbindung ===== | ||
- | Um im [[http:// | + | Um im [[http:// |
* [[tachtler: | * [[tachtler: | ||
+ | * [[tachtler: | ||
==== / | ==== / | ||
Zeile 959: | Zeile 1081: | ||
* **Modul: '' | * **Modul: '' | ||
* **Backend: '' | * **Backend: '' | ||
- | < | + | < |
pwcheck_method: | pwcheck_method: | ||
auxprop_plugin: | auxprop_plugin: | ||
Zeile 968: | Zeile 1090: | ||
sql_passwd: geheim | sql_passwd: geheim | ||
sql_database: | sql_database: | ||
- | sql_select: SELECT | + | sql_select: SELECT |
</ | </ | ||
Zeile 1056: | Zeile 1178: | ||
von einer | von einer | ||
- **Datei** = ''/ | - **Datei** = ''/ | ||
- | - **MySQL** = | + | |
- | * ''/ | + | |
- | * '' | + | |
und Verwendung bei | und Verwendung bei | ||
* **'' | * **'' | ||
Zeile 1064: | Zeile 1184: | ||
- **Datei** = ''/ | - **Datei** = ''/ | ||
- **MySQL** = | - **MySQL** = | ||
- | | + | * ''/ |
+ | * ''/ | ||
+ | * ''/ | ||
und Verwendung bei | und Verwendung bei | ||
* **'' | * **'' | ||
Zeile 1082: | Zeile 1204: | ||
<code ini> | <code ini> | ||
... | ... | ||
- | virtual_alias_domains = btree:/ | + | virtual_alias_domains = btree:/ |
- | proxy: | + | |
- | proxy: | + | |
virtual_alias_maps = btree:/ | virtual_alias_maps = btree:/ | ||
- | proxy: | + | proxy: |
+ | proxy: | ||
+ | proxy: | ||
virtual_mailbox_domains = btree:/ | virtual_mailbox_domains = btree:/ | ||
proxy: | proxy: |
tachtler/postfix_admin.txt · Zuletzt geändert: 2020/05/03 06:24 von klaus