PostfixAdmin (Ubuntu 16.04)
Noch in Bearbeitung
Installation
Aktuelle Version unter https://sourceforge.net/projects/postfixadmin/files/postfixadmin herunterladen.
wget https://sourceforge.net/projects/postfixadmin/files/postfixadmin/postfixadmin-3.1/postfixadmin-3.1.tar.gz tar -xzf postfixadmin-3.1.tar.gz sudo mv postfixadmin-3.1 /var/www/postfixadmin/ sudo chown -R www-data:www-data /var/www/postfixadmin/
In dem entpackten Verzeichnis befindet sich auch eine Datei Install.txt, wo die grundlegenden Schritte beschrieben werden.
Konfiguration
Apache2
cd /etc/apache2/conf-available/ sudo vi /etc/apache2/conf-available/postfixadmin.conf
Alias /postfixadmin "/var/www/postfixadmin/" <Directory "/var/www/postfixadmin"> Options +FollowSymLinks AllowOverride All <IfModule mod_dav.c> Dav off </IfModule> SetEnv HOME /var/www/postfixadmin SetEnv HTTP_HOME /var/www/postfixadmin </Directory>
sudo a2enconf postfixadmin sudo service apache2 reload
PostfixAdmin
Konfigurationsdatei anlegen (überschreibt die Standardwerte in config.inc.php):
cd /var/www/postfixadmin/ sudo -u www-data nano config.local.php
Datei sollte etwa folgendermaßen aussehen:
<?php $CONF['configured'] = true; $CONF['setup_password'] = '<setup password>'; $CONF['default_language'] = 'de'; $CONF['database_type'] = 'mysql'; $CONF['database_user'] = 'postfix'; $CONF['database_password'] = '<database password>'; $CONF['database_name'] = 'postfix'; $CONF['admin_email'] = '<mail address>'; $CONF['encrypt'] = 'dovecot:SHA512-CRYPT'; $CONF['dovecotpw'] = "/usr/bin/doveadm pw"; $CONF['transport'] = 'YES'; $CONF['default_aliasis'] = array ( 'abuse' => '<mail address>', 'hostmaster' => '<mail address>', 'postmaster' => '<mail address>', 'webmaster' => '<mail address>' ); $CONF['password_validation'] = array( # '/regular expression/' => '$PALANG key (optional: + parameter)', '/.{5}/' => 'password_too_short 5', # minimum length 5 characters '/([a-zA-Z].*){3}/' => 'password_no_characters 3', # must contain at least 3 characters '/([0-9].*){1}/' => 'password_no_digits 1', # must contain at least 1 digit(s) ); $CONF['aliases'] = '100'; $CONF['mailboxes'] = '100'; $CONF['maxquota'] = '100'; $CONF['domain_quota_default'] = '2048'; $CONF['footer_text'] = 'Return to mail.<domain>'; $CONF['footer_link'] = 'https://mail.<domain>'; $CONF['mailbox_postcreation_script'] = 'sudo -u vmail /usr/local/bin/postfixadmin-mailbox-postcreation.sh'; $CONF['mailbox_postdeletion_script'] = 'sudo -u vmail /usr/local/bin/postfixadmin-mailbox-postdeletion.sh'; $CONF['domain_postdeletion_script'] = 'sudo -u vmail /usr/local/bin/postfixadmin-domain-postdeletion.sh'; ?>
Zurück zu Mailserver einrichten