tachtler:postfix_admin
Unterschiede
Hier werden die Unterschiede zwischen zwei Versionen angezeigt.
Beide Seiten der vorigen RevisionVorhergehende ÜberarbeitungNächste Überarbeitung | Vorhergehende Überarbeitung | ||
tachtler:postfix_admin [2015/08/27 09:58] – [/etc/sasl2/smtpd.conf] klaus | tachtler:postfix_admin [2020/05/03 06:24] (aktuell) – [MySQL-Datenbank] klaus | ||
---|---|---|---|
Zeile 101: | Zeile 101: | ||
* einen **Benutzer** mit dem Namen **'' | * einen **Benutzer** mit dem Namen **'' | ||
* ein **Passwort** das **'' | * ein **Passwort** das **'' | ||
- | * dem Benutzer **'' | + | * dem Benutzer **'' |
Hierzu soll ein Skript mit dem Namen | Hierzu soll ein Skript mit dem Namen | ||
Zeile 202: | Zeile 202: | ||
DocumentRoot "/ | DocumentRoot "/ | ||
< | < | ||
+ | Options -Indexes | ||
+ | AllowOverride None | ||
+ | Require all granted | ||
+ | </ | ||
+ | <File " | ||
+ | Options -Indexes | ||
+ | AllowOverride None | ||
+ | Require ip 127.0.0.1/8 | ||
+ | </ | ||
+ | DirectoryIndex index.php | ||
+ | ErrorLog logs/ | ||
+ | CustomLog logs/ | ||
+ | </ | ||
+ | </ | ||
+ | |||
+ | **__Apache 2.4 und [[http:// | ||
+ | <code apache> | ||
+ | # | ||
+ | # postfixadmin.tachtler.net | ||
+ | # | ||
+ | < | ||
+ | ServerAdmin webmaster@tachtler.net | ||
+ | ServerName postfixadmin.tachtler.net | ||
+ | ServerAlias www.postfixadmin.tachtler.net | ||
+ | ServerPath / | ||
+ | Alias / | ||
+ | DocumentRoot "/ | ||
+ | < | ||
Options -Indexes | Options -Indexes | ||
AllowOverride None | AllowOverride None | ||
Zeile 272: | Zeile 300: | ||
* 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 348: | Zeile 376: | ||
// 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 355: | Zeile 384: | ||
// Tachtler | // Tachtler | ||
// default: $CONF[' | // default: $CONF[' | ||
- | $CONF[' | + | $CONF[' |
// Tachtler | // Tachtler | ||
// default: $CONF[' | // default: $CONF[' | ||
Zeile 364: | Zeile 393: | ||
// 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 370: | Zeile 408: | ||
// | // | ||
// $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 386: | Zeile 430: | ||
' | ' | ||
' | ' | ||
- | ' | + | |
); | ); | ||
Zeile 397: | Zeile 441: | ||
// default: $CONF[' | // default: $CONF[' | ||
$CONF[' | $CONF[' | ||
+ | |||
+ | // Site admin name | ||
+ | // This will be used as signature in notification messages | ||
+ | $CONF[' | ||
// Mail Server | // Mail Server | ||
Zeile 403: | Zeile 451: | ||
$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 413: | Zeile 466: | ||
// 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 419: | Zeile 475: | ||
// 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 430: | Zeile 487: | ||
// 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 444: | Zeile 504: | ||
// Tachtler | // Tachtler | ||
// default: '/ | // default: '/ | ||
- | '/ | + | '/ |
'/ | '/ | ||
'/ | '/ | ||
Zeile 470: | Zeile 530: | ||
// 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 543: | Zeile 606: | ||
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 564: | Zeile 627: | ||
$CONF[' | $CONF[' | ||
$CONF[' | $CONF[' | ||
+ | $CONF[' | ||
Zeile 579: | Zeile 643: | ||
// Tachtler | // Tachtler | ||
// default: $CONF[' | // default: $CONF[' | ||
- | $CONF[' | + | $CONF[' |
// Quota | // Quota | ||
Zeile 592: | Zeile 656: | ||
// You can either use ' | // You can either use ' | ||
$CONF[' | $CONF[' | ||
- | |||
// Transport | // Transport | ||
Zeile 625: | Zeile 688: | ||
// 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 657: | Zeile 721: | ||
// 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 670: | Zeile 727: | ||
// 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 703: | Zeile 763: | ||
// 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 733: | Zeile 796: | ||
// Tachtler | // Tachtler | ||
// default: $CONF[' | // default: $CONF[' | ||
- | $CONF[' | + | $CONF[' |
// Tachtler | // Tachtler | ||
// default: $CONF[' | // default: $CONF[' | ||
Zeile 761: | Zeile 824: | ||
postmaster@tachtler.net | postmaster@tachtler.net | ||
- | |||
- | Der Webmail-Dienst ist unter der Adresse (URL/Link): | ||
- | |||
- | https:// | ||
- | |||
- | zu erreichen. | ||
Vielen Dank! | Vielen Dank! | ||
Zeile 913: | Zeile 970: | ||
// 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 937: | Zeile 1026: | ||
// 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 945: | Zeile 1034: | ||
/* 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 ==== | ||
tachtler/postfix_admin.txt · Zuletzt geändert: 2020/05/03 06:24 von klaus