You are on page 1of 20

Ludovic MARCHAL Formation:TSGERI Session:2015/2016

Technicien Supérieur Gestionnaire


de Ressources Informatiques
et Réseaux

Service de messagerie
postfix/Dovecot

Ce(tte) œuvre est mise à disposition selon les termes de la Licence


Creative Commons Attribution - Pas d’Utilisation Commerciale 4.0
International.

contact@ordinatous.com
Table des matières
1. 1.Présentation............................................................................................................................................1
2. 2.Installation..............................................................................................................................................1
Il est possible de relancer cette partie de l'installation avec le gestionnaire de paquets dpkg.......................2
Sudo dpkg-reconfigure postfix......................................................................................................................2
2.1.Monitoring..........................................................................................................................................3
3. 3.Configuration.........................................................................................................................................3
3.1.Reseau................................................................................................................................................3
3.2.FQDN.................................................................................................................................................3
3.3.Hostname............................................................................................................................................4
3.4.DNS....................................................................................................................................................4
a)Relancer le service............................................................................................................................5
3.5.Test.....................................................................................................................................................5
3.6.Installation dovecot............................................................................................................................6
a)Test...................................................................................................................................................7
b)Test...................................................................................................................................................8
c)Connexion active..............................................................................................................................9
d)Anti-spam/anti-virus.......................................................................................................................10
e)Test..................................................................................................................................................11
amavis............................................................................................................................................11
Spamassassin..................................................................................................................................11
Status du service spamassassin......................................................................................................12
f)Client « lourd »...............................................................................................................................12
Configuration du compte...............................................................................................................13
g)Squirrelmail....................................................................................................................................15
Ludovic MARCHAL Formation : TSGERI Session 2015/2016

Installation Serveur Mail


Postfix, Amavisd, Mysql,
Spamassassin, Dspam,
Dovecot

1. Présentation
A priori Postfix n’a d’autre prétention que de se proposer
comme alternative à sendmail.
Postfix est open source, il est disponible sur le site ,
est le cadeau d'un ingénieur de chez Google :
Wietse Zweitze Venema
Contact information is given at the end of this document.
Click here if you need to know how I pronounce my name.
Current life
I am a Google software engineer, working at the New York
office. After 18 years with IBM, including many of the best
years in my career, I decided that it was time for a change.
Many people know my name from the Postfix open source mail
server, and from the Coroner's Toolkit, written with Dan
Farmer, primarily for the post-mortem analysis of computer
break-ins. I wrote these at the IBM Thomas J. Watson
Research Center, in the USA, where I worked until 2015.

Issu de son site.

2. Contexte du document

2.1. Postfix sur un réseau local


Ce paragraphe décrit un environnement comprenant un serveur de
courrier et plusieurs machines recevant et envoyant du courrier. Toutes
les machines sont configurées pour envoyer le courrier en utilisant des
adresses sous la forme "username@nom.de.domaine" et en recevoir à
destination d'adresses sous la forme
"username@hostname.nom.domaine". Le serveur principal reçoit
également du courrier à destination de "username@nom.de.domaine".
Nous appellerons cette machine "mail ".

contact@ordinatous.com 1/22
Ludovic MARCHAL Formation : TSGERI Session 2015/2016

2.2. Principe
Schéma de l’envoi d’un courriel :

Le MUA : mail user agent est l’application qui émet le mail.


Le MUA envoie le mail sur le protocole SMTP : Simple Mail
Transfert Protocole .
Le mail est envoyé à un MTA : Mail Transfert Agent.
Un ou plusieurs MTA peuvent se relayer pour le transfert du
message.

3. Installation
Procédure habituelle sous unix-like, Debian et dérivées :

# apt-get update && apt-get upgrade -y


# apt-cache search postfix
# apt-get install postfix

Comme d’habitude, l'installation se passe sans surprise et est très


rapide, nous voici devant l’outil de configuration des paquets,
simplement faire OK, ce n’est qu’un message à titre informatif.

contact@ordinatous.com 2/22
Ludovic MARCHAL Formation : TSGERI Session 2015/2016

