Configurer son dédié

 

Configurer son dédié

Je part du moment que vous avez commandé votre serveur dédié ou que vous avez effectué l’installation sur votre machine

C’est parti :

1/ Configurer le Réseau

On commence par editer le fichier /etc/hosts :

nano /etc/hosts
127.0.0.1 localhost.localdomain localhost
192.168.0.100 server1.example.com server1

# The following lines are desirable for IPv6 capable hosts
::1 localhost ip6-localhost ip6-loopback
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters

Maintenant faites :

echo server1.example.com > /etc/hostname
/etc/init.d/hostname.sh start

On effectue une petite vérification :

hostname
hostname -f

Les deux commandes doivent retourner : server1.example.com !

2/ Mettre a jour Debian

Nous allons dans un premier temps vérifier les dépôts présents dans les sources :

nano /etc/apt/sources.list
deb http://ftp.de.debian.org/debian/ wheezy main contrib non-free
deb-src http://ftp.de.debian.org/debian/ wheezy main contrib non-free

deb http://security.debian.org/ wheezy/updates main contrib non-free
deb-src http://security.debian.org/ wheezy/updates main contrib non-free

# wheezy-updates, previously known as 'volatile'
deb http://ftp.de.debian.org/debian/ wheezy-updates main contrib non-free
deb-src http://ftp.de.debian.org/debian/ wheezy-updates main contrib non-free

Nous allons mettre a jour la base de données :

apt-get update

et ensuite mettre a jour les logiciels :

apt-get upgrade

 3/ Changer le Shell par defaut

Nous allons reconfiguer le dash. Pour ce faire :

dpkg-reconfigure dash

Ca vous demande :

Use dash as the default system shell (/bin/sh)? <- non

4/ Synchroniser l’heure du systeme

C’est une bonne idée de synchroniser l’heure du serveur avec l’heure mondiale. Nous allons donc installer NTP :

apt-get install ntp ntpdate

5/ Installer Postfix, Dovecot, MySQL, phpMyAdmin, rkhunter, binutils

Nous allons tout installer en une seule commande :

apt-get install postfix postfix-mysql postfix-doc mysql-client mysql-server openssl getmail4 rkhunter binutils dovecot-imapd dovecot-pop3d dovecot-mysql dovecot-sieve sudo

Ensuite répondez aux questions suivantes :

General type of mail configuration: <-- Internet Site
System mail name: <-- server1.example.com
New password for the MySQL "root" user: <-- your-root-sql-password
Repeat password for the MySQL "root" user: <-- your-root-sql-password

Nous allons ouvrir les port de Postfix pour le TLS / SSL via la commande :

nano /etc/postfix/master.cf

Dé commenter les sections suivantes : (Attention a bien laisser commenter -o milter_macro_daemon_name=ORIGINATING nous en avons pas besoin):

[...]
submission inet n - - - - smtpd
-o syslog_name=postfix/submission
-o smtpd_tls_security_level=encrypt
-o smtpd_sasl_auth_enable=yes
-o smtpd_client_restrictions=permit_sasl_authenticated,reject
# -o milter_macro_daemon_name=ORIGINATING
smtps inet n - - - - smtpd
-o syslog_name=postfix/smtps
-o smtpd_tls_wrappermode=yes
-o smtpd_sasl_auth_enable=yes
-o smtpd_client_restrictions=permit_sasl_authenticated,reject
# -o milter_macro_daemon_name=ORIGINATING
[...]

On redémarre Postfix :

/etc/init.d/postfix restart

Nous voulons que MYSQL ecoute sur toutes les interfaces et pas seulement en local. Nous allons donc éditer le fichier : /etc/mysql/my.cnf et commenter la ligne : bind-address = 127.0.0.1:

nano /etc/mysql/my.cnf
[...]
# Instead of skip-networking the default is now to listen only on
# localhost which is more compatible and is not less secure.
#bind-address = 127.0.0.1
[...]

Ensuite on redémarre MySQL:

