Benutzer-Werkzeuge

Webseiten-Werkzeuge


tachtler:postfix_admin

Unterschiede

Hier werden die Unterschiede zwischen zwei Versionen angezeigt.

Link zu dieser Vergleichsansicht

Beide Seiten der vorigen RevisionVorhergehende Überarbeitung
Nächste Überarbeitung
Vorhergehende Überarbeitung
tachtler:postfix_admin [2017/10/20 12:40] – [/var/www/postfixadmin/templates_c] klaustachtler:postfix_admin [2020/05/03 06:24] (aktuell) – [MySQL-Datenbank] klaus
Zeile 101: Zeile 101:
   * einen **Benutzer** mit dem Namen **''postfixuser''** anlegen   * einen **Benutzer** mit dem Namen **''postfixuser''** anlegen
   * ein **Passwort** das **''geheim''** lautet dem Benutzer **''postfixuser''** zuweisen   * ein **Passwort** das **''geheim''** lautet dem Benutzer **''postfixuser''** zuweisen
-  * dem Benutzer **''postfixuser''** entsprechende **Rechte** für die Datenbank **''horde4''** erteilen. +  * dem Benutzer **''postfixuser''** entsprechende **Rechte** für die Datenbank **''postfix''** erteilen. 
  
 Hierzu soll ein Skript mit dem Namen  Hierzu soll ein Skript mit dem Namen 