Sélectionner « Site internet »

Définition du nom d’utilisateur, dans le doute j'ai conservé celui de


proposer : postfix.
(Ce n’est pas forcément la meilleur idée…)

C’est tout pour le moment.

Il est possible de relancer cette partie de l'installation avec le


gestionnaire de paquets dpkg
Sudo dpkg-reconfigure postfix

contact@ordinatous.com 3/22
Ludovic MARCHAL Formation : TSGERI Session 2015/2016

4.Configuration

4.1. Reseau
Ensuite penser à fixer l'IP de la machine en modifiant le fichier :
/etc/network/interface

#carte réseau principale


auto eth0
iface eth0 inet static
address 172.25.3.34
netmask 255.255.255.0
gateway 172.25.3.254
dns-nameserver 127.0.0.1
network 172.25.3.0
broadcast 172.25.3.255
dns-search info-msj.info

4.2. FQDN
Modifier le fichier :
# vim /etc/hosts

127.0.0.1 localhost
127.0.1.1 mail
172.25.3.34 mail.grp3.info-msj.net mail

# The following lines are desirable for IPv6


capable hosts
::1 localhost ip6-localhost ip6-loopback
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters

4.3. Hostname
Bien vérifier le nom de la machine dans /etc/host, le nom qui avait été
attribué à l'installation « postfix » ne correspond pas on le modifie donc
en « mail »
# vim /etc/hostname

mail

contact@ordinatous.com 4/22
Ludovic MARCHAL Formation : TSGERI Session 2015/2016

4.4. DNS
Vérifier et/ou modifier alors les enregistrements DNS, dans
notre serveur DNS.
Enregistrement MX
cat /etc/bind/db.grp3.info-msj.net

$ORIGIN grp3.info-msj.net.
$TTL 1600
@ IN SOA ns1.grp3.info-msj.net. @root.grp3.info-msj.net. (
2013112801 ;Serial
604800 ;Refresh
86400 ;Retry
2419200 ;Expire
604800 ); Negative Cache TTL

@ IN NS srv-debian.grp3.info-
msj.info-msj.net.
@ IN MX 10
mail.grp3.info-msj.net.
Srv-debian IN A 172.25.3.107
mail IN A 172.25.3.34
www IN A 172.25.3.107
rtfm IN A 172.25.3.113
www3 IN A 172.25.3.123
webmail IN CNAME mail

On vérifie également les enregistrement inverse


cat /etc/bind/db.grp3.info-msj.net.inv

$ORIGIN 3.25.172.in-addr.arpa.
$TTL 1600
@ IN SOA ns1.grp3.info-msj.net. @root.grp3.info-
msj.net. (
2013112801 ;Serial
604800 ;Refresh
86400 ;Retry
2419200 ;Expire
604800 ) ;Negative Cache TTL
@ IN NS srv-debian.grp3.info-msj.net.

100 IN PTR www.grp3.info-msj.net.


113 IN PTR rtfm.grp3.info-msj.net.
123 IN PTR www3.grp3.info-msj.net.
107 IN PTR srv-debian.grp3.info-msj.net.
34 IN PTR mail.grp3.info-msj.net.

contact@ordinatous.com 5/22
Ludovic MARCHAL Formation : TSGERI Session 2015/2016

a) Relancer le service
Aprés avoir modifier les fichiers de configuration il faut
penser à « recharger » puis « relancer » et finalement vérifier
le « status » du service.

root@mail:/home/ordinatous# /etc/init.d/postfix reload


