Вы находитесь на странице: 1из 2

Installation Postfix

https://wiki.debian.org/Postfix#Installing_and_Configuring_Postfix_on_Debian
#

apt-get install postfix // installation de postfix par dpt

#
tail /var/log/mail.log // Vrifier si postfix fonctionne en regardant ces logs
#
postconf -e "myorigin = example.com" //ajouter votre domaine
#
postfix reload // recharger postfix
le rsultat devrait tre ceci :
Trying 127.0.0.1...
Connected to localhost.localdomain.
Escape character is '^]'.
220 server1.example.com ESMTP Postfix (Debian/GNU)

Test de l'envoi de mails en s'envoyant un mail soi-mme:


mail from:<you@youremail.com>
rcpt to:<user@example.com>
data
To: user@example.com
From: you@youremail.com
Subject: Hey my first email
This is my first email on debian postfix after installing configuring it.
It was easy.
Vrification des mails grce aux logs:
#

cat /var/log/mail.log

Il est galement possible de visualiser les ports grce la commande suivante:

Test:

Vrification du service Squid3

Application: Squid3
Commande

# nmap localhost

Rsultat
Attendu:

Le port sur lequel est configur votre serveur postfix sera visible avec son
statut et le nom du service
rsultat la ligne suivante devrait apparatre 25/tcp open smtp et
110/tcp open pop3

Rsultat:

Starting Nmap 6.47 ( http://nmap.org ) at 2016-02-22 08:31 CET


Nmap scan report for localhost (127.0.0.1)
Host is up (0.0000090s latency).
Not shown: 987 closed ports
PORT
STATE SERVICE
21/tcp
open ftp
22/tcp
open ssh
25/tcp
open smtp
53/tcp
open domain
80/tcp
open http
110/tcp
open pop3
111/tcp
open rpcbind
143/tcp
open imap
389/tcp
open ldap
2049/tcp open nfs
3306/tcp open mysql
20000/tcp open dnp

Вам также может понравиться