Introduction to Mail Server

22
Mail Server Ahmad Fauzi [email protected]

description

Introduction to Mail Server

Transcript of Introduction to Mail Server

Page 1: Introduction to Mail Server

Mail Server Ahmad Fauzi

[email protected]

Page 2: Introduction to Mail Server

Agenda �  Memahami apa itu Mail Server

�  Memahami peranan DNS dalam email

�  Mail Software

�  Istilah di mail server

�  Memahami protokol E-mail

Page 3: Introduction to Mail Server

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)

Page 4: Introduction to Mail Server

Mail Server: User

Pengirim •  push

Mail server pengirim •  push

Mail server penerima •  push

Penerima •  pull

Page 5: Introduction to Mail Server

Mail Server: Sistem

MUA •  Mail User

Agent

MTA (Pengirim) •  Mail Transfer

Agent

MTA (Penerima) •  Mail Transfer

Agent

MUA •  Mail User

Agent

Page 6: Introduction to Mail Server

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 MTA

�  Outlook, Thunderbird, KMail

�  MDA (Mail Delivery Agent) �  Bagian dari MTA penerima untuk

membantu menyampaikan email ke MUA penerima

�  Exchange, imap-2001

` `

Email Server(MTA)

Email Server(MTA)

email ClientSender (MUA)

email Client Receiver(MUA)

Email

Messa

ge

Page 7: Introduction to Mail Server

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 à [email protected] menjadi

[email protected]

�  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

Page 8: Introduction to Mail Server

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

Page 9: Introduction to Mail Server

http://simple.wikipedia.org/wiki/E-mail

Page 10: Introduction to Mail Server

Mail Software

MUA

•  Outlook Express

• Mozilla Thunderbird

• Mail.app •  Kmail •  Evolution

MTA

•  Sendmail •  Exchange •  Postfix •  Zimbra

MDA

•  Binmail •  Deliver • Maildrop •  Dovecot

Page 11: Introduction to Mail Server

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

Page 12: Introduction to Mail Server

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

Page 13: Introduction to Mail Server

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

Page 14: Introduction to Mail Server

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: [email protected]

250 2.1.0 [email protected] OK

RCPT TO: [email protected]

250 2.1.5 [email protected]

DATA

354 Start mail input; end with <CRLF>.<CRLF>

Hello fauzi...

.

QUIT

Response Code Carriage Return

Line feed

Page 15: Introduction to Mail Server

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

Page 16: Introduction to Mail Server

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

Page 17: Introduction to Mail Server

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

Page 18: Introduction to Mail Server

Perintah IMAP4 Command Description LOGIN username

password Log on to the server with your user name and password, which

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) item(s)

Retrieve messages. The message(s) parameter gives the message 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.

Page 19: Introduction to Mail Server

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

Page 20: Introduction to Mail Server

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

Page 21: Introduction to Mail Server

Presentasi Ini http://goo.gl/YySgL

Page 22: Introduction to Mail Server

Terima Kasih Ahmad Fauzi

[email protected] 087771037569