Zeile 202: Zeile 202:
         DocumentRoot "/var/www/postfixadmin"         DocumentRoot "/var/www/postfixadmin"
         <Directory "/var/www/postfixadmin">         <Directory "/var/www/postfixadmin">
 +                Options -Indexes
 +                AllowOverride None
 +                Require all granted
 +        </Directory>
 +        <File "setup.php">
 +                Options -Indexes
 +                AllowOverride None
 +                Require ip 127.0.0.1/8
 +        </File>        
 +        DirectoryIndex index.php
 +        ErrorLog logs/postfixadmin_error.log
 +        CustomLog logs/postfixadmin_access.log combined
 +</VirtualHost>
 +</code>
 +
 +**__Apache 2.4 und [[http://postfixadmin.sourceforge.net/|Postfix Admin]] Version 3.2__ **:
 +<code apache>
 +#
 +# postfixadmin.tachtler.net
 +#
 +<VirtualHost *:80>
 +        ServerAdmin webmaster@tachtler.net
 +        ServerName postfixadmin.tachtler.net
 +        ServerAlias www.postfixadmin.tachtler.net
 +        ServerPath /
 +        Alias /postfixadmin/ /var/www/postfixadmin/public
 +        DocumentRoot "/var/www/postfixadmin/public"
 +        <Directory "/var/www/postfixadmin/public">
                 Options -Indexes                 Options -Indexes
                 AllowOverride None                 AllowOverride None
Zeile 366: Zeile 394:
 // default: $CONF['database_name'] = 'postfix'; // default: $CONF['database_name'] = 'postfix';
 $CONF['database_name'] = 'postfixadmin'; $CONF['database_name'] = 'postfixadmin';
 +
 +// Database SSL Config
 +$CONF['database_use_ssl'] = false;
 +$CONF['database_ssl_key'] = NULL;
 +$CONF['database_ssl_cert'] = NULL;
 +$CONF['database_ssl_ca'] = NULL;
 +$CONF['database_ssl_ca_path'] = NULL;
 +$CONF['database_ssl_cipher'] = NULL;
 +
 // 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.
 //   $CONF['database_host'] = '172.30.33.66:3308'; //   $CONF['database_host'] = '172.30.33.66:3308';
Zeile 371: Zeile 408:
 //   uncomment and change the following //   uncomment and change the following
 // $CONF['database_port'] = '5432'; // $CONF['database_port'] = '5432';
 +//
 +// If you wish to connect using a local socket file (e.g /var/run/mysql.sock) uncomment the below.
 +// $CONF['database_socket'] = '/var/run/mysql/mysqld.sock';
 +/
 // If sqlite is used, specify the database file path: // If sqlite is used, specify the database file path:
 //   $CONF['database_name'] = '/etc/postfix/sqlite/postfixadmin.db' //   $CONF['database_name'] = '/etc/postfix/sqlite/postfixadmin.db'
Zeile 400: Zeile 441:
 // default: $CONF['admin_email'] = ''; // default: $CONF['admin_email'] = '';
 $CONF['admin_email'] = 'postmaster@tachtler.net'; $CONF['admin_email'] = 'postmaster@tachtler.net';
 +
 +// Site admin name
 +// This will be used as signature in notification messages
 +$CONF['admin_name'] = 'Postmaster tachtler.net';
  
 // Mail Server // Mail Server
Zeile 442: 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['dovecotpw'] = "/usr/sbin/doveadm pw"; $CONF['dovecotpw'] = "/usr/sbin/doveadm pw";
-if(file_exists('/usr/bin/doveadm')) {+if(@file_exists('/usr/bin/doveadm')) { // @ to silence openbase_dir stuff; see https://github.com/postfixadmin/postfixadmin/issues/171
     $CONF['dovecotpw'] = "/usr/bin/doveadm pw"; # debian     $CONF['dovecotpw'] = "/usr/bin/doveadm pw"; # debian
 } }
Zeile 682: 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 'YES'. // If you want to take control of these aliases as well set this to 'YES'.
 +
 +// If you don't want edit alias tab (user mode) set this to 'NO';
 +$CONF['edit_alias'] = 'YES';
  
 // Alias control for superadmins // Alias control for superadmins
Zeile 924: Zeile 972:
 $CONF['create_mailbox_subdirs_hostoptions'] = array(); $CONF['create_mailbox_subdirs_hostoptions'] = array();
  
 +// Optional:
 +// Allows a user to reset his forgotten password with a code sent by email/SMS
 +$CONF['forgotten_user_password_reset'] = true;
 +// Allows an admin to reset his forgotten password with a code sent by email/SMS
 +$CONF['forgotten_admin_password_reset'] = false;
 +
 +// Name of the function to send a SMS
 +// Please use a name that begins with "x_" to prevent collisions
 +// 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['sms_send_function'] = '';
 +
 +/*
 +// Example of send SMS function using Clickatell HTTP API
 +function x_send_sms_clickatell($to, $message) {
 +
 +    $clickatell_api_id = 'CHANGEME';
 +    $clickatell_user = 'CHANGEME';
 +    $clickatell_password = 'CHANGEME';
 +    $clickatell_sender = 'CHANGEME';
 +
 +    $url = 'https://api.clickatell.com/http/sendmsg?api_id=%s&user=%s&password=%s&to=%s&from=%s&text=%s';
 +
 +    $url = sprintf($url, $clickatell_api_id, $clickatell_user, $clickatell_password, $to, $clickatell_sender, urlencode($message));
 +
 +    $result = file_get_contents($url);
 +
 +    return $result !== false;
 +}
 +*/
  
 // Theme Config // Theme Config
Zeile 958: Zeile 1038:
  
 :!: **HINWEIS** - Ab **Version 3.1.0** sind nachfolgende Schritte erforderlich um ein Verzeichnis mit dem Namen :!: **HINWEIS** - Ab **Version 3.1.0** sind nachfolgende Schritte erforderlich um ein Verzeichnis mit dem Namen
-  * **''[Instalaltionsverzeichns]/templates_c''** z.B. ''/var/www/postfixadmin/templates_c''+  * **''[Installaltionsverzeichns]/templates_c''** z.B. hier''/var/www/postfixadmin/templates_c''
 anzulegen und mit entsprechenden **Besitz**- und **Datei**rechten auszustatten, da [[http://postfixadmin.sourceforge.net/|Postfix Admin]] **__ohne__** dieses Verzeichnis nicht startet. anzulegen und mit entsprechenden **Besitz**- und **Datei**rechten auszustatten, da [[http://postfixadmin.sourceforge.net/|Postfix Admin]] **__ohne__** dieses Verzeichnis nicht startet.
  
Zeile 973: Zeile 1053:
 __**Datei**rechte des Verzeichnisses setzen__: __**Datei**rechte des Verzeichnisses setzen__:
 <code> <code>
-chown -R 775 /var/www/postfixadmin/templates_c+chmod -R 775 /var/www/postfixadmin/templates_c
 </code> </code>
  
tachtler/postfix_admin.1508496004.txt.gz · Zuletzt geändert: 2017/10/20 12:40 von klaus