Download as pdf or txt
Download as pdf or txt
You are on page 1of 3

2/26/2014

Tng quan v dch v email


Dch v email s dng phn mm
m ngun m

Thnh phn ca h thng email


Email: thng bo c trao i gia cc thnh
phn.
Mail User Agent: giao din cho php NSD c
th truy cp vo h thng email gi mail v
nhn mail
Mail Transfer Agent: phn mm cho php
chuyn tip cc email
Mail Delivery Agent: phn mm chuyn email
n cho NSD

Gi v nhn cc thng bo
C th cha cc d liu a phng tin
c s dng rng ri trn th gii
Khng c xc thc
C th c tch hp vi c ch m ha, h
tng kha cng khai, .

C ch ca h thng email
Ngi s dng

Ngi s dng

huantt11@gmail.com
SMTP

B m th gi i

POP/IMAPWeb Mail

Hp th NSD

B m th gi i

Web Server

Cc b danh

Hp th NSD

Web Server

Cc b danh
SMTP

MTA
MDA

POP/IMAPWeb Mail

SMTP

Internet

Cc bn ghi MX

Cc bn ghi MX

MTA
MDA

DNS

nh dng thng bo

trunghq@ubuntu:~$ telnet 127.0.0.1 25


Trying 127.0.0.1...
Connected to 127.0.0.1.
Escape character is '^]'.
220 ubuntu.localdomain ESMTP Postfix (Ubuntu)
helo trunghq.com
250 ubuntu.localdomain
MAIL FROM:trunghq@ubuntu.localdomain
250 2.1.0 Ok
RCPT TO:haquoctrung@gmail.com
250 2.1.5 Ok
DATA
354 End data with <CR><LF>.<CR><LF>
Subject:Thu gui thu tu telnet
Day la mot buc thu gui tu telnet
.
250 2.0.0 Ok: queued as 913E010089F
quit
221 2.0.0 Bye
Connection closed by foreign host.
trunghq@ubuntu:~$ tail -3 /var/log/mail.log
May 18 07:34:56 ubuntu postfix/smtpd[3125]: disconnect from localhost[127.0.0.1]
May 18 07:35:02 ubuntu postfix/smtp[3171]: 913E010089F: to=<haquoctrung@gmail.com>, relay=gmail-smtp.l.google.com[209.85.222.80]:25, delay=143, delays=126/0.02/13/3.5, dsn=2.0.0, status=sent (250 2.0.0 OK 1274193114
12si8865853pzk.15)

SMTP

2/26/2014

SMTP

Hot ng ca mt mail server

Cu hnh c bn ca postfix

Postfix Mailbox Host in the DMZ

mail.cf
Th mc spool mail
Smtd daemon
Myorigin
mydomain
mydestination

Postfix Host inside the Intranet (on


HSZ)

Postfix as a Proxy Mailhost in the DMZ

2/26/2014

Postfix as a Multi Domain Mail-Host


(for ISPs)

You might also like