Unterschiede
Hier werden die Unterschiede zwischen zwei Versionen angezeigt.
Nächste Überarbeitung | Vorhergehende ÜberarbeitungLetzte ÜberarbeitungBeide Seiten der Revision | ||
centos:mail_c6:pfadmin_1 [05.02.2013 22:23. ] – Seite neu angelegt django | centos:mail_c6:pfadmin_1 [08.09.2014 20:38. ] – [Initialisierung] django | ||
---|---|---|---|
Zeile 1: | Zeile 1: | ||
+ | ====== Postfixadmin zur Verwaltung des Dovecot-IMAP-Server unter CentOS 6.x ====== | ||
+ | {{: | ||
+ | Wir werden nun in diesem Konfigurationsbeispiel auf eine mySQL-Datenbank als Datenbankbackendsystem und auf [[http:// | ||
+ | |||
+ | ===== Download ===== | ||
+ | Als erstes holen wir uns das aktuelle Programmarchiv von der [[http:// | ||
+ | |||
+ | Wir wechseln als erstes in unser lokales Paketverzeichnis; | ||
+ | # mkdir -p / | ||
+ | |||
+ | # cd / | ||
+ | |||
+ | Dann laden wir das **tar.gz**-Archiv auf unseren Webserver herunter. | ||
+ | # wget http:// | ||
+ | |||
+ | Im nächsten Schritt entpacken wir das Verzeichnis in den Webseiten-Speicherbereiches unseres [[centos: | ||
+ | # tar -zxf postfixadmin-2.3.6.tar.gz -C /var/www/ | ||
+ | |||
+ | Die Datei und Nutzerrechte passen wir entsprechend an. | ||
+ | # chown root.apache / | ||
+ | |||
+ | ===== Installation ===== | ||
+ | Wichtige Informationen zur Installation finden wir in der Datei **INSTALL.TXT**. | ||
+ | # cat / | ||
+ | |||
+ | <file / | ||
+ | # | ||
+ | # Postfix Admin | ||
+ | # by Mischa Peters <mischa at high5 dot net> | ||
+ | # Copyright (c) 2002 - 2005 High5! | ||
+ | # Licensed under GPL for more info check GPL-LICENSE.TXT | ||
+ | # | ||
+ | |||
+ | REQUIRED!! | ||
+ | ---------- | ||
+ | - You are using Postfix 2.0 or higher. | ||
+ | - You are using Apache 1.3.27 / Lighttpd 1.3.15 or higher. | ||
+ | - You are using PHP 5.1.2 or higher. | ||
+ | - You are using MySQL 3.23 or higher (5.x recommended) OR PostgreSQL 7.4 (or higher) | ||
+ | |||
+ | |||
+ | READ THIS FIRST! | ||
+ | ---------------- | ||
+ | When this is an upgrade from a previous version of Postfix Admin, please read | ||
+ | DOCUMENTS/ | ||
+ | |||
+ | If you need to setup Postfix to be able to handle Virtual Domains and Virtual | ||
+ | Users check out: | ||
+ | |||
+ | - the PostfixAdmin documentation in the DOCUMENTS/ directory | ||
+ | - our wiki at http:// | ||
+ | |||
+ | There are also lots of HOWTOs around the web. Be warned that many of them | ||
+ | (even those listed below) may be outdated or incomplete. | ||
+ | Please stick to the PostfixAdmin documentation, | ||
+ | you need some additional information that is missing in the PostfixAdmin | ||
+ | DOCUMENTS/ folder. | ||
+ | - http:// | ||
+ | - http:// | ||
+ | - http:// | ||
+ | |||
+ | |||
+ | 1. Unarchive new Postfix Admin | ||
+ | ------------------------------ | ||
+ | Make sure that you are in your WWW directory and then unarchive the | ||
+ | Postfix Admin archive (whatever the filename is): | ||
+ | |||
+ | $ tar -zxvf postfixadmin-2.2.0.tgz | ||
+ | |||
+ | |||
+ | 2. Setup a Database | ||
+ | ------------------- | ||
+ | |||
+ | With your chosen/ | ||
+ | you need to create a new database. A good name for this could be : | ||
+ | |||
+ | postfix | ||
+ | |||
+ | The mechanics of creating the database vary depending on which server | ||
+ | you are using. Most users will find using phpMyAdmin or phpPgAdmin the | ||
+ | easiest route. | ||
+ | |||
+ | If you wish to use the command line, you'll need to do something like : | ||
+ | |||
+ | For MySQL: | ||
+ | CREATE DATABASE postfix; | ||
+ | CREATE USER ' | ||
+ | GRANT ALL PRIVILEGES ON `postfix` . * TO ' | ||
+ | |||
+ | For PostgreSQL: | ||
+ | CREATE USER postfix WITH PASSWORD ' | ||
+ | CREATE DATABASE postfix OWNER postfix ENCODING ' | ||
+ | |||
+ | |||
+ | 3. Configure PostfixAdmin so it can find the database | ||
+ | ----------------------------------------------------- | ||
+ | |||
+ | Edit the config.inc.php file - or - create config.local.php and add your settings there. | ||
+ | |||
+ | The most important settings are those for your database server. | ||
+ | |||
+ | You must also change the line that says : | ||
+ | |||
+ | $CONF[' | ||
+ | |||
+ | to | ||
+ | |||
+ | $CONF[' | ||
+ | |||
+ | |||
+ | PostfixAdmin does not require write access to any files. You can therefore | ||
+ | leave the files owned as root (or a.n.other user); as long as the web server | ||
+ | user (e.g. www-data) can read them, it will be fine. | ||
+ | |||
+ | The next ' | ||
+ | to your user: | ||
+ | |||
+ | Depending on your environment, | ||
+ | and password stored in config.inc.php - if so, you could move them into the | ||
+ | Apache configuration file (which can be set to be visible only by root) using | ||
+ | something like the following in your VirtualHost definition : | ||
+ | |||
+ | SetEnv DB_USER " | ||
+ | SetEnv DB_PASS " | ||
+ | |||
+ | config.inc.php would then be able to access these through : | ||
+ | |||
+ | $CONF[' | ||
+ | |||
+ | |||
+ | 4. Check settings, and create Admin user | ||
+ | ---------------------------------------- | ||
+ | |||
+ | Hit http:// | ||
+ | |||
+ | You should see a list of ' | ||
+ | |||
+ | The setup.php script will attempt to create the database structure | ||
+ | (or upgrade it if you're coming from a previous version). | ||
+ | |||
+ | Assuming everything is OK you can specify a password (which you' | ||
+ | need to use setup.php again in the future); when you submit the form, | ||
+ | the hashed value (which you need to enter into config.inc.php is echoed | ||
+ | out - with appropriate instructions on what to do with it). | ||
+ | |||
+ | create the admin user using the form displayed. | ||
+ | |||
+ | 5. Use PostfixAdmin | ||
+ | ------------------- | ||
+ | |||
+ | This is all that is needed. Fire up your browser and go to the site that you | ||
+ | specified to host Postfix Admin. | ||
+ | |||
+ | 6. Integration with Postfix, Dovecot etc. | ||
+ | ----------------------------------------- | ||
+ | |||
+ | Now that PostfixAdmin is working, you need to do some configuration in Postfix, | ||
+ | Dovecot etc. so that they use the domains, mailboxes and aliases you setup in | ||
+ | PostfixAdmin. | ||
+ | |||
+ | The files in the DOCUMENTS/ directory explain which settings you need to | ||
+ | do/change. | ||
+ | |||
+ | 7. More information | ||
+ | ------------------- | ||
+ | As of March 2007, PostfixAdmin moved to SourceForge. | ||
+ | forum posts and source updates, see: | ||
+ | |||
+ | https:// | ||
+ | |||
+ | There is also # | ||
+ | </ | ||
+ | |||
+ | ==== mySQL Datenbank und -user anlegen ==== | ||
+ | Wie Eingangs erwähnt, nutzen wir für die Verwaltung unserer Maildomänen und deren Nutzerkonten sowie Aliasen eine [[centos: | ||
+ | |||
+ | Wir melden uns also als berechtigter Datenbankuser an der mySQL-Datenbank an. | ||
+ | # mysql -h localhost -u root -p | ||
+ | < | ||
+ | Welcome to the MySQL monitor. | ||
+ | Your MySQL connection id is 1942 | ||
+ | Server version: 5.1.67 Source distribution | ||
+ | |||
+ | Copyright (c) 2000, 2012, Oracle and/or its affiliates. All rights reserved. | ||
+ | |||
+ | Oracle is a registered trademark of Oracle Corporation and/or its | ||
+ | affiliates. Other names may be trademarks of their respective | ||
+ | owners. | ||
+ | |||
+ | Type ' | ||
+ | |||
+ | mysql> | ||
+ | </ | ||
+ | |||
+ | Dort legen wir als aller erst einmal eine Datenbank mit dem Namen **postfix** an. | ||
+ | | ||
+ | |||
+ | Query OK, 1 row affected (0.03 sec) | ||
+ | |||
+ | Anschließend legen wir uns einen oder mehrere Datenbankuser an, denen wir entsprechende Rechte an der Datenbank **postfix** einräumen. In diesem Anwendungsbeispiel gehen wir von drei Nutzern aus. | ||
+ | - **Postfix-Admin** : Der Nutzer, der vom Webserver, also unserer WEB-GUI **PostfixAdmin**, | ||
+ | - **Postfix-Systemuser** : technische User, der vom MTA((**M**ail **T**ransport **A**gent)) also unserem [[centos: | ||
+ | - **Dovecot-Systemuser** : technische User, der vom MDA((**M**ail **D**elivery **A**gent)) also unserem [[centos: | ||
+ | |||
+ | Also: | ||
+ | - **postfixadmin-user**: | ||
+ | - **postfix_user**: | ||
+ | - **dovecot_user**: | ||
+ | |||
+ | Abschließend melden wir uns wieder von unserem Datenbankhost ab. | ||
+ | | ||
+ | |||
+ | Bye | ||
+ | |||
+ | |||
+ | ==== Apache vHost anlegen ==== | ||
+ | Bevor wir uns auf unserem Webserver einen vHost anlegen, überprüpfen wir noch, ob das Paket **php-mbstring** bereits bei der Installation des Webserver mitinstalliert wurde. | ||
+ | # yum list php-mbstring | ||
+ | Sofern das Paket noch nicht installiert wurde, holen wir dies jetzt nach. | ||
+ | # yum install php-mbstring -y | ||
+ | |||
+ | Anschließend definieren wir nun unseren vHost. | ||
+ | # vim / | ||
+ | |||
+ | <file http / | ||
+ | # postfixadmin.nausch.org | ||
+ | # | ||
+ | < | ||
+ | ServerAdmin webmaster@nausch.org | ||
+ | ServerName postfixadmin.nausch.org | ||
+ | ServerPath / | ||
+ | DocumentRoot "/ | ||
+ | |||
+ | < | ||
+ | Options -Indexes FollowSymLinks | ||
+ | Order allow,deny | ||
+ | Allow from all | ||
+ | </ | ||
+ | |||
+ | <File setup.php> | ||
+ | Order deny,allow | ||
+ | Deny from all | ||
+ | Allow from 127.0.0.1 | ||
+ | Allow from 10.0 | ||
+ | </ | ||
+ | | ||
+ | DirectoryIndex index.php | ||
+ | |||
+ | ErrorLog logs/ | ||
+ | CustomLog logs/ | ||
+ | </ | ||
+ | </ | ||
+ | Bevor wor unseren Webserver einmal durchstarten damit er den neuen vHost auch verwenden kann, machen wir noch kurz einen Syntax-Check. | ||
+ | # service httpd configtest | ||
+ | |||
+ | | ||
+ | |||
+ | Abschließend starten wir den Webserver durch. | ||
+ | # service httpd condrestart | ||
+ | |||
+ | | ||
+ | | ||
+ | |||
+ | |||
+ | ===== Konfiguration ===== | ||
+ | Die Konfiguration von PostfixAdmin erfolgt über die Konfigurationsdatei **config.inc.php**. Rufen wir jetzt schon die WEB-GUI auf, erhalten wir Informationen zur weiteren Installation und Querverweise angezeigt. | ||
+ | |||
+ | {{ : | ||
+ | |||
+ | Diese Datei versehen wir nun mit den entsprechenden Daten unserer Produktionsumgebung. | ||
+ | # vim / | ||
+ | |||
+ | Die Änderungen in der Datei sind im folgenden Beispiel mit demm Namen des Admins und dem Datum versehen. | ||
+ | <file php / | ||
+ | /** | ||
+ | * Postfix Admin | ||
+ | | ||
+ | * LICENSE | ||
+ | * This source file is subject to the GPL license that is bundled with | ||
+ | * this package in the file LICENSE.TXT. | ||
+ | | ||
+ | * Further details on the project are available at : | ||
+ | | ||
+ | | ||
+ | * @version $Id: config.inc.php 935 2011-01-02 21:33:13Z christian_boltz $ | ||
+ | * @license GNU GPL v2 or later. | ||
+ | | ||
+ | * File: config.inc.php | ||
+ | * Contains configuration options. | ||
+ | */ | ||
+ | |||
+ | / | ||
+ | | ||
+ | * You have to set $CONF[' | ||
+ | * application will run! | ||
+ | * Doing this implies you have changed this file as required. | ||
+ | * i.e. configuring database etc; specifying setup.php password etc. | ||
+ | */ | ||
+ | // Django : 2013-02-05 | ||
+ | // default: $CONF[' | ||
+ | $CONF[' | ||
+ | |||
+ | // In order to setup Postfixadmin, | ||
+ | // To create the hash, visit setup.php in a browser and type a password into the field, | ||
+ | // on submission it will be echoed out to you as a hashed value. | ||
+ | $CONF[' | ||
+ | |||
+ | // Postfix Admin Path | ||
+ | // Set the location of your Postfix Admin installation here. | ||
+ | // YOU MUST ENTER THE COMPLETE URL e.g. http:// | ||
+ | // Django : 2013-02-05 | ||
+ | // default: $CONF[' | ||
+ | $CONF[' | ||
+ | |||
+ | // shouldn' | ||
+ | $CONF[' | ||
+ | |||
+ | // Language config | ||
+ | // Language files are located in ' | ||
+ | // Django : 2013-02-05 | ||
+ | // default: $CONF[' | ||
+ | $CONF[' | ||
+ | |||
+ | // Database Config | ||
+ | // mysql = MySQL 3.23 and 4.0, 4.1 or 5 | ||
+ | // mysqli = MySQL 4.1+ | ||
+ | // pgsql = PostgreSQL | ||
+ | $CONF[' | ||
+ | // Django : 2013-02-05 | ||
+ | // default: $CONF[' | ||
+ | // $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 POSTGRESQL database connection | ||
+ | // | ||
+ | // $CONF[' | ||
+ | |||
+ | |||
+ | // Here, if you need, you can customize table names. | ||
+ | $CONF[' | ||
+ | $CONF[' | ||
+ | ' | ||
+ | ' | ||
+ | ' | ||
+ | ' | ||
+ | ' | ||
+ | ' | ||
+ | ' | ||
+ | ' | ||
+ | ' | ||
+ | ' | ||
+ | ' | ||
+ | ' | ||
+ | ' | ||
+ | ); | ||
+ | |||
+ | // Site Admin | ||
+ | // Define the Site Admins email address below. | ||
+ | // This will be used to send emails from to create mailboxes. | ||
+ | // Django : 2013-02-05 | ||
+ | // default: $CONF[' | ||
+ | $CONF[' | ||
+ | |||
+ | // Mail Server | ||
+ | // Hostname (FQDN) of your mail server. | ||
+ | // This is used to send email to Postfix in order to create mailboxes. | ||
+ | // Django : 2013-02-05 | ||
+ | // default: $CONF[' | ||
+ | $CONF[' | ||
+ | $CONF[' | ||
+ | |||
+ | // Encrypt | ||
+ | // In what way do you want the passwords to be crypted? | ||
+ | // md5crypt = internal postfix admin md5 | ||
+ | // md5 = md5 sum of the password | ||
+ | // system = whatever you have set as your PHP system default | ||
+ | // cleartext = clear text passwords (ouch!) | ||
+ | // mysql_encrypt = useful for PAM integration | ||
+ | // authlib = support for courier-authlib style passwords | ||
+ | // dovecot: | ||
+ | $CONF[' | ||
+ | |||
+ | // In what flavor should courier-authlib style passwords be enrypted? | ||
+ | // md5 = {md5} + base64 encoded md5 hash | ||
+ | // md5raw = {md5raw} + plain encoded md5 hash | ||
+ | // SHA = {SHA} + base64-encoded sha1 hash | ||
+ | // crypt = {crypt} + Standard UNIX DES-enrypted with 2-character salt | ||
+ | $CONF[' | ||
+ | |||
+ | // If you use the dovecot encryption method: where is the dovecotpw binary located? | ||
+ | $CONF[' | ||
+ | |||
+ | // Minimum length required for passwords. Postfixadmin will not | ||
+ | // allow users to set passwords which are shorter than this value. | ||
+ | // Django : 2013-02-05 | ||
+ | // default: $CONF[' | ||
+ | $CONF[' | ||
+ | |||
+ | // Generate Password | ||
+ | // Generate a random password for a mailbox or admin and display it. | ||
+ | // If you want to automagically generate paswords set this to ' | ||
+ | // Django : 2013-02-05 | ||
+ | // default: $CONF[' | ||
+ | $CONF[' | ||
+ | |||
+ | // Show Password | ||
+ | // Always show password after adding a mailbox or admin. | ||
+ | // If you want to always see what password was set set this to ' | ||
+ | $CONF[' | ||
+ | |||
+ | // Page Size | ||
+ | // Set the number of entries that you would like to see | ||
+ | // in one page. | ||
+ | // Django : 2013-02-05 | ||
+ | // default: $CONF[' | ||
+ | $CONF[' | ||
+ | |||
+ | // Default Aliases | ||
+ | // The default aliases that need to be created for all domains. | ||
+ | $CONF[' | ||
+ | // Django : 2013-02-05 | ||
+ | // default: ' | ||
+ | // ' | ||
+ | // ' | ||
+ | // ' | ||
+ | ' | ||
+ | ' | ||
+ | ' | ||
+ | ' | ||
+ | ); | ||
+ | |||
+ | // Mailboxes | ||
+ | // If you want to store the mailboxes per domain set this to ' | ||
+ | // Examples: | ||
+ | // YES: / | ||
+ | // | ||
+ | // Django : 2013-02-05 | ||
+ | // default: $CONF[' | ||
+ | $CONF[' | ||
+ | // If you don't want to have the domain in your mailbox set this to ' | ||
+ | // Examples: | ||
+ | // YES: / | ||
+ | // | ||
+ | // Note: If $CONF[' | ||
+ | // Django : 2013-02-05 | ||
+ | // default: $CONF[' | ||
+ | $CONF[' | ||
+ | // If you want to define your own function to generate a maildir path set this to the name of the function. | ||
+ | // Notes: | ||
+ | // - this configuration directive will override both domain_path and domain_in_mailbox | ||
+ | // - the maildir_name_hook() function example is present below, commented out | ||
+ | // - if the function does not exist the program will default to the above domain_path and domain_in_mailbox settings | ||
+ | $CONF[' | ||
+ | |||
+ | /* | ||
+ | maildir_name_hook example function | ||
+ | |||
+ | Called by create-mailbox.php if $CONF[' | ||
+ | - allows for customized maildir paths determined by a custom function | ||
+ | - the example below will prepend a single-character directory to the | ||
+ | beginning of the maildir, splitting domains more or less evenly over | ||
+ | 36 directories for improved filesystem performance with large numbers | ||
+ | of domains. | ||
+ | |||
+ | Returns: maildir path | ||
+ | ie. I/ | ||
+ | */ | ||
+ | /* | ||
+ | function maildir_name_hook($domain, | ||
+ | $chars = " | ||
+ | |||
+ | $dir_index = hexdec(substr(md5($domain), | ||
+ | $dir = substr($chars, | ||
+ | return sprintf(" | ||
+ | } | ||
+ | */ | ||
+ | |||
+ | |||
+ | // Default Domain Values | ||
+ | // Specify your default values below. Quota in MB. | ||
+ | // Django : 2013-02-05 | ||
+ | // default: $CONF[' | ||
+ | // $CONF[' | ||
+ | // $CONF[' | ||
+ | $CONF[' | ||
+ | $CONF[' | ||
+ | $CONF[' | ||
+ | |||
+ | // Quota | ||
+ | // When you want to enforce quota for your mailbox users set this to ' | ||
+ | // Django : 2013-02-05 | ||
+ | // default: $CONF[' | ||
+ | $CONF[' | ||
+ | // You can either use ' | ||
+ | $CONF[' | ||
+ | |||
+ | // Transport | ||
+ | // If you want to define additional transport options for a domain set this to ' | ||
+ | // Read the transport file of the Postfix documentation. | ||
+ | $CONF[' | ||
+ | // Transport options | ||
+ | // If you want to define additional transport options put them in array below. | ||
+ | $CONF[' | ||
+ | ' | ||
+ | ' | ||
+ | ' | ||
+ | ); | ||
+ | // Transport default | ||
+ | // You should define default transport. It must be in array above. | ||
+ | $CONF[' | ||
+ | |||
+ | // Virtual Vacation | ||
+ | // If you want to use virtual vacation for you mailbox users set this to ' | ||
+ | // NOTE: Make sure that you install the vacation module. (See VIRTUAL-VACATION/ | ||
+ | $CONF[' | ||
+ | // This is the autoreply domain that you will need to set in your Postfix | ||
+ | // 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). | ||
+ | // Django : 2013-02-05 | ||
+ | // default: $CONF[' | ||
+ | $CONF[' | ||
+ | |||
+ | // Vacation Control | ||
+ | // If you want users to take control of vacation set this to ' | ||
+ | // Django : 2013-02-05 | ||
+ | // default: $CONF[' | ||
+ | $CONF[' | ||
+ | |||
+ | // Vacation Control for admins | ||
+ | // Set to ' | ||
+ | // Django : 2013-02-05 | ||
+ | // default: $CONF[' | ||
+ | $CONF[' | ||
+ | |||
+ | // Alias Control | ||
+ | // Postfix 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 ' | ||
+ | |||
+ | // Alias control for superadmins | ||
+ | $CONF[' | ||
+ | |||
+ | // Alias Control for domain admins | ||
+ | $CONF[' | ||
+ | |||
+ | // Special Alias Control | ||
+ | // Set to ' | ||
+ | // as defined in $CONF[' | ||
+ | $CONF[' | ||
+ | |||
+ | // Alias Goto Field Limit | ||
+ | // Set the max number of entries that you would like to see | ||
+ | // in one ' | ||
+ | // ' | ||
+ | $CONF[' | ||
+ | |||
+ | // Alias Domains | ||
+ | // Alias domains allow to " | ||
+ | // configuration easier if you need the same set of aliases on multiple domains, but | ||
+ | // also requires postfix to do more database queries. | ||
+ | // Note: If you update from 2.2.x or earlier, you will have to update your postfix configuration. | ||
+ | // Set to ' | ||
+ | $CONF[' | ||
+ | |||
+ | // Backup | ||
+ | // If you don't want backup tab set this to ' | ||
+ | $CONF[' | ||
+ | |||
+ | // Send Mail | ||
+ | // If you don't want sendmail tab set this to ' | ||
+ | $CONF[' | ||
+ | |||
+ | // Logging | ||
+ | // If you don't want logging set this to ' | ||
+ | $CONF[' | ||
+ | |||
+ | // Fetchmail | ||
+ | // If you don't want fetchmail tab set this to ' | ||
+ | // Django : 2013-02-05 | ||
+ | // default: $CONF[' | ||
+ | $CONF[' | ||
+ | |||
+ | // fetchmail_extra_options allows users to specify any fetchmail options and any MDA | ||
+ | // (it will even accept 'rm -rf /' as MDA!) | ||
+ | // This should be set to NO, except if you *really* trust *all* your users. | ||
+ | $CONF[' | ||
+ | |||
+ | // Header | ||
+ | $CONF[' | ||
+ | $CONF[' | ||
+ | |||
+ | // link to display under ' | ||
+ | // Django : 2013-02-05 | ||
+ | // default: $CONF[' | ||
+ | $CONF[' | ||
+ | |||
+ | // Footer | ||
+ | // Below information will be on all pages. | ||
+ | // If you don't want the footer information to appear set this to ' | ||
+ | $CONF[' | ||
+ | // Django : 2013-02-05 | ||
+ | // default: $CONF[' | ||
+ | // $CONF[' | ||
+ | $CONF[' | ||
+ | $CONF[' | ||
+ | |||
+ | // Welcome Message | ||
+ | // This message is send to every newly created mailbox. | ||
+ | // Change the text between EOM. | ||
+ | // Django : 2013-02-05 | ||
+ | // default: $CONF[' | ||
+ | // Hi, | ||
+ | // | ||
+ | // Welcome to your new account. | ||
+ | // EOM; | ||
+ | $CONF[' | ||
+ | Griasde! | ||
+ | |||
+ | Herzlich Willkommen auf dem Mailserver von nausch.org! | ||
+ | |||
+ | Wenn Du Probleme, Fragen und/oder Anregungen zu diesem Dienst hast, dann schreib | ||
+ | einfach eine eMail an django@nausch.org. | ||
+ | |||
+ | Den Webmaildienst erreichst du unter dieser Adresse: | ||
+ | https:// | ||
+ | |||
+ | Viel Spass und viele Gruesse | ||
+ | |||
+ | BOfH aka Django | ||
+ | Bastard Operator from Hell | ||
+ | http:// | ||
+ | EOM; | ||
+ | |||
+ | // When creating mailboxes or aliases, check that the domain-part of the | ||
+ | // address is legal by performing a name server look-up. | ||
+ | // Django : 2013-02-05 | ||
+ | // default: $CONF[' | ||
+ | $CONF[' | ||
+ | |||
+ | |||
+ | // Optional: | ||
+ | // Analyze alias gotos and display a colored block in the first column | ||
+ | // indicating if an alias or mailbox appears to deliver to a non-existent | ||
+ | // account. | ||
+ | // for custom destinations (such as mailboxes that forward to a UNIX shell | ||
+ | // account or mail that is sent to a MS exchange server, or any other | ||
+ | // domain or subdomain you use) | ||
+ | // See http:// | ||
+ | // color names available on most browsers | ||
+ | |||
+ | //set to YES to enable this feature | ||
+ | // Django : 2013-02-05 | ||
+ | // default: $CONF[' | ||
+ | $CONF[' | ||
+ | //display a guide to what these colors mean | ||
+ | // Django : 2013-02-05 | ||
+ | // default: $CONF[' | ||
+ | $CONF[' | ||
+ | // ' | ||
+ | // associated with each status, you can customize it here | ||
+ | $CONF[' | ||
+ | // show_undeliverable is useful if most accounts are delivered to this | ||
+ | // postfix system. | ||
+ | // elsewhere, you will probably want to disable this. | ||
+ | $CONF[' | ||
+ | $CONF[' | ||
+ | // mails to these domains will never be flagged as undeliverable | ||
+ | $CONF[' | ||
+ | $CONF[' | ||
+ | $CONF[' | ||
+ | // you can assign special colors to some domains. To do this, | ||
+ | // - add the domain to show_custom_domains | ||
+ | // - add the corresponding color to show_custom_colors | ||
+ | $CONF[' | ||
+ | $CONF[' | ||
+ | // If you use a recipient_delimiter in your postfix config, you can also honor it when aliases are checked. | ||
+ | // Example: $CONF[' | ||
+ | // Set to "" | ||
+ | // Django : 2013-02-05 | ||
+ | // default: $CONF[' | ||
+ | $CONF[' | ||
+ | |||
+ | |||
+ | // Optional: | ||
+ | // Script to run after creation of mailboxes. | ||
+ | // Note that this may fail if PHP is run in "safe mode", or if | ||
+ | // operating system features (such as SELinux) or limitations | ||
+ | // prevent the web-server from executing external scripts. | ||
+ | // Parameters: (1) username (2) domain (3) maildir (4) quota | ||
+ | // $CONF[' | ||
+ | |||
+ | // Optional: | ||
+ | // Script to run after alteration of mailboxes. | ||
+ | // Note that this may fail if PHP is run in "safe mode", or if | ||
+ | // operating system features (such as SELinux) or limitations | ||
+ | // prevent the web-server from executing external scripts. | ||
+ | // Parameters: (1) username (2) domain (3) maildir (4) quota | ||
+ | // $CONF[' | ||
+ | |||
+ | // Optional: | ||
+ | // Script to run after deletion of mailboxes. | ||
+ | // Note that this may fail if PHP is run in "safe mode", or if | ||
+ | // operating system features (such as SELinux) or limitations | ||
+ | // prevent the web-server from executing external scripts. | ||
+ | // Parameters: (1) username (2) domain | ||
+ | // $CONF[' | ||
+ | |||
+ | // Optional: | ||
+ | // Script to run after creation of domains. | ||
+ | // Note that this may fail if PHP is run in "safe mode", or if | ||
+ | // operating system features (such as SELinux) or limitations | ||
+ | // prevent the web-server from executing external scripts. | ||
+ | // Parameters: (1) domain | ||
+ | // | ||
+ | |||
+ | // Optional: | ||
+ | // Script to run after deletion of domains. | ||
+ | // Note that this may fail if PHP is run in "safe mode", or if | ||
+ | // operating system features (such as SELinux) or limitations | ||
+ | // prevent the web-server from executing external scripts. | ||
+ | // Parameters: (1) domain | ||
+ | // $CONF[' | ||
+ | |||
+ | // Optional: | ||
+ | // Sub-folders which should automatically be created for new users. | ||
+ | // The sub-folders will also be subscribed to automatically. | ||
+ | // Will only work with IMAP server which implement sub-folders. | ||
+ | // Will not work with POP3. | ||
+ | // If you define create_mailbox_subdirs, | ||
+ | // create_mailbox_subdirs_host must also be defined. | ||
+ | // | ||
+ | // $CONF[' | ||
+ | // $CONF[' | ||
+ | // | ||
+ | // Specify '' | ||
+ | // Django : 2013-02-05 | ||
+ | // default: $CONF[' | ||
+ | $CONF[' | ||
+ | |||
+ | // Optional: | ||
+ | // Show used quotas from Dovecot dictionary backend in virtual | ||
+ | // mailbox listing. | ||
+ | // See: DOCUMENTATION/ | ||
+ | // http:// | ||
+ | // | ||
+ | // Django : 2013-02-05 | ||
+ | // default: $CONF[' | ||
+ | $CONF[' | ||
+ | |||
+ | // if you use dovecot >= 1.2, set this to yes. | ||
+ | // Note about dovecot config: table " | ||
+ | // Django : 2013-02-05 | ||
+ | // default: $CONF[' | ||
+ | $CONF[' | ||
+ | |||
+ | // | ||
+ | // Normally, the TCP port number does not have to be specified. | ||
+ | // $CONF[' | ||
+ | // | ||
+ | // If you have trouble connecting to the IMAP-server, | ||
+ | // a value for $CONF[' | ||
+ | // are some examples to experiment with: | ||
+ | // $CONF[' | ||
+ | // $CONF[' | ||
+ | // See also the " | ||
+ | // http:// | ||
+ | |||
+ | |||
+ | // Theme Config | ||
+ | // Specify your own logo and CSS file | ||
+ | // Django : 2013-02-05 | ||
+ | // default: | ||
+ | $CONF[' | ||
+ | // $CONF[' | ||
+ | $CONF[' | ||
+ | |||
+ | // XMLRPC Interface. | ||
+ | // This should be only of use if you wish to use e.g the | ||
+ | // Postfixadmin-Squirrelmail package | ||
+ | // change to boolean true to enable xmlrpc | ||
+ | $CONF[' | ||
+ | |||
+ | |||
+ | // If you want to keep most settings at default values and/or want to ensure | ||
+ | // that future updates work without problems, you can use a separate config | ||
+ | // file (config.local.php) instead of editing this file and override some | ||
+ | // settings there. | ||
+ | if (file_exists(dirname(__FILE__) . '/ | ||
+ | include(dirname(__FILE__) . '/ | ||
+ | } | ||
+ | |||
+ | // | ||
+ | // END OF CONFIG FILE | ||
+ | // | ||
+ | /* vim: set expandtab softtabstop=4 tabstop=4 shiftwidth=4: | ||
+ | </ | ||
+ | |||
+ | |||
+ | ===== Initialisierung ===== | ||
+ | Die Erstinitialisierung nehmen wir nun über unserem Browser vor. | ||
+ | $ firefox http:// | ||
+ | |||
+ | Als erstes erzeugen wir den Passworthash unseres Konfigurationspasswortes. | ||
+ | |||
+ | {{ : | ||
+ | |||
+ | |||
+ | {{ : | ||
+ | |||
+ | Diesen tragen wir in die Konfigurationsdatei **config.inc.php** ein. | ||
+ | # vim / | ||
+ | <code php>... | ||
+ | |||
+ | // In order to setup Postfixadmin, | ||
+ | // To create the hash, visit setup.php in a browser and type a password into the field, | ||
+ | // on submission it will be echoed out to you as a hashed value. | ||
+ | // Django : 2013-02-05 | ||
+ | // default: $CONF[' | ||
+ | $CONF[' | ||
+ | |||
+ | ... | ||
+ | </ | ||
+ | Anschließend rufen wir die Konfigurationsseite nochmals auf und legen unseren BOfH((**B**astard **O**perator **f**rom **H**ell))-Account an. | ||
+ | |||
+ | {{ : | ||
+ | |||
+ | |||
+ | {{ : | ||
+ | |||
+ | Anschließend können wir nun die Loginseite unserer WEB-GUI aufrufen. | ||
+ | |||
+ | {{ : | ||
+ | |||
+ | |||
+ | |||
+ | ====== Links ====== | ||
+ | * **[[centos: | ||
+ | * **[[wiki: | ||
+ | * **[[http:// | ||
+ | |||
+ | ~~DISCUSSION~~ |