[ ok ] Reloading postfix configuration (via systemctl):
postfix.service.
root@mail:/home/ordinatous# /etc/init.d/postfix restart
[ ok ] Restarting postfix (via systemctl): postfix.service.
root@mail:/home/ordinatous# /etc/init.d/postfix status
● postfix.service - LSB: Postfix Mail Transport Agent
Loaded: loaded (/etc/init.d/postfix)
Drop-In: /run/systemd/generator/postfix.service.d
└─50-postfix-$mail-transport-agent.conf
Active: active (running) since ven. 2016-01-08 09:57:34 CET;
7s ago
Process: 619 ExecStop=/etc/init.d/postfix stop (code=exited,
status=0/SUCCESS)
Process: 579 ExecReload=/etc/init.d/postfix reload
(code=exited, status=0/SUCCESS)
Process: 641 ExecStart=/etc/init.d/postfix start (code=exited,
status=0/SUCCESS)
CGroup: /system.slice/postfix.service
├─748 /usr/lib/postfix/master
├─755 pickup -l -t unix -u -c
└─756 qmgr -l -t unix -u

janv. 08 09:57:34 mail postfix[641]: Starting Postfix Mail


Transport Agent: postfix.
janv. 08 09:57:34 mail postfix/master[748]: daemon started --
version 2.11.3, configuration /etc/postfix

4.5. Test

Depuis la machine elle-même on se connecte en telnet

root@mail:/# telnet localhost 25


Trying ::1...
Connected to localhost.
Escape character is '^]'.
220 mail.grp3.info-msj.net ESMTP Postfix (Debian/GNU)
helo mail.grp3.info-msj.net
250 mail.grp3.info-msj.net
mail from:ordinatous@info-msj.net
250 2.1.0 Ok
rcpt to:ordinatous@info-msj.net
250 2.1.5 Ok
data
354 End data with <CR><LF>.<CR><LF>
blableblibloblu
.
250 2.0.0 Ok: queued as 308D8727
quit
221 2.0.0 Bye
Connection closed by foreign host.

contact@ordinatous.com 6/22
Ludovic MARCHAL Formation : TSGERI Session 2015/2016

a) Code retour SMTP


Comme la plupart des systèmes d’échange un code est émis en
fonction de l’état de transmission :
• code 2 : la demande a été exécutée sans erreur ;

• code 3 : la demande est en cours d'exécution ;

• code 4 : indique une erreur temporaire ;

• code 5 : la demande n’est pas valide et n'a pas pu être


traitée.
Messages les plus courants :

Code Signification
220 Premier code envoyé par le serveur lorsque la connexion s'est effectuée avec succès.
250 Confirmation de commande acceptée.
Réponse à la commande DATA. Le serveur attend les données du corps du message.
354 Le client indique la fin du message par un point seul sur une ligne :
<CR><LF>.<CR><LF>
Échec temporaire au niveau de la connexion. Il se peut que le serveur soit surchargé,
421 qu'il limite le nombre de connexions en provenance d'une même adresse IP ou que le
service soit indisponible.
452 Échec temporaire : nombre de destinataires maximum atteint.
Échec permanent. La boîte aux lettres n'existe pas ou l'adresse du destinataire est
550
invalide.
Échec permanent au niveau de la connexion : utilisé à la place du code 220 pour les
554
hôtes sur liste noire.

b) POP IMAP
Le POP permet la récupération des messages en local sur la
machine cliente.
Les messages seront alors absent du serveur distant, ceci peu
présenter un avantage ou non suivant les circonstances, il peut
être nécessaire de disposer des messages en local dans le cas ou
l’utilisateur se retrouverait sans connexion.

IMAP permet de travailler sur le serveur distant.

contact@ordinatous.com 7/22
Ludovic MARCHAL Formation : TSGERI Session 2015/2016

4.6. Installation dovecot


# apt-get install dovecot-imapd dovecot-pop3d

Ce qui va nous installer un grand nombre de fichiers.


Par contre aucune nouvelle des certificats de validité ni
de leur durée de vie.
Modifier ce fichier :

/etc/dovecot/local.conf

Et ajouter :

protocols =pop3 pop3s imap imaps


login_greeting = Dovecot Serveur en service
mail_location = maildir:/home/%u/Maildir

contact@ordinatous.com 8/22
Ludovic MARCHAL Formation : TSGERI Session 2015/2016

Suite à un message d’erreur j’ai enlevé le pop3s et imaps


du fichier de configuration.
sudo service dovecot restart

