installation et configuration de postfix sous linux
DESCRIPTION
Plus de Tutoriels ici : https://www.facebook.com/ClubTutorialInformatiqueTRANSCRIPT
![Page 1: Installation Et Configuration de Postfix Sous Linux](https://reader031.vdocuments.mx/reader031/viewer/2022020218/557210a3497959fc0b8d7a4f/html5/thumbnails/1.jpg)
IT NISRO
CLUB TUTORIEL INFORMATIQUE
Installation et Configuration de postfix Sous Linux
Étape 1 : installation des packages 1- vérifier est ce que sendmail est demmaré si oui desinstallé le et installer le package postfix # rpm -qa | grep mail ??? # rpm -e sendmail.8.X.X.Y????? #……rpm -qa | grep postfix…………………………………………………………………………… #.......rpm -ivh postfix-2.3.3-2.i386.rpm..................................................
Étape 2 : configuration de base -Editer le fichier de configuration /etc/postfix/main.cf changer les paramètres suivants: # nano /etc/postfix/main.cf
myhostname = ns1.nassir.lan mydomain = nassir.lan muorigin = $mydomain inet_interfaces = all mydestination = $myhostname, localhost.$mydomain, localhost,formation.lan -Redémarrer le service postfix : # service postfix restart # netstat -ntlp | grep 25
Pour vérifier les paramètres ajoutés dans le fichier main.cf tapez
# postconf | grep inet
tester l’envoi !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! par l’utilitaire mutt # su - user1 ; # mutt Verifier l’envoi # mailq # tail /var/log/maillog
Étape 3 : dovecot pour utiliser pop3 et imap4
Dovecot exige l’Installation des packages suivants:
# rpm -ivh perl-DBI-1.52-1.fc6.i386.rpm
#rpm -ivh mysql-5.0.22-2.1.i386.rpm
Pou r installer dovecot :
# rpm -ivh dovecot-1.0-1.2.rc15.el5.i386.rpm
Démarrage de service dovecot
# chkconfig dovecot --level 35 on
# service dovecot start
# netstat -ntlp | grep 110
# netstat -ntlp | grep dove
Étape 4 : squirremail application « web mail »
![Page 2: Installation Et Configuration de Postfix Sous Linux](https://reader031.vdocuments.mx/reader031/viewer/2022020218/557210a3497959fc0b8d7a4f/html5/thumbnails/2.jpg)
IT NISRO
CLUB TUTORIEL INFORMATIQUE
- Pour installer squirremail il faut installer les dépendances:
- # rpm –qa | grep php php-5.1.6-5.el5
Installer le support de php pour apache/imap
- # rpm –ivh php-imap-5.1.6-5.el5.i386.rpm
- Télécharger http://www.squirrelmail.org/download
squirrelmail-1.4.20.tar.gz
- extrayez le package squirremail dans le répertoire /var/www/mail
# mkdir /var/www/mail
# cd /var/www/mail
# tar -xzvf squirrelmail-1.4.19.tar.gz
Créez un lien symbolique pour squirrelmail
# ln -s /var/www/mail/ squirrelmail-1.4.19 /var/www/mail/mail
Créez les répertoires suivants ‘ squirrelmail ‘ ‘data’ et ‘attach ‘ comme suite :
# mkdir /var/local/squirrelmail
# mkdir /var/local/squirrelmail/{data,attach}
Changer les droits
# chown -R apache.apache /var/local/squierrelmail/
# chmod 775 /var/local/squierremail/
- Configurer apache avec un hôte virtuel pour héberger le serveur web mail
######################### squirre-mail imap using postfix#########################
<VirtualHost 1.1.1.1:80>
ServerAdmin root@ mail.nassir.lan
ServerName mail.lan
DocumentRoot /var/www/mail
<Directory "/var/www/error">
AllowOverride None
Options FollowSymLinks
Order allow,deny
Allow from all
</Directory>
ErrorLog logs/ mail.nassir.lan.error.log
CustomLog logs/ mail.nassir.lan -access.log combined
</VirtualHost>
# service httpd restart
Exécuter le script conf.pl et configurer les paramètres de squirremail selon votre environnement
![Page 3: Installation Et Configuration de Postfix Sous Linux](https://reader031.vdocuments.mx/reader031/viewer/2022020218/557210a3497959fc0b8d7a4f/html5/thumbnails/3.jpg)
IT NISRO
CLUB TUTORIEL INFORMATIQUE
# cd /var/www/mail/mail/config
# ./conf.pl
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 >> 2 -------
changer les informations de domaine
Utiliser la page web pour tester la configuration
http://mail.nassir.lan/mail/src/configtest.php
http://mail.nassir.lan/mail
Étape 5 : Vérification plus le test :
Démmarage de service :
tester l’envoi par l’utilitaire mutt
![Page 4: Installation Et Configuration de Postfix Sous Linux](https://reader031.vdocuments.mx/reader031/viewer/2022020218/557210a3497959fc0b8d7a4f/html5/thumbnails/4.jpg)
IT NISRO
CLUB TUTORIEL INFORMATIQUE
En clic Sur « m » pour rediger un message a envoyé :
Après qu’on choisir la destination et subject on va rediger maintenat notre propre message a
envoyé :
![Page 5: Installation Et Configuration de Postfix Sous Linux](https://reader031.vdocuments.mx/reader031/viewer/2022020218/557210a3497959fc0b8d7a4f/html5/thumbnails/5.jpg)
IT NISRO
CLUB TUTORIEL INFORMATIQUE
Et a la fin en peut envoyé le message en cliquant sur « y » :
![Page 6: Installation Et Configuration de Postfix Sous Linux](https://reader031.vdocuments.mx/reader031/viewer/2022020218/557210a3497959fc0b8d7a4f/html5/thumbnails/6.jpg)
IT NISRO
CLUB TUTORIEL INFORMATIQUE
La page web Configure pour utiliser la messagerie avec Squirremail :