/etc/init.d/mysql restart

On vérifie si tout est fonctionnel

netstat -tap | grep mysql

Ça doit vous donner une ligne dans le même genre :

root@server1:~# netstat -tap | grep mysql
tcp 0 0 *:mysql *:* LISTEN 26757/mysqld
root@server1:~#

6/ Installer Amavisd-new, SpamAssassin et Clamav

Pour installer amavisd-new, SpamAssassin, and ClamAV, on effectue :

apt-get install amavisd-new spamassassin clamav clamav-daemon zoo unzip bzip2 arj nomarch lzop cabextract apt-listchanges libnet-ldap-perl libauthen-sasl-perl clamav-docs daemon libio-string-perl libio-socket-ssl-perl libnet-ident-perl zip libnet-dns-perl

Ensuite on stoppe le service car ISPConfig va le relancer, ça permettra de libérer de la RAM :

/etc/init.d/spamassassin stop
update-rc.d -f spamassassin remove

7/ Installer Apache2, PHP5, phpMyAdmin, FCGI, suExec, Pear et mcrypt

Apache2, PHP5, phpMyAdmin, FCGI, suExec, Pear et mcrypt en une seule commande :

apt-get install apache2 apache2.2-common apache2-doc apache2-mpm-prefork apache2-utils libexpat1 ssl-cert libapache2-mod-php5 php5 php5-common php5-gd php5-mysql php5-imap phpmyadmin php5-cli php5-cgi libapache2-mod-fcgid apache2-suexec php-pear php-auth php5-mcrypt mcrypt php5-imagick imagemagick libapache2-mod-suphp libruby libapache2-mod-ruby libapache2-mod-python php5-curl php5-intl php5-memcache php5-memcached php5-ming php5-ps php5-pspell php5-recode php5-snmp php5-sqlite php5-tidy php5-xmlrpc php5-xsl memcached

Répondez comme cela aux différentes questions :

Web server to reconfigure automatically: <- apache2
Configure database for phpmyadmin with dbconfig-common? <- non

Ensuite nous allons « activer » les modules Apache : suexec, rewrite, ssl, actions, et include (plus dav, dav_fs, and auth_digest si vous voulez utiliser WebDAV):

a2enmod suexec rewrite ssl actions include
a2enmod dav_fs dav auth_digest

Maintenant éditez : /etc/apache2/mods-available/suphp.conf …

nano /etc/apache2/mods-available/suphp.conf

… et commenter la section : <FilesMatch « \.ph(p3?|tml)$ »> et ajouter : « AddType application/x-httpd-suphp .php .php3 .php4 .php5 .phtml » :

<IfModule mod_suphp.c>
#<FilesMatch "\.ph(p3?|tml)$">
# SetHandler application/x-httpd-suphp
#</FilesMatch>
AddType application/x-httpd-suphp .php .php3 .php4 .php5 .phtml
suPHP_AddHandler application/x-httpd-suphp

<Directory />
suPHP_Engine on
</Directory>

# By default, disable suPHP for debian packaged web applications as files
# are owned by root and cannot be executed by suPHP because of min_uid.
<Directory /usr/share>
suPHP_Engine off
</Directory>

# # Use a specific php config file (a dir which contains a php.ini file)
# suPHP_ConfigPath /etc/php5/cgi/suphp/
# # Tells mod_suphp NOT to handle requests with the type <mime-type>.
# suPHP_RemoveHandler <mime-type>
</IfModule>

On redémarre Apache :

/etc/init.d/apache2 restart

Si vous voulez héberger des fichiers Ruby avec l’extention .rb sur vous sites web. Nous devons commenter la ligne : application/x-ruby rb dans  /etc/mime.types:

nano /etc/mime.types
[...]
#application/x-ruby rb
[...]

On redémarre Apache :

/etc/init.d/apache2 restart

8/ Xcache

