You are on page 1of 2

Simple Mail Transfer Protocol (SMTP)

+----------+ +----------+
+------+ | | | |
| User |<-->| | SMTP | |
+------+ | Client- |Commands/Replies| Server- |
+------+ | SMTP |<-------------->| SMTP | +------+
| File |<-->| | and Mail | |<-->| File |
|System| | | | | |System|
+------+ +----------+ +----------+ +------+
SMTP client SMTP server

Mengirim Email
RFC2821
telnet localhost 25

220 ArGoSoft Mail Server Freeware, Version 1.8 (1.8.8.8)


rcpt to: badi@localhost
250 Recipient "badi@localhost" OK...
data
354 Enter mail, end with "." on a line by itself
Sekarang kita nyoba kirim email
lewat telnet port 25
.
250 Message accepted for delivery. <f6qdzradhsv2xj3.101020061101@akakom-
58e19d9d
>
quit

RFC1939 dan RFC1725

POP3(Post Office Protocol)

telnet localhost 110

+OK ArGoSoft Mail Server Freeware, Version 1.8 (1.8.8.8)


user badi
+OK Password required for badi
pass badi
+OK Mailbox locked and ready
stat
+OK 1 286
list 1
+OK 1 286
retr 1
+OK 286 octets
Received: from [127.0.0.1] by akakom-58e19d9d
(ArGoSoft Mail Server Freeware, Version 1.8 (1.8.8.8)); Tue, 10 Oct 2006 10:53
:47
Message-ID: <jcccirtz2vwbuni.101020061053@akakom-58e19d9d>
Date: Tue, 10 Oct 2006 10:53:47

Sekarang kita nyoba kirim email


lewai telnet port 25

RFC 959

File Transfer Protocol


FTP MODEL
-------------
|/---------\|
|| User || --------
||Interface|<--->| User |
|\----^----/| --------
---------- | | |
|/------\| FTP Commands |/----V----\|
||Server|<---------------->| User ||
|| PI || FTP Replies || PI ||
|\--^---/| |\----^----/|
| | | | | |
-------- |/--V---\| Data |/----V----\| --------
| File |<--->|Server|<---------------->| User |<--->| File |
|System| || DTP || Connection || DTP || |System|
-------- |\------/| |\---------/| --------
---------- -------------

Server-FTP USER-FTP

DTP : data transfer process "listens"


PI : protocol interpreter

FTP COMMANDS
USER NAME (USER)
PASSWORD (PASS)
ACCOUNT (ACCT)
CHANGE WORKING DIRECTORY (CWD)
CHANGE TO PARENT DIRECTORY (CDUP)
STRUCTURE MOUNT (SMNT)
REINITIALIZE (REIN)
LOGOUT (QUIT)
DATA PORT (PORT)