root@mail:/home/ordinatous# sudo service dovecot status


● dovecot.service - Dovecot IMAP/POP3 email server
Loaded: loaded (/lib/systemd/system/dovecot.service;
enabled)
Active: active (running) since lun. 2016-01-11 10:29:36 CET;
4s ago
Main PID: 3981 (dovecot)
CGroup: /system.slice/dovecot.service
├─3981 /usr/sbin/dovecot -F
├─3982 dovecot/anvil
├─3983 dovecot/log
└─3985 dovecot/config

janv. 11 10:29:36 mail dovecot[3981]: master: Dovecot v2.2.13


starting up for pop3, imap (core dumps disabled)

a) Test
Test sur le protocole imap
telnet localhost imap

Trying ::1...
Connected to localhost.
Escape character is '^]'.
* OK [CAPABILITY IMAP4rev1 LITERAL+ SASL-IR LOGIN-REFERRALS ID
ENABLE IDLE AUTH=PLAIN] Dovecot Serveur en service

On se déconnecte de cette manière


e logout

* BYE Logging out


e OK Logout completed.
Connection closed by foreign host.

Test sur le protocole pop

Trying ::1...
Connected to localhost.
Escape character is '^]'.
+OK Dovecot Serveur en service

Un grand mystère je n’ai pas réussi à me déconnecter de moi


même… comme beaucoup

-ERR Disconnected for inactivity.


Connection closed by foreign host.

contact@ordinatous.com 9/22
Ludovic MARCHAL Formation : TSGERI Session 2015/2016

b) Test

telnet localhost 25
Trying ::1...
Connected to localhost.
Escape character is '^]'.
220 mail.grp3.info-msj.net ESMTP Postfix (Debian/GNU)
helo srv-debian.grp3.info-msj.net
250 mail.grp3.info-msj.net
mail from:ordinatous@grp3.info-msj.net
250 2.1.0 Ok
rcpt to:ordinatous@grp3.info-msj.net
250 2.1.5 Ok
data
354 End data with <CR><LF>.<CR><LF>
blableblibloblu
.
250 2.0.0 Ok: queued as 537333F
quit
221 2.0.0 Bye
Connection closed by foreign host.

J’ai bien reçu mon mail :

cat
/home/ordinatous/Maildir/new/1452505828.V801I2088bM395967.mail
Return-Path: <ordinatous@grp3.info-msj.net>
X-Original-To: ordinatous@grp3.info-msj.net
Delivered-To: ordinatous@grp3.info-msj.net
Received: from srv-debian.grp3.info-msj.net (localhost
[IPv6:::1])
by mail.grp3.info-msj.net (Postfix) with SMTP id 537333F
for <ordinatous@grp3.info-msj.net>; Mon, 11 Jan 2016
10:47:58 +0100 (CET)
Message-Id: <20160111094959.537333F@mail.grp3.info-msj.net>
Date: Mon, 11 Jan 2016 10:47:58 +0100 (CET)
From: ordinatous@grp3.info-msj.net

blableblibloblu

Émetteur:X-Original-To ordinatous@grp3.info-msj.net
Recepteur:Delivred-To ordinatous@grp3.grp3.info-msj.net
Depuis la machine : from srv-debian.grp3.info-msj.net
Ainsi que le nom du serveur : mail.grp3.info-msj.net indiquant
de la résolution de nom s'effectue sans problème, la version du
serveur de mail : postfix.
De plus on voit clairement la date et l'heure, donc tout
fonctionne correctement.

contact@ordinatous.com 10/22
Ludovic MARCHAL Formation : TSGERI Session 2015/2016

c) Connexion active
Vérifions les connexions actives avec :
netstat -anp