XCache est un accélérateur PHP comme eAccelerator et APC (Alternative PHP Cache) : il permet de mettre en cache le code PHP déjà compilé. Ceci évitera de recompiler les fichiers PHP à chaque fois, ce qui augmente de façon considérable les performances de votre site.

Il surmonte beaucoup de problèmes qui ont été relevés avec d’autres accélérateurs tels que de pouvoir être employé avec de nouvelles versions de PHP.

Xcache peut-être installer comme ceci :

apt-get install php5-xcache

On redémarre Apache :

/etc/init.d/apache2 restart

9/ PHP-FPM

Avec ISPConfig, nous pouvons utiliser le module Apache : PHP-FPM.

Pour l’utiliser nous devons tout d’abord l’installer :

apt-get install libapache2-mod-fastcgi php5-fpm

On l’active et on redémarre Apache :

a2enmod actions fastcgi alias
/etc/init.d/apache2 restart

10/ Ajouter d’autres versions PHP

Toujours avec ISPConfig, nous pouvons utiliser plusieurs versions de PHP sur le même serveur (Sélectionnable dans la configuration du site). Il faudra visiter le tutoriel : Comment utiliser plusieurs versions php (PHP-FPM & FastCGI) avec ISPConfig 3 (Debian Wheezy). [En Cours de Réalisation]

11/ Installer PureFTPd et appliquer des Quotas

On les installe avec la commande suivante :

apt-get install pure-ftpd-common pure-ftpd-mysql quota quotatool

Éditez le file /etc/default/pure-ftpd-common …

nano /etc/default/pure-ftpd-common

… et vérifier que on est bien en standalone et que Virtualchroot est en true :

[...]
STANDALONE_OR_INETD=standalone
[...]
VIRTUALCHROOT=true
[...]

Ensuite nous allons configurer PureFTPd pour accepter les sessions en TLS. Le protocole FTP n’est pas sécurisé (Mot de passe et data sont transféré en clair). En utilisant le TLS, tout sera crypté.

echo 1 > /etc/pure-ftpd/conf/TLS

Pour utiliser le TLS, dans un premier temps, nous devons créer un certificat SSL. Nous allons le créer dans /etc/ssl/private/

Création du dossier :

mkdir -p /etc/ssl/private/

Génération du certificat :

openssl req -x509 -nodes -days 7300 -newkey rsa:2048 -keyout /etc/ssl/private/pure-ftpd.pem -out /etc/ssl/private/pure-ftpd.pem

Country Name (2 letter code) [AU]: <-- Entrer votre pays (2 premières lettres) .
State or Province Name (full name) [Some-State]: <-- Entrez votre département.
Locality Name (eg, city) []: <-- Entrez votre ville.
Organization Name (eg, company) [Internet Widgits Pty Ltd]: <-- Entrez le nom de votre société.
Organizational Unit Name (eg, section) []: <-- Entrez le département dans la société (par exemple : IT )
Common Name (eg, YOUR name) []: <-- Entrez le nom du domaine (exemple : "server1.example.com").
Email Address []: <-- Votre email

Changez les permissions du certificat SSL :

chmod 600 /etc/ssl/private/pure-ftpd.pem

On redémarre PureFTPd :

/etc/init.d/pure-ftpd-mysql restart

Editez /etc/fstab. Regardez le mien j’ai ajouter  ,usrjquota=quota.user,grpjquota=quota.group,jqfmt=vfsv0  a la partition du / :

nano /etc/fstab
# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
#
/dev/mapper/server1-root / ext4 errors=remount-ro,usrjquota=quota.user,grpjquota=quota.group,jqfmt=vfsv0 0 1
# /boot was on /dev/sda1 during installation
UUID=46d1bd79-d761-4b23-80b8-ad20cb18e049 /boot ext2 defaults 0 2
/dev/mapper/server1-swap_1 none swap sw 0 0
/dev/sr0 /media/cdrom0 udf,iso9660 user,noauto 0 0

Pour l’activer les quotas on effectue :

mount -o remount /

quotacheck -avugm
quotaon -avug

