Академический Документы
Профессиональный Документы
Культура Документы
Mail Services
SMTP
POP3
IMAP or IMAP4
Outbound Mail
Port 25 or 2525
Inbound Mail
Port 110
Port 143
What is SMTP?
IMAP or POP3?
SMTP
Material from:
http://en.wikipedia.org/wiki/Smtp
SMTP
SMTP
Client-server protocol
SMTP
Some current mail transfer agents will also use SRV records
The part of the email address to the right of the at (@) sign
SMTP
SMTP
Some servers still support port 465 for legacy secure SMTP
A server that relays all email for all destinations for all clients
connecting to port 25 is known as an open relay
Sample communications
telnet www.example.com 25
Opens a TCP connection from the sending machine to the MTA
listening on port 25 on host www.example.com.
Sample
communications
S: 220 www.example.com ESMTP Postfix
C:
S:
C:
S:
C:
S:
C:
S:
C:
C:
C:
C:
C:
C:
C:
C:
S:
C:
S:
HELO mydomain.com
250 Hello mydomain.com
MAIL FROM:<sender@mydomain.com>
250 Ok
RCPT TO:<friend@example.com>
250 Ok
DATA
354 End data with <CR><LF>.<CR><LF>
Subject: test message
From: sender@mydomain.com
To: friend@example.com
Hello,
This is a test.
Goodbye.
.
250 Ok: queued as 12345
QUIT
221 Bye
Sample communications
Sample communications
Sample communications
For the edit planning of giant files or sending with older clients, users can
manually determine in advance the maximum size accepted by ESMTP
servers.
The user telnets as above, but substitutes "EHLO mydomain.com" for the
HELO command line:
Sample communications
POP
From:
http://en.wikipedia.org/wiki/Post_Office_Protocol
POP
POP Overview
POP Overview
The design of POP3 and its procedures supports endusers with intermittent connections (such as
dial-up connections)
Connect
Retrieve all messages
Store them on the user's PC as new messages
Delete them from the server
Disconnect.
POP Overview
POP Overview
POP Overview
Clients with a leave mail on server option generally use the POP3 UIDL (Unique
IDentification Listing) command.
Most POP3 commands identify specific messages by their ordinal number on the mail server.
Creates a problem for a client intending to leave messages on the server
Message numbers may change from one connection to the server to another
For example if a mailbox contains five messages at last connect, and a different client then
deletes message #3, the next connecting user will find the last two messages' numbers
decremented by one
Server assigns a string of characters as a permanent and unique ID for the message
When a POP3-compatible e-mail client connects to the server, it can use the UIDL command to
get the current mapping from these message IDs to the ordinal message numbers
The client can then use this mapping to determine which messages it has yet to download
A client can request just the UIDs greater than its previously stored "highest UID"
POP Overview
E-mail clients typically use the SMTP_Submit profile of the SMTP protocol to send
messages
E-mail clients are commonly categorized as either POP or IMAP clients, but
in both cases the clients also use SMTP
There are extensions to POP3 that allow some clients to transmit outbound
mail via POP3
The Qualcomm qpopper and CommuniGate Pro servers and Eudora clients are
examples of systems that optionally utilize the XTND XMIT methods of
authenticated client-to-server e-mail transmission.
MIME serves as the standard for attachments and non-ASCII text in email
POP Overview
One such method, APOP, uses the MD5 hash function in an attempt to avoid
replay attacks and disclosure of the shared secret
Clients implementing APOP include Mozilla Thunderbird, Opera, Eudora, KMail
and Novell Evolution
POP3 clients can also support SASL authentication methods via the AUTH
extension. MIT Project Athena also produced a Kerberized version
POP3 works over a TCP/IP connection using TCP on network port 110
POP Example
IMAP
IMAP
IMAP
IMAP
User later retrieves these messages with either a web browser or an e-mail
client that uses one of a number of e-mail retrieval protocols.
Some clients and servers preferentially use vendor specific, typically
proprietary protocols, most support the Internet standard protocols
IMAP
Many (if not most) subscribers to individual ISP e-mail accounts access
their e-mail with client software that uses POP3
IMAP is often used in large networks
Most e-mail programs can also use Lightweight Directory Access Protocol
(LDAP) for directory services
flags (defined in the IMAP4 protocol clients) can keep track of message state
The IMAP4 protocol supports both pre-defined system flags and client defined
keywords
Different clients accessing the same mailbox at different times can detect state changes made
by other clients
POP3 provides no mechanism for clients to store such state information on the server
for example whether or not the message has been read, replied to, or deleted
System flags indicate state information such as whether a message has been read.
Keywords, (not supported by all IMAP servers), allow messages to be given one or
more tags whose meaning is up to the client
Adding user created tags to messages is an operation supported by some Webmail
services, such as Gmail
Server-side searches
Disadvantages of IMAP
Maildir
Database backends
Disadvantages of IMAP
Disadvantages of IMAP
Disadvantages of IMAP
SMTP-AUTH
SMTP Authentication
SMTP Authentication
SMTP-AUTH
SMTP Authentication
SMTP Authentication
SMTP Authentication
Acronyms
Acronym summary