netstat -anp
Connexions Internet actives (serveurs et établies)
Proto Recv-Q Send-Q Adresse locale Adresse distante Etat
PID/Program name
tcp 0 0 0.0.0.0:34084 0.0.0.0:* LISTEN
402/rpc.statd
tcp 0 0 0.0.0.0:110 0.0.0.0:* LISTEN
3981/dovecot
tcp 0 0 0.0.0.0:143 0.0.0.0:* LISTEN
3981/dovecot
tcp 0 0 0.0.0.0:111 0.0.0.0:* LISTEN
393/rpcbind
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN
417/sshd
tcp 0 0 0.0.0.0:25 0.0.0.0:* LISTEN
847/master
tcp 0 0 172.25.3.34:22 172.25.3.31:52747 ESTABLISHED
579/sshd: ordinatou
tcp 0 0 172.25.3.34:22 172.25.3.21:60067 ESTABLISHED
639/sshd: ordinatou
tcp 0 0 172.25.3.34:22 172.25.3.21:60447 ESTABLISHED
4022/sshd: ordinato
tcp6 0 0 :::110 :::* LISTEN
3981/dovecot
tcp6 0 0 :::143 :::* LISTEN
3981/dovecot
tcp6 0 0 :::35951 :::* LISTEN
402/rpc.statd
tcp6 0 0 :::111 :::* LISTEN
393/rpcbind
tcp6 0 0 :::22 :::* LISTEN
417/sshd
tcp6 0 0 :::25 :::* LISTEN
847/master
tcp6 0 0 ::1:45839 ::1:25 ESTABLISHED
4037/telnet
tcp6 0 0 ::1:25 ::1:45839 ESTABLISHED
4038/smtpd
udp 0 0 0.0.0.0:992 0.0.0.0:*
393/rpcbind
udp 0 0 127.0.0.1:1002 0.0.0.0:*
402/rpc.statd
udp 0 0 0.0.0.0:111 0.0.0.0:*
393/rpcbind
udp 0 0 0.0.0.0:52015 0.0.0.0:*
402/rpc.statd
udp6 0 0 :::992 :::*
393/rpcbind
udp6 0 0 :::48123 :::*
402/rpc.statd
udp6 0 0 :::111 :::*
393/rpcbind

Mon serveur SSH est lancé en écoute sur le port 22 et a 3


connections.
Telnet est en écoute sur le port 25 également et on voit
qu’il y a une connexion active entre telnet et smtp.
Dovecot est en écoute sur les ports 110 et 143

contact@ordinatous.com 11/22
Ludovic MARCHAL Formation : TSGERI Session 2015/2016

d) Anti-spam/anti-virus
# apt-get install amavisd-new spamassassin clamav-daemon

Suivi d'un message d'erreur :

Des erreurs ont été rencontrées pendant l'exécution :


amavisd-new

Je vérifie le statut du service, ce qui me renseignera sur la


configuration à changer

systemctl status amavis.service


● amavis.service - LSB: Starts amavisd-new mailfilter
Loaded: loaded (/etc/init.d/amavis)
Active: failed (Result: exit-code) since lun. 2016-01-11
12:42:20 CET; 5min ago

janv. 11 12:42:20 mail amavis[8882]: Starting amavisd: The


value of variable $myhostname is "mail", but should have been
janv. 11 12:42:20 mail amavis[8882]: a fully qualified domain
name; perhaps uname(3) did not provide such.
janv. 11 12:42:20 mail amavis[8882]: You must explicitly assign
a FQDN of this host to variable $myhostname
janv. 11 12:42:20 mail amavis[8882]: in /etc/amavis/conf.d/05-
node_id, or fix what uname(3) provides as a host's
janv. 11 12:42:20 mail amavis[8882]: network name!
janv. 11 12:42:20 mail amavis[8882]: (failed).
janv. 11 12:42:20 mail systemd[1]: amavis.service: control
process exited, code=exited status=1
janv. 11 12:42:20 mail systemd[1]: Failed to start LSB: Starts
amavisd-new mailfilter.
janv. 11 12:42:20 mail systemd[1]: Unit amavis.service entered
failed state.

Je modifie donc le fichier :


/etc/amavis/conf.d/05-node_id
Pour indiquer le FQDN

use strict;

# $myhostname is used by amavisd-new for node identification,


and it is
# important to get it right (e.g. for ESMTP EHLO, loop
detection, and so on).