12/ Installer BIND DNS Server

BIND peut-être installer comme ceci:

apt-get install bind9 dnsutils

13/ Installer Vlogger, Webalizer et AWstats

Vlogger, webalizer et AWstats peuvent être installer en une seule commande :

apt-get install vlogger webalizer awstats geoip-database libclass-dbi-mysql-perl

Ouvrez /etc/cron.d/awstats …

nano /etc/cron.d/awstats

… et commenter tout le fichier :

#MAILTO=root

#*/10 * * * * www-data [ -x /usr/share/awstats/tools/update.sh ] && /usr/share/awstats/tools/update.sh

# Generate static reports:
#10 03 * * * www-data [ -x /usr/share/awstats/tools/buildstatic.sh ] && /usr/share/awstats/tools/buildstatic.sh

14/ Install Jailkit

Jailkit est nécessaire pour faire du CHROOT sur les utilisateur SSH. (important: Jailkit doit être installer avant ISPConfig sinon vous devrez tout refaire !):

apt-get install build-essential autoconf automake1.9 libtool flex bison debhelper binutils-gold

cd /tmp
wget http://olivier.sessink.nl/jailkit/jailkit-2.17.tar.gz
tar xvfz jailkit-2.17.tar.gz
cd jailkit-2.17
./debian/rules binary

 

Nous pouvons à présent installer les paquets Jailkit :

cd ..
dpkg -i jailkit_2.17-1_*.deb
rm -rf jailkit-2.17*

15/ Install fail2ban

Cette étape est optionnel mais très recommandé !

apt-get install fail2ban

Pour « installer » fail2ban sur PureFTPd et Dovecot, il faut créer le fichier /etc/fail2ban/jail.local:

nano /etc/fail2ban/jail.local

On colle ça dedans :

[pureftpd]
enabled = true
port = ftp
filter = pureftpd
logpath = /var/log/syslog
maxretry = 3

[dovecot-pop3imap]
enabled = true
filter = dovecot-pop3imap
action = iptables-multiport[name=dovecot-pop3imap, port="pop3,pop3s,imap,imaps", protocol=tcp]
logpath = /var/log/mail.log
maxretry = 5

[sasl]
enabled = true
port = smtp
filter = sasl
logpath = /var/log/mail.log
maxretry = 3

A présent on crée 2 filtres :

