2. Agenda
— Memahami apa itu Mail Server
— Memahami peranan DNS dalam email
— Mail Software
— Istilah di mail server
— Memahami protokol E-mail
3. Memahami Mail Server
— Perangkat yang digunakan untuk menangani
kirim-terima email
— Terdapat sebuah software mail server
didalamnya
— Dapat dibangun untuk berbagai macam sistem
operasi
— Produk mail server yang sering digunakan
— Postfix, sendmail (Linux)
— Exchange (Windows)
4. Mail Server: User
Pengirim Mail Mail Penerima
• push server server • pull
pengirim penerima
• push • push
5. Mail Server: Sistem
MUA MTA MTA MUA
• Mail User (Pengirim) (Penerima) • Mail User
Agent • Mail Transfer • Mail Transfer Agent
Agent Agent
6. Istilah Mail Server
— MTA (Mail Transfer Agent)
— Menerima email dari pengirim
dan mengirim ke MTA yang lain
untuk disimpan di server
— Postfix, Exchange, sendmail
— MUA (Mail User Agent)
— E-mail client software
— Memformat pesan dan
mempersiapkan untuk dikirim ke Email Server Email Server
sa i l
(MTA) (MTA)
ge
es a
MTA
M Em
— Outlook, Thunderbird, KMail ` `
email Client
— MDA (Mail Delivery Agent)
email Client
Sender Receiver
(MUA) (MUA)
— Bagian dari MTA penerima untuk
membantu menyampaikan email
ke MUA penerima
— Exchange, imap-2001
7. Istilah Mail Server
— Masquerading
— Proses transformasi dari IP lokal ke IP publik dengan Fully Qualified
Domain Name (FQDN)
— Hostname yang sebenarnya ditimpa dengan nama domain asli harus
melewati MX Record (atau biasa ditetapkan sebagai alias domain)
— mail.ims.web.id à fauzi@mail.ims.web.id menjadi
fauzi@ims.web.id
— Relaying
— Proses antara pengiriman email ke MTA sebelum email dikirimkan ke
tujuan akhir
— Jika hanya ada satu MTA tersedia, relaying harusnya tidak
diperbolehkan dari internet, karena para spammer bisa
menggunakannya untuk mengirim email spam
— MX Record
Salah satu query DNS yang dibutuhkan mail server sebagai syarat
untuk menerima email yang dikirim dan diantarkan ke MTA
penerima
8. Peranan DNS dalam email
— Pengiriman email membutuhkan konfigurasi DNS
— Sebuah domain, katakanlah: ahmadfauzi.web.id, membutuhkan
dua alamat IP:
— Alamat IP pertama dapat digunakan untuk website
— Alamat IP kedua digunakan untuk email
— Untuk menghubungkan nama domain dengan alamat IP di
email server, anda membutuhkan mail exchange (MX) record
ahmadfauzi.web.id. IN MX 10 mail.ahmadfauzi.web.id.
— 10 mengacu kepada prioritas mail server jika banyak email server
digunakan
— IN menunjukan nama domain
— MX menandakan Mail Exchange (MX) record
10. Mail Software
MUA MTA MDA
• Outlook • Sendmail • Binmail
Express • Exchange • Deliver
• Mozilla • Postfix • Maildrop
Thunderbird • Zimbra • Dovecot
• Mail.app
• Kmail
• Evolution
11. Protokol E-Mail
— SMTP (Simple Mail Transfer Protocol)
— Protokol Text-based digunakan untuk mengirim email
— Tidak menyangkut keprihatinan apapun tentang keamanan
— Digunakan oleh keduanya (client dan server)
— POP3 (Post Office Protocol)
— Tidak terlalu rumit dari IMAP4
— Untuk menerima email
— Email client menggunakannya untuk membaca, mendaftar, dan menghapus
email
— Biasanya, semua pesan didownload ke client
— IMAP4 (Internet Mail Access Protocol)
— Lebih kompleks dari POP3
— Untuk menerima email
— E-Mail diam di server dan dapat diambil dari beberapa komputer yang
memiliki email klien yang support dengan IMAP
— Anda dapat membuat folder di server untuk menyimpan email
12. Memahami SMTP
— Memiliki standar port 25
— Memiliki secure port 465
— Perintah yang diproses oleh server SMTP
Command Purpose
HELO Identifies the domain sending the message
DATA Indicates the body of the message
VRFY Verifies the e-mail user
QUIT Ends the SMTP session
13. Memahami SMTP
Info SMTP headers
Header Description
MAIL FROM: Identifies who is sending the message (required)
RCPT TO: Identifies the recipient of the message (required)
RECEIVED: Identifies the e-mail server that processed the message
DATE: Indicates the date of the e-mail
FROM: Shows the e-mail address as it is typically displayed in an e-mail client
SUBJECT: Shows the subject of the e-mail message
TO: Shows the recipient as it is typically displayed in an e-mail client
CC: Sends copies of the message to a list of e-mail addresses
BCC: Sends copies of the message to a list of e-mail addresses but does not display the
e-mail addresses
14. Memahami SMTP
Sample session (commands and headers)
HELO WKS1 ß Sending the name of the host
250 ims.web.id Hello [127.0.0.1]
MAIL FROM: fauzi@ims.web.id
250 2.1.0 fauzi@ims.web.id....Sender OK Carriage Return
Response Code RCPT TO: fauzi@inspiramediasolusi.co.id Line feed
250 2.1.5 fauzi@inspiramediasolusi.co.id
DATA
354 Start mail input; end with <CRLF>.<CRLF>
Hello fauzi...
.
QUIT
15. Memahami POP3
— Memiliki standar port 110
— Memiliki secure port 995
— Tidak terlalu rumit dari IMAP4
— Langkah pertama adalah login dengan nama
pengguna dan katasandi
— Daftar, baca, unduh dan hapus email
16. Perintah POP3
Command Description
USER username Connects to POP3 server based on user name
PASS password Enters the password for the user, as in PASS: samplepass
LIST Displays the message number followed by the number of
characters in the message
UIDL Displays the unique ID for each message
RETR n Replaces the n with a message number to retrieve that message
TOP n lines Instead of retrieving the whole message, retrieves the number of
lines designated by the lines parameter for message number n
DELE n Deletes message number n from the server
QUIT Ends the session
17. Memahami IMAP4
— Memiliki standar port 143
— Memiliki secure port 993
— Email tetap berada di server
— Membutuhkan lebih banyak kuota harddisk di
server
— Untuk melacak status pesan, mengunakan flags
(contohnya yahoo atau gmail)
— Recent
— Seen
— Answered
— Flagged
— Deleted
— Draft
18. Perintah IMAP4
Command Description
LOGIN username Log on to the server with your user name and password, which
password are unencrypted.
SELECT mailbox Select a mailbox before you perform mail tasks. The default
mailbox is called inbox. The response gives a summary of
mailbox information.
FETCH message(s) Retrieve messages. The message(s) parameter gives the message
item(s) number. The item(s) parameter determines what part of the
message is fetched—that is, individual header items or the
body of the text.
STORE message(s) flags Change the flags associated with a message. Typically, this
command is used to mark messages to be deleted, undeleted, or
identified as unread.
LOGOUT End the IMAP4 session.
19. Konfigurasi E-Mail Client
— Konfigurasi yang paling minimal dibutuhkan untuk
konfigurasi mail client adalah:
— Alamat IP/hostname, port SMTP server
— Alamat e-mail
— Nama pengguna
— Katasandi
— Alamat IP/hostname, port POP3 atau IMAP4 server
20. Kesimpulan
— Tersedia banyak software mail server
— Microsoft Exchange, postfix dan sendmail
merupakan produk mail server yang paling populer
digunakan
— DNS merupakan peran utama dalam mail server
— Tiga protokol utama yang terlibat dalam e-mail
— SMTP POP3, dan IMAP4
,