chomp($myhostname = `hostname --fqdn`);

# To manually set $myhostname, edit the following line with


the correct Fully
# Qualified Domain Name (FQDN) and remove the # at the
beginning of the line.
#
$myhostname = "mail.grp3.info-msj.net";

1; # ensure a defined return

contact@ordinatous.com 12/22
Ludovic MARCHAL Formation : TSGERI Session 2015/2016

e) Test
amavis
Contrôle du status avec systemctl.

# systemctl restart amavis.service


# systemctl status amavis.service
● amavis.service - LSB: Starts amavisd-new mailfilter
Loaded: loaded (/etc/init.d/amavis)
Active: active (running) since lun. 2016-01-11 13:01:19
CET; 1s ago
Process: 8930 ExecStart=/etc/init.d/amavis start
(code=exited, status=0/SUCCESS)
CGroup: /system.slice/amavis.service
├─8942 /usr/sbin/amavisd-new (master)
├─8943 /usr/sbin/amavisd-new (virgin child)
└─8944 /usr/sbin/amavisd-new (virgin child)

janv. 11 13:01:19 mail amavis[8942]: No decoder for .lha


janv. 11 13:01:19 mail amavis[8942]: No decoder for .lrz
janv. 11 13:01:19 mail amavis[8942]: No decoder for .lz4
janv. 11 13:01:19 mail amavis[8942]: No decoder for .lzo
janv. 11 13:01:19 mail amavis[8942]: No decoder for .rar
janv. 11 13:01:19 mail amavis[8942]: No decoder for .rpm
janv. 11 13:01:19 mail amavis[8942]: No decoder for .swf
janv. 11 13:01:19 mail amavis[8942]: No decoder for .zoo
janv. 11 13:01:19 mail amavis[8942]: Deleting db files in
/var/lib/amavis/db
janv. 11 13:01:19 mail amavis[8942]: Creating db in
/var/lib/amavis/db/; BerkeleyDB 0.54, libdb 5.3

Cela semble résolu…

Spamassassin
On modifie maintenant :
/etc/default/spamassassin
Et passons la valeur ENABLED=0 à 1

# Change to "1" to enable spamd on systems using sysvinit:


ENABLED=1

Je relance le service comme proposé dans le fichier :


systemctl enable spamassassin.service

Synchronizing state for spamassassin.service with sysvinit


using update-rc.d...
Executing /usr/sbin/update-rc.d spamassassin defaults
Executing /usr/sbin/update-rc.d spamassassin enable

contact@ordinatous.com 13/22
Ludovic MARCHAL Formation : TSGERI Session 2015/2016

Status du service spamassassin


systemctl status spamassassin.service

● spamassassin.service - Perl-based spam filter using text


analysis
Loaded: loaded (/lib/systemd/system/spamassassin.service;
enabled)
Active: active (running) since lun. 2016-01-11 13:10:31 CET;
6min ago
Main PID: 9056 (/usr/sbin/spamd)
CGroup: /system.slice/spamassassin.service
├─9056 /usr/sbin/spamd -d
--pidfile=/var/run/spamassassin.pid --create-prefs --max-
children 5 --helper-home-dir
├─9057 spamd child
└─9058 spamd child

janv. 11 13:10:30 mail spamd[9054]: logger: removing stderr


method
janv. 11 13:10:31 mail spamd[9056]: zoom: able to use 360/360
'body_0' compiled rules (100%)
janv. 11 13:10:31 mail spamd[9056]: spamd: server started on
IO::Socket::IP [127.0.0.1]:783, IO::Socket::IP [::1]:783
(running version 3.4.0)
janv. 11 13:10:31 mail spamd[9056]: spamd: server pid: 9056
janv. 11 13:10:31 mail spamd[9056]: spamd: server successfully
spawned child process, pid 9057
janv. 11 13:10:31 mail spamd[9056]: spamd: server successfully
spawned child process, pid 9058
janv. 11 13:10:31 mail spamd[9056]: prefork: child states: IS
janv. 11 13:10:31 mail spamd[9056]: prefork: child states: II