nano /etc/fail2ban/filter.d/pureftpd.conf
[Definition]
failregex = .*pure-ftpd: \(.*@<HOST>\) \[WARNING\] Authentication failed for user.*
ignoreregex =
nano /etc/fail2ban/filter.d/dovecot-pop3imap.conf
[Definition]
failregex = (?: pop3-login|imap-login): .*(?:Authentication failure|Aborted login \(auth failed|Aborted login \(tried to use disabled|Disconnected \(auth failed|Aborted login \(\d+ authentication attempts).*rip=(?P<host>\S*),.*
ignoreregex =

On redémarre fail2ban :

/etc/init.d/fail2ban restart

15/ Install SquirrelMail

Pour installer le webmail SquirrelMail, on effectue :

apt-get install squirrelmail

Pour le configurer :

squirrelmail-configure

Nous sommes obligé d’indiquer que nous utilisons Dovecot-IMAP/-POP3 :

SquirrelMail Configuration : Read: config.php (1.4.0)
---------------------------------------------------------
Main Menu --
1. Organization Preferences
2. Server Settings
3. Folder Defaults
4. General Options
5. Themes
6. Address Books
7. Message of the Day (MOTD)
8. Plugins
9. Database
10. Languages

D. Set pre-defined settings for specific IMAP servers

C Turn color on
S Save data
Q Quit

Command >> <-- D
SquirrelMail Configuration : Read: config.php
---------------------------------------------------------
While we have been building SquirrelMail, we have discovered some
preferences that work better with some servers that don't work so
well with others. If you select your IMAP server, this option will
set some pre-defined settings for that server.

Please note that you will still need to go through and make sure
everything is correct. This does not change everything. There are
only a few settings that this will change.

Please select your IMAP server:
bincimap = Binc IMAP server
courier = Courier IMAP server
cyrus = Cyrus IMAP server
dovecot = Dovecot Secure IMAP server
exchange = Microsoft Exchange IMAP server
hmailserver = hMailServer
macosx = Mac OS X Mailserver
mercury32 = Mercury/32
uw = University of Washington's IMAP server
gmail = IMAP access to Google mail (Gmail) accounts

quit = Do not change anything
Command >> <-- dovecot
SquirrelMail Configuration : Read: config.php
---------------------------------------------------------
While we have been building SquirrelMail, we have discovered some
preferences that work better with some servers that don't work so
well with others. If you select your IMAP server, this option will
set some pre-defined settings for that server.

Please note that you will still need to go through and make sure
everything is correct. This does not change everything. There are
only a few settings that this will change.

Please select your IMAP server:
bincimap = Binc IMAP server
courier = Courier IMAP server
cyrus = Cyrus IMAP server
dovecot = Dovecot Secure IMAP server
exchange = Microsoft Exchange IMAP server
hmailserver = hMailServer
macosx = Mac OS X Mailserver
mercury32 = Mercury/32
uw = University of Washington's IMAP server
gmail = IMAP access to Google mail (Gmail) accounts

quit = Do not change anything
Command >> dovecot

imap_server_type = dovecot
default_folder_prefix =
trash_folder = Trash
sent_folder = Sent
draft_folder = Drafts
show_prefix_option = false
default_sub_of_inbox = false
show_contain_subfolders_option = false
optional_delimiter = detect
delete_folder = false

Press any key to continue... <-- press a key

SquirrelMail Configuration : Read: config.php (1.4.0)
---------------------------------------------------------
Main Menu --
1. Organization Preferences
2. Server Settings
3. Folder Defaults
4. General Options
5. Themes
6. Address Books
7. Message of the Day (MOTD)
8. Plugins
9. Database
10. Languages

D. Set pre-defined settings for specific IMAP servers

C Turn color on
S Save data
Q Quit

Command >> <-- S
SquirrelMail Configuration : Read: config.php (1.4.0)
---------------------------------------------------------
Main Menu --
1. Organization Preferences
2. Server Settings
3. Folder Defaults
4. General Options
5. Themes
6. Address Books
7. Message of the Day (MOTD)
8. Plugins
9. Database
10. Languages

D. Set pre-defined settings for specific IMAP servers

C Turn color on
S Save data
Q Quit

Command >> <-- Q

Now we will configure SquirrelMail so that you can use it from within your web sites (created through ISPConfig) by using the /squirrelmail or /webmail aliases. So if your website is www.example.com, you will be able to access SquirrelMail using www.example.com/squirrelmail or www.example.com/webmail.

La configuration Apache de SquirrelMail est dans /etc/squirrelmail/apache.conf, mais ce fichier ne sera pas charger par Apache car il n’est pas dans le dossier : /etc/apache2/conf.d/ . Nous allons donc créer un lien symbolique pour qu’Apache le charge :

cd /etc/apache2/conf.d/
ln -s ../../squirrelmail/apache.conf squirrelmail.conf
/etc/init.d/apache2 reload

A présent, ouvrez /etc/apache2/conf.d/squirrelmail.conf…

nano /etc/apache2/conf.d/squirrelmail.conf

… et vérifier si vous avez ces lignes :

[...]
<Directory /usr/share/squirrelmail>
Options FollowSymLinks
<IfModule mod_php5.c>
AddType application/x-httpd-php .php
php_flag magic_quotes_gpc Off
php_flag track_vars On
php_admin_flag allow_url_fopen Off
php_value include_path .
php_admin_value upload_tmp_dir /var/lib/squirrelmail/tmp
php_admin_value open_basedir /usr/share/squirrelmail:/etc/squirrelmail:/var/lib/squirrelmail:/etc/hostname:/etc/mailname
php_flag register_globals off
</IfModule>
<IfModule mod_dir.c>
DirectoryIndex index.php
</IfModule>

# access to configtest is limited by default to prevent information leak
<Files configtest.php>
order deny,allow
deny from all
allow from 127.0.0.1
</Files>
</Directory>
[...]

Création d’un dossier temporaire :

mkdir /var/lib/squirrelmail/tmp

… et on change le propriétaire :

chown www-data /var/lib/squirrelmail/tmp

On redémarre Apache :

/etc/init.d/apache2 reload

On peux accéder au webmail via :

  • http://192.168.0.100/squirrelmail
  • http://www.example.com/squirrelmail

Avec ISPConfig on pourra y accéder via :

  • http://server1.example.com:8080/squirrelmail

Si vous préférez l’alias « /webmail » il faut simplement ouvrir /etc/apache2/conf.d/squirrelmail.conf…

nano /etc/apache2/conf.d/squirrelmail.conf

… et ajouter : Alias /webmail /usr/share/squirrelmail

Alias /squirrelmail /usr/share/squirrelmail
Alias /webmail /usr/share/squirrelmail
[...]

On redémarre Apache

/etc/init.d/apache2 reload

Et on peux tester les liens :

  • http://192.168.0.100/webmail
  • http://www.example.com/webmail
  • http://server1.example.com:8080/webmail (après l’installation d’ISPConfig)

16/ Installation ISPConfig 3

Pour installer la dernière version d’ISPConfig 3:

cd /tmp
wget http://www.ispconfig.org/downloads/ISPConfig-3-stable.tar.gz
tar xfz ISPConfig-3-stable.tar.gz
cd ispconfig3_install/install/

La prochaine étape :

php -q install.php

A partir de là, l’installation d’ISPConfig 3 est lancé. Tout va se configuer tout seul (Postfix, Dovecot, etc.)

root@server1:/tmp/ispconfig3_install/install# php -q install.php
PHP Deprecated: Comments starting with '#' are deprecated in /etc/php5/cli/conf.d/ming.ini on line 1 in Unknown on line 0
--------------------------------------------------------------------------------
_____ ___________ _____ __ _ ____
|_ _/ ___| ___ \ / __ \ / _(_) /__ \
| | \ `--.| |_/ / | / \/ ___ _ __ | |_ _ __ _ _/ /
| | `--. \ __/ | | / _ \| '_ \| _| |/ _` | |_ |
_| |_/\__/ / | | \__/\ (_) | | | | | | | (_| | ___\ \
\___/\____/\_| \____/\___/|_| |_|_| |_|\__, | \____/
__/ |
|___/
--------------------------------------------------------------------------------
>> Initial configuration

Operating System: Debian or compatible, unknown version.

Following will be a few questions for primary configuration so be careful.
Default values are in [brackets] and can be accepted with .
Tap in "quit" (without the quotes) to stop the installer.
Select language (en,de) [en]: <-- ENTREE

Installation mode (standard,expert) [standard]: <-- ENTREE

Full qualified hostname (FQDN) of the server, eg server1.domain.tld [server1.example.com]: <-- ENTREE

MySQL server hostname [localhost]: <-- ENTREE

MySQL root username [root]: <-- ENTREE

MySQL root password []: <-- Le mot de passe root SQL

MySQL database to create [dbispconfig]: <-- ENTREE

MySQL charset [utf8]: <-- ENTREE

Generating a 4096 bit RSA private key
.............................................................++
.........................................................................................................................++
writing new private key to 'smtpd.key'
-----
You are about to be asked to enter information that will be incorporated
into your certificate request.
What you are about to enter is what is called a Distinguished Name or a DN.
There are quite a few fields but you can leave some blank
For some fields there will be a default value,
If you enter '.', the field will be left blank.
-----
Country Name (2 letter code) [AU]: <-- ENTREE
State or Province Name (full name) [Some-State]: <-- ENTREE
Locality Name (eg, city) []: <-- ENTREE
Organization Name (eg, company) [Internet Widgits Pty Ltd]: <-- ENTREE
Organizational Unit Name (eg, section) []: <-- ENTREE
Common Name (e.g. server FQDN or YOUR name) []: <-- ENTREE
Email Address []: <-- ENTREE
Configuring Jailkit
Configuring Dovecot
Configuring Spamassassin
Configuring Amavisd
Configuring Getmail
Configuring Pureftpd
Configuring BIND
Configuring Apache
Configuring Vlogger
Configuring Apps vhost
Configuring Bastille Firewall
Configuring Fail2ban
Installing ISPConfig
ISPConfig Port [8080]: <-- ENTREE

Do you want a secure (SSL) connection to the ISPConfig web interface (y,n) [y]: <-- ENTREE

Generating RSA private key, 4096 bit long modulus
.................................................................................................++
........++
e is 65537 (0x10001)
You are about to be asked to enter information that will be incorporated
into your certificate request.
What you are about to enter is what is called a Distinguished Name or a DN.
There are quite a few fields but you can leave some blank
For some fields there will be a default value,
If you enter '.', the field will be left blank.
-----
Country Name (2 letter code) [AU]: <-- ENTREE
State or Province Name (full name) [Some-State]: <-- ENTREE
Locality Name (eg, city) []: <-- ENTREE
Organization Name (eg, company) [Internet Widgits Pty Ltd]: <-- ENTREE
Organizational Unit Name (eg, section) []: <-- ENTREE
Common Name (e.g. server FQDN or YOUR name) []: <-- ENTREE
Email Address []: <-- ENTREE

Please enter the following 'extra' attributes
to be sent with your certificate request
A challenge password []: <-- ENTREE
An optional company name []: <-- ENTREE
writing RSA key
Configuring DBServer
Installing ISPConfig crontab
no crontab for root
no crontab for getmail
Restarting services ...
Stopping MySQL database server: mysqld.
Starting MySQL database server: mysqld ..
Checking for tables which need an upgrade, are corrupt or were
not closed cleanly..
Stopping Postfix Mail Transport Agent: postfix.
Starting Postfix Mail Transport Agent: postfix.
Stopping amavisd: amavisd-new.
Starting amavisd: amavisd-new.
Stopping ClamAV daemon: clamd.
Starting ClamAV daemon: clamd .
Restarting IMAP/POP3 mail server: dovecot.
[Tue May 07 02:36:22 2013] [warn] NameVirtualHost *:443 has no VirtualHosts
[Tue May 07 02:36:22 2013] [warn] NameVirtualHost *:80 has no VirtualHosts
[Tue May 07 02:36:23 2013] [warn] NameVirtualHost *:443 has no VirtualHosts
[Tue May 07 02:36:23 2013] [warn] NameVirtualHost *:80 has no VirtualHosts
Restarting web server: apache2 ... waiting .
Restarting ftp server: Running: /usr/sbin/pure-ftpd-mysql-virtualchroot -l mysql:/etc/pure-ftpd/db/mysql.conf -l pam -H -O clf:/var/log/pure-ftpd/transfer.log -Y 1 -D -u 1000 -A -E -b -8 UTF-8 -B
Installation completed.
root@server1:/tmp/ispconfig3_install/install#

L’installateur a configurer tous les services. Aucune configuration est nécessaire.

17/ Webmail

Vous avez créer vos utilisateurs mail et impossible de se connecter ? J’ai trouver le pourquoi et je vous dévoile la solution !

Ouvrez /etc/postfix/main.cf

nano /etc/postfix/main.cf

Vous modifiez pour avoir :

myhostname = Votre nom de domaine
myorigin = /etc/mailname
mydestination = localhost, localhost.localdomain

On redémarre Postfix :

/etc/init.d/postfix restart

18/ Liens

Debian : http://www.debian.org/
ISPConfig : http://www.ispconfig.org/

Laisser un commentaire !