A priori pas de soucis

f) Client « lourd »
Nous allons maintenant vérifier le fonctionnement avec
Thunderbird, j'ai une version libre de Thunderbird installé
sur ma machine répondant au nom de Icedove, que je vais
donc configurer.
Ajouter et configurer un compte :

contact@ordinatous.com 14/22
Ludovic MARCHAL Formation : TSGERI Session 2015/2016

Configuration du compte
Il faut décocher gandi.net (nous ne sommes pas gandi.net),
comme nous avons une adresse mail nous pouvons :
passer cette étape et utiliser mon adresse existante

Il suffit alors de simplement renseigner les champs


correspondant.
Attention le compte mail correspond à un compte utilisateur
du système.
Ici encore nous nous retrouvons confronter à la notion
d’utilisateur virtuel.

S'agissant de thunderbird , je n'ai pas trouvé comment lui


faire reconnaître mon compte je n'ai eu que des erreurs.

contact@ordinatous.com 15/22
Ludovic MARCHAL Formation : TSGERI Session 2015/2016

Zenmap me donnera une piste.

Scanning 172.25.3.34 [1000 ports]


Discovered open port 80/tcp on 172.25.3.34
Discovered open port 143/tcp on 172.25.3.34
Discovered open port 110/tcp on 172.25.3.34
Discovered open port 111/tcp on 172.25.3.34
Discovered open port 22/tcp on 172.25.3.34
Discovered open port 25/tcp on 172.25.3.34

22/tcp open ssh OpenSSH 6.7p1 Debian 5 (protocol 2.0)


| ssh-hostkey:
| 1024 e9:70:70:58:e3:22:d0:f2:5f:e6:1b:38:81:ac:f7:02 (DSA)
| 2048 01:3d:7f:96:cb:7e:1c:47:cd:fe:27:63:b3:d2:4f:06 (RSA)
|_ 256 30:ca:45:a0:29:a5:0d:4d:84:95:15:48:94:a1:9b:8c (ECDSA)
25/tcp open smtp Postfix smtpd
|_smtp-commands: mail.grp3.info-msj.net, PIPELINING, SIZE 10240000, VRFY,
ETRN, STARTTLS, ENHANCEDSTATUSCODES, 8BITMIME, DSN,
|
143/tcp open imap Dovecot imapd
|_imap-capabilities: more LITERAL+ IDLE have ENABLE IMAP4rev1 LOGIN-
REFERRALS SASL-IR LOGINDISABLEDA0001 Pre-login listed OK

contact@ordinatous.com 16/22
Ludovic MARCHAL Formation : TSGERI Session 2015/2016

g) Squirrelmail
Squirrelmail est un client webmail, très léger donc ; on
récupère squirrelmail avec :
sudo apt-get install squirrelmail
Copier les fichiers de configuration apache de squirrelmai
dans le dossier apache2 des sites valable :
cp /etc/squirrelmail/apache.conf /etc/apache2/sites-
available/squirrelmail.conf

cd /etc/apache2/sites-available/

J’active maintenant mon « site »

a2ensite squirrelmail

Nous sommes invités à recharger nos fichiers de


configuration

service apache2 restart

Il suffira de se connecter avec l'identifiant unix du système, ce qui


pose beaucoup moins de problème (pour ma part) il une semble que c'est
un problème :
LOGIN-REFERRALS SASL-IR LOGINDISABLEDA0001 Pre-login listed
A voir donc…

Modifions :
/usr/sbin/squirrelmail-configure

contact@ordinatous.com 17/22
Ludovic MARCHAL Formation : TSGERI Session 2015/2016

Nous allons modifier la langue en sélectionnant 10, puis 1, il faudra


alors remplacer la valeur us_ENG.

L'interface web de squirrelmail étant en html il est assez


configurable, il est tout à fait possible de remplacer le CSS.

Squirrelmail dispose également d'une interface graphique de


configuration, et de super template.

Et tout fonctionne .

contact@ordinatous.com 18/22

You might also like