















Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!
















JWBS001A-60.tex WL041/Bidgoli WL041-Bidgoli.cls May 12, 2005 3:27 Char Count= 0
Vladimir V. Riabov, Rivier College
Introduction 1 SMTP Fundamentals 1 SMTP Model and Protocol 2 User Agent 4 Sending e-Mail 4 Mail Header Format 4 Receiving e-Mail 4 The SMTP Destination Address 4 Delayed Delivery 4 Aliases 5 Mail Transfer Agent 5 SMTP Mail Transaction Flow 5 SMTP Commands 6 Mail Service Types 6 SMTP Service Extensions 8 SMTP Responses 8 SMTP Server 8 On-Demand Mail Relay 8 Multipurpose Internet Mail Extensions (MIME) 8 MIME-Version 10 Content-Type 10 Content-Transfer-Encoding 10 Content-Id 11 Content-Description 11 Security Scheme for MIME 11 Mail Transmission Types 11 Mail Access Modes 11 Mail Access Protocols 11 POP3 11 IMAP4 12
SMTP Security Issues 12 SMTP Vulnerabilities 12 SMTP Server Buffer Overflow Vulnerability 15 Mail Relaying SMTP Vulnerability 15 Mail Relaying SMTP Vulnerability in Microsoft Windows 2000 15 Encapsulated SMTP Address Vulnerability 15 Malformed Request Denial of Service 16 Extended Verb Request Handling Flaw 16 Reverse DNS Response Buffer Overflow 16 Firewall SMTP Filtering Vulnerability 16 Spoofing 16 Bounce Attack 16 Restricting Access to an Outgoing Mail Server 17 Mail Encryption 17 Bastille Hardening System 17 POP and IMAP Vulnerabilities 17 Standards, Organizations, and Associations 18 Internet Assigned Numbers Authority 18 Internet Engineering Task Force Working Groups 18 Internet Mail Consortium 18 Mitre Corporation 18 Conclusion 18 Glossary 18 Cross References 19 References 19 Further Reading 22
Electronic mail (e-mail) is one of the most popular net- work services nowadays. Most e-mail systems that send mail over the Internet use simple mail transfer protocol (SMTP) to send messages from one server to another. The messages can then be retrieved with an e-mail client us- ing either post office protocol (POP) or Internet message access protocol (IMAP). SMTP is also generally used to send messages from a mail client to a mail server in “host- based” (or Unix-based) mail systems, where a simple mbox utility might be on the same system [or via Network File System (NFS) provided by Novell] for access without POP or IMAP. This chapter describes the fundamentals of SMTP, el- ements of its client–server architecture (user agent, mail transfer agent, ports), request–response mechanism, com- mands, mail transfer phases, SMTP messages, multi- purpose internet mail extensions (MIME) for non-ASCII (American Standard Code for Information Interchange) data, e-mail delivery cases, mail access protocols (POP
and IMAP4), SMTP software, vulnerability and security issues, standards, associations, and organizations.
SMTP is used as the common mechanism for transporting electronic mail among different hosts within the transmis- sion control protocol/Internet protocol (TCP/IP) suite. It is an application layer protocol. Under SMTP, a client SMTP process opens a TCP connection to a server SMTP process on a remote host and attempts to send mail across the con- nection. The server SMTP listens for a TCP connection on a specific port (25), and the client SMTP process initiates a connection on that port (Cisco SMTP, 2005). When the TCP connection is successful, the two processes execute a simple request–response dialogue, defined by the SMTP protocol (see RFC 821 for details), in which the client pro- cess transmits the mail addresses of the originator and the recipient(s) for a message. When the server process accepts these mail addresses, the client process transmits the e-mail instant message. The message must contain a
1
JWBS001A-60.tex WL041/Bidgoli WL041-Bidgoli.cls May 12, 2005 3:27 Char Count= 0
2 SMTP (SIMPLE M AIL T RANSFER PROTOCOL)
message header and message text (“body”) formatted in accordance with RFC 822. Mail that arrives via SMTP is forwarded to a remote server, or it is delivered to mailboxes on the local server. POP3 or IMAP allow users download mail that is stored on the local server. Most mail programs such as Eudora allow the client to specify both an SMTP server and a POP server. On UNIX-based systems, Sendmail is the most widely used SMTP server for e-mail. Sendmail includes a POP3 server and also comes in a version for Windows NT (“What is SMTP?”, 2005). The MIME protocol defines the way files are attached to SMTP messages. Microsoft Out- look and Netscape/Mozilla Communicator are the most popular mail-agent programs on Window-based systems. The X.400 International Telecommunication Union standard (Tanenbaum, 2003) that defines transfer pro- tocols for sending electronic mail between mail servers is used in Europe as an alternative to SMTP. Also, the message handling service (MHS) developed by Novell is used for electronic mail on Netware networks (“What is SMTP?”, 2005).
The SMTP model (RFC 821) supports both end-to-end (no intermediate message transfer agents [MTAs]) and store-and-forward mail delivery methods. The end-to-end method is used between organizations, and the store-and- forward method is chosen for operating within organiza- tions that have TCP/IP and SMTP-based networks. A SMTP client will contact the destination host’s SMTP server directly to deliver the mail. It will keep the mail item from being transmitted until it has been success- fully copied to the recipient’s SMTP. This is different from the store-and-forward principle that is common in many other electronic mailing systems, where the mail item may pass through a number of intermediate hosts in the same network on its way to the destination and where success- ful transmission from the sender only indicates that the mail item has reached the first intermediate hop (“Simple Mail Transfer Protocol” [SMTP], 2004). The RFC 821 standard defines a client–server protocol. The client SMTP is the one, which initiates the session (that is, the sending SMTP) and the server is the one that responds (the receiving SMTP) to the session request. Be- cause the client SMTP frequently acts as a server for a
user-mailing program, however, it is often simpler to re- fer to the client as the sender-SMTP and to the server as the receiver-SMTP. An SMTP-based process can transfer electronic mail to another process on the same network or to another network via a relay or gateway process accessible to both networks (Sheldon, 2001). An e-mail message may pass through a number of intermediate relay or gateway hosts on its path from a sender to a recipient. A simple model of the components of the SMTP system is shown in Figure 1. Users deal with a user agent (UA). Popular user agents for UNIX include Berkeley Mail, Elm, MH, Pine, and Mutt. The user agents for Windows include Mi- crosoft Outlook/Outlook Express and Netscape/Mozilla Communicator. The exchange of mail using TCP is per- formed by an MTA. The most common MTA for UNIX systems is Sendmail, and MTA for Windows is Mi- crosoft Exchange 2000/2003. In addition to stable host- based e-mail servers, Microsoft Corporation has devel- oped LDAP/Active-directory servers and B2B-servers that enhance mail-delivery practices. Users normally do not deal with the MTA. It is the responsibility of the system administrator to set up the local MTA. Users often have a choice, however, for their user agent (Stevens, 1993). The MTA maintains a mail queue so that it can schedule re- peat delivery attempts in case a remote server is unable. Also the local MTA delivers mail to mailboxes, and the information can be downloaded by the UA (see Figure 1). The RFC 821 standard specifies the SMTP protocol, which is a mechanism of communication between two MTAs across a single TCP connection. The RFC 822 stan- dard specifies the format of the electronic mail message that is transmitted using the SMTP protocol (RFC 821) between the two MTAs. As a result of a user mail re- quest, the sender-SMTP establishes a two-way connection with a receiver-SMTP. The receiver-SMTP can be either the ultimate destination or an intermediate one (known as a mail gateway). The sender-SMTP will generate com- mands, which are replied to by the receiver-SMTP (see Figure 1). Both the SMTP client and server should have two ba- sic components: UA and local MTA. There are few cases of sending electronic-mail messages across networks. In the first case of communication between the sender and the receiver across the network (see Figure 1), the sender’s UA
User at a terminal
Sender
Receiver
User Agent
User Agent
User Mailboxes
SMTP commands, replies and mail
TCP Connection
TCP Port 25
Queue of mail to be sent
Message Transfer Agent
Client
Message Transfer Agent
User at a terminal
Server Figure 1: The basic simple mail transfer protocol (SMTP) model.
JWBS001A-60.tex WL041/Bidgoli WL041-Bidgoli.cls May 12, 2005 3:27 Char Count= 0
4 SMTP (SIMPLE M AIL T RANSFER PROTOCOL)
is located beyond the TCP/IP network. When a mail gate- way is used, the SMTP end-to-end transmission is host-to- gateway, gateway-to-host or gateway-to-gateway; the be- havior beyond the gateway is not defined by SMTP.
Introduced in RFC 821 and RFC 822, the SMTP defines user agent functionality, but not the implementation de- tails. A survey of the SMTP implementations can be found in RFC 876. The UA is a program that is used to send and receive electronic mail. The most popular user agent programs for UNIX are Berkley Mail, Elm, MH, Mutt, Mush, and Zmail. Some UAs have an extra user inter- face (e.g., Eudora) that allows window-type interactions with the system. The user agents for Windows include Microsoft Outlook/Outlook Express and Netscape/Mozilla Communicator.
Electronic mail is sent by a series of request–response transactions between a client and a server. An SMTP trans- action consists of the envelope and message, which is composed of header (with From: and To: fields) and body (text after headers sent with the DATA command). The en- velope is transmitted separately from the message itself using MAIL FROM and RCPT TO commands (see RFC 1123). A null line, that is, a line with nothing preceding the sequence, terminates the mail header. Some implementations (e.g., VM, which does not support zero- length records in files), however, may interpret this dif- ferently and accept a blank line as a terminator (SMTP, 2005). Everything after the null (or blank) line is the mes- sage body, which is a sequence of lines containing ASCII characters. The message body contains the actual infor- mation that can be read by the recipient.
The header includes a number of key words and val- ues that define the sending date, sender’s address, where replies should go, and some other information. The header is a list of lines, of the form (SMTP, 2005):
field-name: field-value
Fields begin in column 1: Lines beginning with white space characters (SPACE or TAB) are continuation lines, which are unfolded to create a single line for each field in the canonical representation. Strings enclosed in ASCII quotation marks indicate single tokens within which spe- cial characters such as the colon are not significant. Many important field values (such as those for the “To” and “From” fields) are “mailboxes.” The most common forms for these are the following:
(^) [email protected] (^) John Smith (^) “John Smith”
The string “John Smith” is intended for human recip- ients and is the name of the mailbox owner. The string
“[email protected]” is the computer-readable ad- dress of the mailbox (the angle brackets are used to de- limit the address but are not part of it). One can see that this form of addressing is closely related to the domain name system (DNS) concept (Internet Assigned Numbers Authority [IANA], 2005). In fact, the client SMTP uses the DNS to determine the IP address of the destination mailbox. Some frequently used fields (key words) are the follow- ing:
(^) to Primary recipients of the message. (^) cc Secondary (“carbon-copy”) recipients of the mes- sage. (^) from Identity of sender. (^) reply-to The mailbox to which responses are to be sent. This field is added by the originator. (^) return-path Address and route back to the origina- tor. This field is added by the final transport system that delivers the mail. (^) Subject Summary of the message. The user usually provides the summary.
The UA periodically checks the content of the mailboxes (see Figure 1). It informs the user about mail arrival by giving a special notice. When the user tries to read the mail, a list of arrived mail packages is displayed. Each line of the list contains a brief summary of the information about a particular package in the mailbox. The summary may include the sender mail address, the subject, and the time the mail was received or sent. By selecting any of the packages, the user can view its contents on the terminal display.
The SMTP destination address (a mailbox address), in its general form local-part@domain-name , can take several forms (SMTP, 2005):
(^) user@host—For a direct destination on the same TCP/IP network. (^) user%remote-host@gateway-host—For a user on a non- SMTP destination remote-host, via the mail gateway gateway-host. (^) @host-a,@host-b:user@host-c—For a relayed message. This form contains explicit routing information. The message will first be delivered to host-a, who will re- send (relay) the message to host-b. Host-b will then for- ward the message to the real destination host-c. Note that the message is stored on each of the intermediate hosts; therefore, there is no end-to-end delivery in this case. This address form is obsolete and should not be used (see RFC 1123).
The SMTP protocol allows delayed delivery, and the mes- sage can be delayed at the sender site, the receiver site, or the intermediate servers (Forouzan, 2003).
JWBS001A-60.tex WL041/Bidgoli WL041-Bidgoli.cls May 12, 2005 3:27 Char Count= 0
MAIL T RANSFER A GENT 5
In the case of delaying at the sender site, the client has to accommodate a spooling system, in which e-mail messages are stored before being sent. A message created by the user agent is delivered to the spool storage. The client mail transfer agent periodically (usually every 10 to 30 minutes) checks the spool to find the mail that can be sent. The mail will be sent only if the receiver is ready and the IP address of the server has been obtained though DNS. If a message cannot be delivered in the timeout pe- riod (usually about 3 to 5 days), the mail returns to the sender. Upon receiving the message, the server-MTA stores it in the mailbox of the receiver (see Figure 1). In this case, the receiver can access the mailbox at any convenient time. Finally, the SMTP standard procedures allow interme- diate MTAs to serve as clients and servers. Both interme- diate clients and servers can receive mail, store mail mes- sages in their mailboxes and spools, and send them later to an appropriate destination.
The SMTP mechanism allows one name, an alias, to rep- resent several e-mail addresses (this feature is known as “one-to-many alias expansion”; Forouzan, 2003). Addi- tionally, a single user can also be defined by several e-mail addresses (this is called “many-to-one alias expansion”). The system can handle these expansions by including an alias expansion facility (connected to the alias databases) at both the sender and receiver sites.
MTAs transfer actual mail. The system must have the client MTA for sending e-mail and the server MTA for re- ceiving mail (see Figure 1). The SMTP-related RFCs do not define a specific MTA. The UNIX-based MTA uses com- monly the Sendmail utility. The most common MTA for Windows is Microsoft Exchange 2000/2003. The “mta-name-type” and “address-type” parameters (e.g., dnc and rfc822 for the Internet mail, respectively) are defined for use in the SMTP delivery status notifica- tion document (see RFC1891). An identification of other mail systems can also be used. One of the identification methods has been described in “The COSINE and Inter- net X.500 Schema” (section 9.3.18) in the RFC1274 doc- ument. The mail system names listed here are used as the legal values in that schema under the “otherMailbox” attribute “mailboxType” type, which must be a Printa- bleString. The “Mapping between X.400 (1988)/ISO 10021 and RFC 822” is described in the section 4.2.2 of the RFC1327 document. The names listed here are used as the legal values in that schema under the “std-or-address” attribute “registered-dd-type” type, which must be a “key- string” (for details, see Mail Parameters, 2002).
The SMTP protocol (RFC 821) defines how commands and responses must be sent by the MTAs. The client sends commands to the server, and the server responds with nu- meric reply codes and optional human-readable strings. There are a small number of commands (less than a
dozen) that the client can send to the server. An example of sending a simple one-line message and an interpretation of the SMTP connection can be found in Stevens (1993). Although mail commands and replies are rigidly de- fined (see “Commands and Responses” later in this chap- ter), the exchange can easily be followed in Figure 3. In this scenario (Comer, 1995; SMTP, 2005), the user jsmith at host sun.it.rivier.edu sends a note to users darien, steve and bryan at host mail.unh.edu. Here the lines sent by the server (receiver) are preceded by S, and the lines sent by the client (sender) preceded by C. Note that the message header is part of the data being transmitted. All exchanged messages (commands, replies, and data) are text lines, delimited by a . All replies have a numeric code at the beginning of the line. The scenario includes the following steps (SMTP, 2005):
JWBS001A-60.tex WL041/Bidgoli WL041-Bidgoli.cls May 12, 2005 3:27 Char Count= 0
MAIL T RANSFER A GENT 7
Table 1 Simple Mail Transfer Protocol (SMTP) Commands
Command Description Format References ATRN Authenticated TURN RFC AUTH Authentication RFC BDAT Binary data RFC DATA Data; used to send the actual message; all lines that follow the DATA command are treated as the e-mail message; the message is terminated by a line containing just a period
DATA Best wishes. RFC821, RFC
EHLO Extended Hello RFC1869, RFC ETRN Extended TURN RFC EXPN Expand; asks the receiving host to expand the mailing list sent as the arguments and to return the mailbox addresses of the recipients that comprise the list
EXPN: a b c RFC821, RFC
HELO Hello; used by the client to identify itself HELO: sun.it.rivier.edu RFC821, RFC HELP Help; requests the recipient to send information about the command sent as the argument
HELP: mail RFC821, RFC
MAIL FROM Mail; used by the client to identify the sender of the message; the argument is the e-mail address of the sender
MAIL FROM: jsmith@ sun.it.rivier.edu
NOOP No operation; used by the client to check the status of the recipient; requires an answer from the recipient
QUIT Quit; terminates the message QUIT RFC821, RFC RCPT Recipient; used by the client to identify the intended recipient of the message; if there are multiple recipients, the command is repeated
RCPT TO: [email protected] RFC821, RFC
RSET Reset; aborts the current e-mail transaction; the stored information about the sender and recipient is deleted; the connection will be reset
SAML Send to the mailbox or terminal; specifies that the mail have to be delivered to the terminal or the mailbox of the recipient; the argument is the address of the sender
SAML FROM: jsmith@ sun.it.rivier.edu
SEND Send; specifies that the mail is to be delivered to the terminal of the recipient and not the mailbox; if the recipient is not logged in, the mail is bounced back; the argument is the address of the sender
SEND FROM: jsmith@ sun.it.rivier.edu
SOML Send to the mailbox or terminal; it specifies that the mail is to be delivered to the terminal or the mailbox of the recipient; the argument is the address of the sender.
SOML FROM: jsmith@ sun.it.rivier.edu
STARTTLS Extended Hello with transport layer security RFC TURN Turn; it lets the sender and the recipient switch positions whereby the sender becomes the recipient and vice versa (most SMTP implementations today do not support this feature; see RFC2821)
VRFY Verify; it verifies the address of the recipient, which is sent as the argument; the sender can request the receiver to confirm that a name identifies a valid recipient.
VRFY: [email protected] RFC821, RFC
Note: From “SMTP Specifications,” 2005.
JWBS001A-60.tex WL041/Bidgoli WL041-Bidgoli.cls May 12, 2005 3:27 Char Count= 0
8 SMTP (SIMPLE M AIL T RANSFER PROTOCOL)
The EHLO key word has a numerical parameter SIZE for specifying the new format of e-mail messages (see RFC1870).
SMTP (RFC821) specifies a set of commands or services for mail transfer. A general procedure for extending the set of services is defined in the STD11/RFC1869 docu- ment. The service extensions are identified by key words sent from the server to the client in response to the EHLO command (Mail Parameters, 2002). The set of service ex- tensions are as follows:
(^) SEND—Send as mail (see RFC821) (^) SOML—Send as mail or to terminal (see RFC821) (^) SAML—Send as mail and to terminal (see RFC821) (^) EXPN—Expand the mailing list (see RFC821) (^) HELP—Supply helpful information (see RFC821) (^) TURN—Turn the operation around (see RFC821) (^) 8BITMIME—Use 8-bit data (see RFC1652) (^) SIZE—Message size declaration (see RFC1870) (^) CHUNKING—Chunking (see RFC3030) (^) BINARYMIME—Binary MIME (see RFC3030) (^) CHECKPOINT—Checkpoint/Restart (see RFC1845) (^) PIPELINING—Command Pipelining (see RFC2920) (^) DSN—Delivery Status Notification (see RFC1891) (^) ETRN—Extended Turn (see RFC1985) (^) ENHANCEDSTATUSCODES—Enhanced Status Codes (see RFC2034) (^) STARTTLS—Start TLS (see RFC3207).
Some of these key words have parameters (for details, see Mail Parameters, 2002).
Responses are sent from the server to the client. A re- sponse is a three-digit code that may be followed by addi- tional textual information. The meanings of the first digit are as follows:
(^) 2bc—positive completion reply; the requested com- mand has been successfully completed and a new com- mand can be started. (^) 3bc—positive intermediate reply; the requested com- mand has been accepted, but the server needs some more information before completion can occur. (^) 4ab—transient negative completion reply; the requested command has been rejected, but the error condition is temporary, and the command can be sent again. (^) 5ab—permanent negative completion reply; the re- quested command has been rejected, and the command cannot be sent again.
The second (b) and the third (c) digits provide further details about the responses. The list of typical reply codes and their description are shown in Table 2.
The SMTP server sends and receives mail from other In- ternet hosts using the SMTP. The SMTP server processes all incoming and outgoing mail. Outgoing mail is spooled until the SMTP server can confirm it has arrived at its destination; incoming mail is spooled until users access it by using a POP3 or IMAP4 mail client. Spooling allows the transfer from client and server to occur in the back- ground. The instructions on how to configure the SMTP server in the Windows NT environment and how to set options to provide security for the SMTP server are de- scribed in “How to Set SMTP Security Options” (2005).
On-demand mail relay (ODMR), also known as authen- ticated TURN (ATRN), is an e-mail service that allows a user to connect to an Internet service provider (ISP), authenticate, and request e-mail using a dynamic IP ad- dress (instead of static IP addresses used in a “traditional” SMTP model) from any Internet connection (see RFC 2645). The initial client and server roles are short-lived, because the point is to allow the intermittently connected host to request mail held for it by a service provider. The customer initiates a connection to the provider, authenti- cates, and requests its mail. The roles of client and server then reverse, and the normal SMTP scenario proceeds. The provider has an ODMR process listening for connec- tions on the ODMR port 366 (SMTP Specifications, 2005). On the server, this process implements the EHLO, AUTH, ATRN, and QUIT commands. Also, it has to be an SMTP client with access to the outgoing mail queues. An MTA normally has a mail client component, which processes the outgoing mail queues, attempting to send mail for particular domains, based on time or events, such as new mail being placed in the queue or receipt of an ETRN command by the SMTP server component. The ODMR service processes the outgoing queue on request. The ISP provider side has normal SMTP server responsibilities, in- cluding generation of delivery failure notices (SMTP Spec- ifications, 2005).
The RFC 821/ STD 10 standard specifies that data sent via SMTP is 7-bit ASCII data, with the high-order bit cleared to zero. This is adequate in most instances for the trans- mission of English text messages but is inadequate for non-English text or nontextual data. There are two approaches to overcoming these limi- tations. In the first approach, the MIME were defined in RFC 1521 and RFC 1522, which specify a mechanism for encoding text and binary data as 7-bit ASCII within the mail envelope defined by the RFC 822 standard. MIME is also described in SMTP (2005). In the second approach, the SMTP service extensions (RFC 1651, RFC 1652, and RFC 1653) define a mecha- nism to extend the capabilities of SMTP beyond the limi- tations imposed by the RFC 821 standard. The RFC 1651 document introduces a standard for a receiver-SMTP to
JWBS001A-60.tex WL041/Bidgoli WL041-Bidgoli.cls May 12, 2005 3:27 Char Count= 0
10 SMTP (SIMPLE M AIL T RANSFER PROTOCOL)
Table 3 Data Types and Subtypes in a Multipurpose Internet Mail Extensions (MIME) Content-Type Header Declaration
Type Subtype Description Text Plain Unformatted 7-bit ASCII text; no transformation by MIME is needed Multipart Mixed Body contains ordered parts of different data types Parallel Body contains no-ordered parts of different data types Digest Body contains ordered parts of different data types, but the default is message/RFC Alternative Parts are different versions of the same message Message RFC822 Body is an encapsulated message Partial Body is a fragment of a bigger message External-Body Body is a reference to another message Image JPEG Image is in JPEG format GIF Image is in GIF format Video MPEG Video is in MPEG format Audio Basic String channel encoding of voice at 8 KHz Application PostScript Adobe PostScript Octet-stream General binary data (eight-bit bytes)
GIF = Graphics Interchange Format; JPEG = Joint Photographic Experts Group; MPEG = Motion Picture Experts Group.
SMTP must either encode the message contents into a 7-bit representation compliant with the MIME standard or return a permanent error to the user. The SMTP service extension has the limitation on max- imum length of a line (only up to 1,000 characters as re- quired by the RFC 821 standard). The service extension also limits the use of non-ASCII characters to message headers, which are prohibited by the RFC 822 regulations. The RFC 1653 document introduces the protocol for message size declaration that allows a server to inform a client of the maximum size message it can accept. If both server and client support the message size declaration ex- tension, the client may declare an estimated size of the message to be transferred, and the server will return an error if the message is too large. Each of these SMTP ser- vice extensions is a draft standard protocol and each has a status of elective. The MIME protocols define five header lines that can be added to the original header section to define the transformation parameters: MIME-version, content- type, content-transfer-encoding, content-id, and content- description. Each header line is described in detail in the following sections.
The header line MIME-Version: 1.1 declares that the message was composed using the (current) version 1.1 of the MIME protocol.
The header line Content-Type: defines the type of data used in the body of the message. The identifiers of the content type and the content subtype are separated by a slash. Depending on the subtype, the header may contain other parameters. The MIME standard allows seven basic content types of data, the valid subtypes for each, and transfer encodings,
which are listed in Table 3. Examples of the content-type headers can be found in Forouzan (2003).
The Content-Transfer-Encoding: header line defines the method to encode the messages into a bit-stream of 0s and 1s for transport. The five types of encoding are as follows:
(^) 7bit—for NVT ASCII characters and short lines of less than 1,000 characters. (^) 8bit—for non-ASCII characters and short lines of less than 1,000 characters; the underlying SMTP protocol must be able to transfer 8-bit non-ASCII characters (this type is not recommended). (^) binary—for non-ASCII characters with unlimited- length lines; this is 8-bit encoding. The underlying SMTP protocol must be able to transfer 8-bit non-ASCII char- acters (this type is not recommended). (^) base64—for sending data made of bytes when the high- est bit is not necessarily zero; 6-bit blocks of data are en- coded into 8-bit printable ASCII characters (for details, see Forouzan, 2003; Stevens, 1993), which can then be sent as any type of character set supported by the un- derlying mail transfer mechanism. (^) quoted-printable—for sending data that consist of mostly ASCII characters with a small non-ASCII por- tion; if a character is not ASCII, it is sent as three char- acters: the first character is the equal sign, and the next two are the hexadecimal representation of the byte.
Although the content type and encoding are indepen- dent, the RFC 1521 document recommends quoted- printable for text with non-ASCII data, and base64 for image, audio, video, and octet-stream application data. This allows maximum interoperability with RFC 821 con- formant MTAs (Stevens, 1993).
JWBS001A-60.tex WL041/Bidgoli WL041-Bidgoli.cls May 12, 2005 3:27 Char Count= 0
MAIL ACCESS P ROTOCOLS 11
The header line Content-Id: id= un- iquely identifies the whole message in a multiple message environment.
The header line Content-Description: defines whether the body is image, audio, or video.
The S/MIME is a security scheme for the MIME proto- col. It was developed by RSA Security and is an alter- native to the pretty good privacy (PGP) encryption and digital signature scheme that uses public-key cryptogra- phy. The S/MIME scheme was standardized by IETF. Ac- cording to “Report of the IAB Security Architecture Work- shop” (RFC 2316), the designated security mechanism for adding secured sections to MIME-encapsulated e-mail is security/multipart, as described in “Security Multiparts for MIME: Multipart/Signed and Multipart/Encrypted” (RFC 1847). The S/MIME is widely used by large companies that need to standardize e-mail security for both interorga- nization and intraorganization mail exchange (Internet Engineering Task Force [IETF] SMIME, 2005). It requires establishing a public-key infrastructure either in-house or by using any of the public certificate authorities (Sheldon, 2001).
The SMTP (RFC821) and the Standard for the Format of Advanced Research Project Agency (ARPA) Internet Text Messages (RFC822) specify that a set of “Received” lines will be prepended to the headers of electronic mail messages as they are transported through the Internet (Mail Parameters, 2002). The received line may option- ally include either or both a “via” phrase or a “with” phrase (or both). The legal value for the “via” phrase is intended to indicate the link or physical medium over which the message was transferred (e.g., the UUCP link type should be specified for the Unix-to-Unix Copy Pro- gram). The “with” phrase is intended to indicate the pro- tocol or logical process that has been used to transfer the message (e.g., SMTP or ESMTP parameters are used re- spectively for SMTP [RFC821] or SMTP with service ex- tensions [RFC1869] protocol types).
To reach its final destination, an e-mail message should be handled by a mail server, the mail access protocol, and the mail client. A general concept of how these compo- nents work together is described in “Accessing Your Mail” (1997). An Internet mail server (known as the mail transfer agent, described earlier) is the software responsible for transmitting and receiving e-mail across the Internet. The MTA software is run on a computer that has a connection to the Internet and is managed, monitored, and backed up by ISPs or a company’s information services staff. Some
mail servers store mail only until the user retrieves it, whereas others store user mail permanently. An e-mail user typically uses a mail client program to interact with the mail server (Rose, 1993). A mail client (known as the mail user agent, described earlier) is the software that a user employs to read, send, file, and otherwise process the electronic mail. Usually running on a user’s desktop computer, the mail client also manages related e-mail data (address books, spelling dic- tionaries, and stationery). The mail client connects to a mail server to retrieve new mail. Some mail clients also use the mail server to store all e-mail (Rose, 1993). The communication between the mail client and mail server is regulated by the mail access protocol, a standard- ized set of transmitted commands and responses sent over many different types of network connections. The proto- col commands (created for managing access to the Inter- net e-mail only) depend on a design approach that can sig- nificantly affect the manner, modes, characteristics, and capabilities of the interaction between the mail client and mail server (“Accessing Your Mail”, 1997). The SMTP Pro- tocol handles the task of the actual sending of e-mail on the Internet. A mail access protocol operates in three common modes that differ in where and how a user stores and processes his or her mail (“Accessing Your Mail,” 1997):
(^) Offline mode —e-mail is downloaded from a temporary storage on the mail server to the user’s computer. After download, the mail is deleted from the server. (^) Online mode —user’s e-mail, his or her inbox, and all filed mail remains permanently on the mail server. By connecting to the server and establishing an e-mail ses- sion, the user can download a temporary copy of his or her e-mail and read it, or send e-mail. Once the connec- tion is finished, the copy is erased from user’s computer, and only the original remains on the server. (^) Disconnected/resynchronization mode —combines both offline and online modes. A copy of the user’s e-mail is downloaded to his or her computer(s), and the original message remains on the mail server. The user can change a local copy of his or her e-mail on any computer, then resynchronize all copies, including the original e-mail message on the server and copies on additional computers.
All three modes offer multiplatform support. This in- cludes support for existing platforms such as UNIX, Mi- crosoft Windows, and Apple Macintosh, and future plat- forms such as Java Mail Service–based network comput- ers. All three modes, including their advantages and disad- vantages, are discussed in detail in “Accessing Your Mail” (1997).
POP is used on the Internet to retrieve e-mail from a mail server. There are two versions of POP. The first, known as POP2 (RFC 937), became a standard in the mid-1980s and requires SMTP to send messages. Nowadays it has a
JWBS001A-60.tex WL041/Bidgoli WL041-Bidgoli.cls May 12, 2005 3:27 Char Count= 0
SMTP S ECURITY I SSUES 13
Table 4 SMTP Vulnerability Problems (CVE, 2005)
CVE Name Type of Vulnerability Possible Attacker Intrusive Action CVE-2004-309 Stack-based buffer overflow in the SMTP service support in vsmon.exe in Zone Labs ZoneAlarm before v. 4.5.538, ZoneLabs Integrity client v. 4.0.
It allows remote attackers to execute arbitrary code via a long RCPT TO argument.
CVE-2002-309 SMTP proxy in Symantec Enterprise Firewall v. 6.5.x includes the firewall’s physical interface name and address in an SMTP exchange when NAT translation is made to an address other than the firewall.
It allows remote attackers to determine certain firewall configuration information.
CVE-2002-0055 SMTP service in Microsoft Windows 2000, Windows XP Professional, and Exchange 2000 to cause a DoS via a command with a malformed data transfer (BDAT) request.
An attacker may disrupt the SMTP service and, depending on the system configuration, potentially IIS and other Internet services as well. See also MS02-012. CVE-2002-0054 SMTP service in Microsoft Windows 2000 and Internet Mail Connector (IMC) in Exchange Server 5.5 does not properly handle responses to NTLM authentication.
It allows remote attackers to perform mail relaying via an SMTP AUTH command using null session credentials.
CVE-2001-0894 Vulnerability in Postfix SMTP server that is configured to e-mail the postmaster: SMTP errors cause the session to terminate.
It allows remote attackers to cause a DoS (memory exhaustion) by generating a large number of SMTP errors, which forces the SMTP session log to grow too large. CVE-2001-0692 Vulnerability in SMTP proxy in WatchGuard Firebox (2500 and 4500) v. 4.5-4.6.
A remote attacker may bypass firewall filtering via a base64 MIME encoded e-mail attachment whose boundary name ends in two dashes. CVE-2001-0690 Format string vulnerability in Exim (v. 3.22-10 in Red Hat, v. 3.12 in Debian, and v. 3.16 in Conectiva) in batched SMTP mode.
It allows a remote attacker to execute arbitrary code via format strings in SMTP mail headers.
CVE-2001-0653 Local buffer overflow on Sendmail (v.8.11.x). A local user may gain root privileges. CVE-2001-0504 The authentication error on the remote SMTP server Microsoft Windows 2000. See also MS01-037.
An attacker may exploit this flaw to use the SMTP server as a spam relay. CVE-2001-1203 Lotus Domino SMTP server (v. 4.63-5.08) is vulnerable to a DoS (central processing unit consumption) attack by forging an e-mail message with the sender as bounce@[127.0.0.1] (localhost).
It allows remote attackers to cause a DoS: the server enters a mail loop.
CVE-2000-1047 The Lotus Domino SMTP server (v.5.0.x) is vulnerable to buffer overflow when supplied a too long ENVID variable within a MAIL FROM command.
An attacker may use this flaw to prevent Domino services from working properly, or to execute arbitrary code on the host.
CVE-2000-1022 The mailguard feature in Cisco Secure PIX Firewall (v. 5.2(2) and earlier) does not properly restrict access to SMTP commands.
It allows remote attackers to execute restricted commands by sending a DATA command before sending the restricted commands. CVE-2000-0507 The remote Imate SMTP server crashes when it is issued a HELO command with an argument longer than 1,200 characters.
vAn attacker may shut down the SMTP server.
CVE-2000-0488 Buffer overflow on the ITHouse mail server (v.1.04). Remote attackers may execute arbitrary commands via a long RCPT TO mail command. CVE-2000-0452 Buffer overflow in the remote Lotus SMTP server when the server is issued a too long argument to the MAIL FROM command.
An attacker may prevent the host from acting as a mail host and may execute arbitrary code on the system. CVE-2000-0319 mail.local in the remote Sendmail server does not properly identify the .\n string, which indicates the message-text end.
A remote attacker may cause a DoS or corrupt mailboxes via a message line that is 2047 characters long and ends as .\n.
( Continued )
JWBS001A-60.tex WL041/Bidgoli WL041-Bidgoli.cls May 12, 2005 3:27 Char Count= 0
14 SMTP (SIMPLE M AIL T RANSFER PROTOCOL)
Table 4 (continued)
CVE Name Type of Vulnerability Possible Attacker Intrusive Action CVE-2000-0075 Super Mail Transfer Package, later called MsgCore, has a memory leak.
Remote attackers may cause a DoS by repeating multiple HELO, MAIL FROM, RCPT TO, and DATA commands in the same session. CVE-1999-0203 The remote Sendmail’s SMTP server did not complain when issued the command (from piped program): MAIL FROM: |testing
An attacker may send mail that will be bounced to a program that allows him to execute arbitrary commands on the host. CVE-1999-0096 The remote Sendmail SMTP server seems to pipe mail sent to the “decode” alias to a program.
An attacker can use this “decode” flaw to overwrite arbitrary files on the remote server. CAN-2003-0818 Multiple integer overflows in Microsoft ASN. library (MSASN1.DLL). See also MS04-007.
An attacker may execute arbitrary code on this host by sending a specially crafted ASN. encoded packet with improper lengths. CAN-2003-0743 Exim MTA (v. 4.21) heap overflow. An attacker may gain a shell on this host. CAN-2003-0714 Exchange remote buffer overflow: SMTP service is vulnerable to a flaw in the XEXCH50 extended verb (command).
An attacker may completely crash Exchange 5. and execute arbitrary code on Exchange 2000. See also MS03-046. CAN-2003-0681 Remote Sendmail servers (v. 8.12.9 and earlier) have prescan() overflow on a remote buffer.
An attacker may gain root privileges.
CAN-2003-0540 Remote Postfix (v. 1.1.12) daemon multiple vulnerabilities.
An attacker may remotely disable it, or use it as a DoS agent against arbitrary hosts. CAN-2003-0264 SLMail (v. 5.1) SMTP server experiences various overflows.
A cracker might execute arbitrary commands on this host or to disable it remotely. CAN-2003-0161 Sendmail (v. 8.12.8 and earlier) servers have buffer overflow due to type conversion.
An attacker may gain remotely root privileges.
CAN-2002-1337 Remote header buffer overflow on Sendmail servers (v. 8.12.7 and earlier).
A remote attacker may gain root privileges.
CAN-2001-0713 A user may supply a custom configuration file to remote Sendmail servers.
A local attacker may regain the extra dropped privileges and run commands as root.
Note: The CAN number indicates a candidate for inclusion in the Common Vulnerabilities and Exposures (CVE) list of standard names for security problems. It must be reviewed by the CVE editorial board before it can be added to CVE (CVE, 2005). DoS = denial of service; MIME = multipurpose internet mail extensions; NAT = network address translation; SMTP = Simple mail transfer protocol.
misapplied or unapplied patches related to Sendmail in- stallations or misconfigured Sendmail daemons on the SMTP servers (Campbell, Calvert, & Boswell, 2003). ISPs restrict access to their outgoing mail servers to provide better service to their customers and pre- vent spam from being sent through their mail servers. There are several methods for establishing restrictions that could result in denying users’ access to their outgoing mail server. Originally (see RFC 821), e-mail servers (configured for SMTP relay) did not verify the claimed sender identity and would simply pass the mail on with whatever return address was specified. Bulk mailers have taken advantage of this to send huge volumes of mail with bogus return addresses. This results in slowing down servers. To fix the problem, the origin of a spam e-mail should be identified. An e-mail message typically transports through a set of SMTP servers (including the sender’s and receiver’s servers) before reaching the destination host. Along this pass, messages get “stamped” by the interme- diate SMTP servers. The stamps release tracking informa- tion that can be identified in the mail headers. Mismatches
between the IP addresses and the domain names in the header could unveil the real source of spam mail. The real domain names that correspond to the indicated IP addresses can be found out by executing a reverse DNS lookup. Modern mail programs have incorporated this functionality, which generates a Received: header line that includes the identity of the attacker (see examples in Campbell et al., 2003). Antispoofing measures are under active development. Mail Abuse Prevention System (MAPS) and Open Re- lay Behavior-Modification System (ORBS) provide test- ing, reporting and cataloging of e-mail servers configured for SMTP relay. These organizations maintain real-time blackhole lists (RBL) of mail servers with problematic his- tories. For protection and security purposes, companies may configure their SMTP servers and other e-mail service systems in such manner that any mail coming from RBL- blacklisted mail servers is automatically rejected (Camp- bell, 2003). Other initiatives for restricting the sender ad- dress spoofing include SPF, Hotmail domain cookies, and Microsoft’s caller ID. Also see “E-Mail Threats and Vulnerabilities”.
JWBS001A-60.tex WL041/Bidgoli WL041-Bidgoli.cls May 12, 2005 3:27 Char Count= 0
16 SMTP (SIMPLE M AIL T RANSFER PROTOCOL)
of configuring the Exchange Internet Mail Service (IMS) (called Internet Mail Connector in prior versions of Exchange), is vulnerable to the attack. The IMS service provides encapsulated addresses, when used as a Site Con- nector, and uses a special form of addressing called “en- capsulated SMTP,” which is used to encapsulate various message types into SMTP addresses. The Exchange sup- ports three kinds of Site Connectors: an X.400 connector, the Exchange Site Connector, and the Exchange Internet Mail Service. A malicious user could address e-mails using this format and route mail through an Exchange Server, even if mail relaying has been disabled. Any customer who has configured an IMS on an Internet-connected Exchange Server should consider in- stalling the patch (“Patch Availability,” 2005) that elimi- nates the vulnerability.
The SMTP service in Microsoft Windows 2000, Windows XP Professional, and Exchange 2000 is vulnerable to cause a denial of service via a command with a malformed data transfer (BDAT) request (CVE, 2002, No. 0055). By sending either a message with a corrupted time stamp or a malformed version of a particular SMTP command to the server, it is possible for a remote attacker to cause the mail service to crash and thus stop responding to legiti- mate requests.
IMS in Exchange Server 5.5 and Exchange 2000 do not require authentication before allowing a user to send a certain extended verb request. This vulnerability allows remote attackers to cause a denial of service (memory ex- haustion) and to consume large amounts of memory by directly connecting to the SMTP service and possibly trig- gering a buffer overflow in Exchange 2000 (CVE, 2003, No. 0714). Command execution could be possible. The Mi- crosoft Security Bulletin (2004, No. 03-046) recommends the patch to fix this vulnerability.
Microsoft Exchange does not check the length of the re- sponse from the DNS server before copying it into a fixed- length buffer (CVE, 2002, No. 0698). Therefore, a remote attacker who has control over a registered DNS server could cause a buffer overflow by creating a long, specially crafted reverse DNS entry and then issuing the EHLO com- mand to Exchange. The overflow would crash the server or even allow the attacker to execute arbitrary commands. Microsoft Exchange 5.5 is affected by this vulnerability if the patch has not been installed. At the same time, Mi- crosoft Exchange 2000 is not affected because it runs atop the native Windows 2000 SMTP service rather than the In- ternet Mail Connector. To fix the reverse DNS problem, the patch (“Patch Availability”, 2005) should be applied.
During expanded internal regression testing by Cisco, it was discovered that the Cisco Secure PIX Firewall fea- ture “mailguard”, which limits SMTP commands to a
specified minimum set of commands, can be bypassed (CISCO, 2001). The filtering command fixup protocol smtp[portnum], which is enabled by default on the Cisco Secure PIX Firewall, can fail. All users of Cisco Secure PIX Firewalls with software that provide access to SMTP Mail services are at risk. To exploit this vulnerability, at- tackers can make connections to an SMTP mail server (protected by the PIX Firewall) and can circumvent the expected filtering of the mailguard feature. If the mail server is not properly secured, an attacker may collect in- formation about existing e-mail accounts and aliases or can execute arbitrary code on the mail server. Cisco has offered free software upgrades for all affected customers (CISCO, 2001).
On the Internet, mail is usually delivered directly from the sending host to the receiving host. This inherent “open” design of SMTP allows a host computer, which needs to deliver a message to another computer(s), to make a con- nection (or multiple connections) to some other SMTP server and ask that server to relay the message(s) on its behalf. Gateways can be used to bridge firewalls. By denying access to a sending machine with a firewall, many companies and ISPs have been blocking the receipt of unwanted mail from known sources. The “blocked” senders of junk mail may attempt to deliver it through another computer by requesting the computer to route that mail for them. Senders of unsolicited e-mail can also use this method to hide their real identity by manipulat- ing the headers in the message and then sending the mes- sage through client’s system for delivery to its final desti- nation. This “spoofing” action gives the appearance that the message originated from the relaying server. When a bulk mailer chooses a client’s computer to deliver un- solicited mail to thousands of other people (known as “spamming”), the client’s system immediately becomes busy delivering messages that did not originate with the client’s users. The SMTP server may protect the client’s system against this type of abuse in two ways. First, the server allows administrators to configure the system to accept only mail originating from local users or destined for lo- cal users. Second, the server administrator can define sys- tems from which the client never wants to receive mail. It blocks mail from known sources of spam mail (“Setting SMTP Security,” 2005). Also see “Networks Attacks”.
In the case of anonymous file transfer protocol (FTP) ser- vices, the attacker can instruct the FTP server to send a file to the SMTP service being attacked on the victim’s system (see “FTP Security Considerations, RFC 2577). Using the FTP server to connect to the service on the attacked com- puter makes it difficult to track down the attacker (Camp- bell et al., 2003). Particularly, a client -attacker can upload a file that contains SMTP commands to an FTP server. Then, using an appropriate PORT command, the client instructs the attacked server to open a connection to a third computer’s SMTP port 25 and transfer the uploaded
JWBS001A-60.tex WL041/Bidgoli WL041-Bidgoli.cls May 12, 2005 3:27 Char Count= 0
POP AND IMAP V ULNERABILITIES 17
file containing SMTP commands to the third computer. This action may allow the client-attacker to forge mail on the third computer without making a direct connection.
The access to an outgoing mail server can be restricted by verifying that the computer is on the ISP’s local network. When the user dials the modem and connects to the ISP, his computer is given an IP address that identifies him as being a part of that network. If the user has two ISPs and dials up to one and then connects to the other’s mail server, it may prevent him or her from relaying mail because the computer is not identified as being on the local network for the provider. In this case, the user should try to use the SMTP server to dial up and connect to the Internet (“What Is SMTP Security?”, 2005). Another way to restrict access is to insist on a local do- main return address. If users connect to the mail server for “domain.com,” it may only allow them to send mail that is from “[email protected].” Therefore, if they try to send mail from another account that has the re- turn address of “[email protected],” it may restrict them from relaying to another server (“What is SMTP Security?”, 2005).
SMTP is not a secure protocol. Messages sent over the Internet are not secure unless some form of encryption is implemented. S/MIME is a widely used Internet e-mail standard. This and some other security topics (PGP, trans- port layer security [TSL], host-to-host encryption) are dis- cussed in other chapters. Also see “Encrypting E-Mail, PGP, S/MIME, TLS, and Virtual Private Networks (VPNs) Basics”.
The Bastille Hardening System (Bastille Project, 2005) has been designed to “harden” or “tighten” UNIX-based operating systems. It currently supports the Red HatEn- terprise 3, Debian, Mandrake, SuSE, and TurboLinux Linux distributions along with HP-UX and Mac OS X. The Bastille Linux Hardening software [Version 2.1.2 is available from the Source Forge Web site (Bastille Linux Project, 2005)] enhances the security of a Linux box by configuring daemons, system settings, and firewalling. Written in Perl, the Bastille Linux intends to improve Linux-based computer security. Among others, it has a revised sendmail module dedicated to secure holes that were discovered previously (see Table 4). A review of other service modules (Remote Access, Pluggable Authentifica- tion, DNS, Apache, FTP, SecureInetd, File Permission, Patch Download, and Firewall Configuration IPChains) can be found in Raynal (2000).
POP was designed to support offline mail processing (Rose, 1993). The mail is deleted from the server and is handled offline (locally) on the client machine. In the
implementation of this protocol on a UNIX system, the server must run with root privileges; therefore, it can ac- cess mail folders and undertake some file manipulation on behalf of the user logging in. After login, these privileges are discarded. Vulnerability exists in the way the login transaction is handled in some implementations of these procedures (CERT, 2005). This vulnerability can be ex- ploited to gain privileged access on the server. By prepar- ing carefully crafted text to a system running a vulnerable version of the POP server, remote users may be able to cause a buffer overflow and execute arbitrary instructions with root privileges. They do not need access to an ac- count on the system to do this. Vulnerable POP versions are identified in CVE, 2001, No. 0443, and (“Vulnerability Tutorials,” 2005). POP servers allow non-UNIX users to access their mail on a machine without logging in. The servers give PC and Macintosh users a way to receive mail through another machine. When connecting to a POP server, the client transmits the users’ userid and password in clear text. After authentication, users can access their mail. Each time the client reconnects to the POP server, the users’ userid and password are transmitted. Some POP client programs check the server every few minutes to check for the arrival of new mail. These frequent checks increase the possibility of the machine, username, and password being discovered by a password sniffer “tuned” for POP mail systems. This clear text password issue is resolved by using an optional command allowable for POP3 servers (RFC 1725). When the initial connection is made to a POP server, the server displays a time stamp in its banner. The client uses this time stamp to create an MD5 hash string that is shared between the server and client. The next time the client connects to the server (e.g., to check for new mail), it will issue the APOP command and the hash string. This method reduces the number of times that a user’s userid and password are transmitted in clear text (“Vulnerability Tutorials,” 2005). The current version of IMAP supports both online and offline operation, permit- ting manipulation of remote message folders. It provides access to multiple mailboxes (that can be allocated on multiple servers) and supports nested mailboxes as well as resynchronization with the server. The IMAP4 version also provides a user with the ability to create, delete, and rename mailboxes (“Vulnerability Tutorials,” 2005). The optional method, which is frequently used for IMAP4 (RFC 1734), provides another client’s authentica- tion mechanism (based on the AUTH command). This mechanism allows the client to specify authentication methods it knows about and to challenge the server to see whether it knows any of them as well (“Vulnerability Tuto- rials,” 2005). If no authentication method can be agreed on, then the APOP command (RFC 1725) is used. Also, the latest Secure POP3 mail server (with APOP/IMAP4) can be installed. Three other vulnerabilities have been discovered which affect different QPOP versions. The first is caused by the fact that the euidl command does not properly validate user input (CVE, 2000, No. 0442). This command could be used with a specially crafted e-mail message to gain shell access to the server with privileges of the mail group.
JWBS001A-60.tex WL041/Bidgoli WL041-Bidgoli.cls May 12, 2005 3:27 Char Count= 0
REFERENCES 19
on the server, users can access their own mail from any computer that has access to the server where the mail is stored. Domain Name System (DNS) A behind-the-scenes In- ternet service that translates Internet domain names to their corresponding IP addresses, and vice versa. E-Mail Client An application that runs on a personal computer or workstation and enables the sender to send, receive, and organize e-mail. It is called a client because e-mail systems are based on a client–server ar- chitecture. Mail is sent from many clients to a central server, which reroutes the mail to its intended destina- tion. Encapsulated Address This address provides a way to send the e-mail to a site acting as a gateway for an- other site while indicating the server to which the mes- sage eventually needs to be sent. An encapsulated ad- dress consists of an address within an address; the outer address directs the mail to the gateway, which uses the inner address to determine where to send the e-mail. Because the Exchange Internet Mail Service (IMS) uses SMTP as its e-mail protocol, mails sent to an IMS will use encapsulated SMTP as their addressing scheme. Gateway Software that translates data from the stan- dards of one system to the standards of another. For example, a gateway might exchange and convert Inter- net e-mail to X.400 e-mail. Header Part of an e-mail message that precedes the body of the message and provides the message origi- nator, date, and time. Internet Message Access Protocol (IMAP) An Inter- net protocol used by mail clients for retrieving e-mail messages stored on servers. The latest version, IMAP4, is similar to POP3 but supports some additional fea- tures; for example, a user can search through his e-mail messages for key words while the messages are still on mail server. The user can then choose which messages to download to his or her computer. While IMAP-based applications can operate in offline mode, they typically operate in online or disconnected–resynchronization mode. Mail Access Protocol A standardized set of commands and responses responsible for communication between the mail client and mail server. Mail Client The software used to read, file, send, and otherwise process e-mail, typically running on a user’s desktop computer. Mailbox A file where e-mail messages are stored. Mail Relaying A legitimate practice in which e-mail is routed to an intermediate mail server, which then de- livers it to the recipient’s mail server. For example, a company can have several servers and one of them is designated as a mail gateway to the Internet. Any e- mail sent to the company would arrive at the gateway server and then be relayed to the appropriate server for delivery to the recipient. Malicious users sometimes try to perform unauthorized mail relaying. Mail Server A computer typically managed by an ISP or information services department that handles receipt and delivery of e-mail messages. It also may store mail for the user on a temporary or permanent basis.
Multipurpose Internet Mail Extensions (MIME) An Internet standard that provides the transfer of nontext information, such as sounds and graphics, and non- U.S. English (such as Cyrillic, Chinese, or Japanese) via e-mail. Mail Transfer Agent (MTA) The software that is running on a mail server that relays, and delivers mail. Mail User Agent (MUA) The software (also known as the mail client) used to read, file, send, and process e-mail, typically running on a desktop computer. On-Demand Mail Relay (ODMR) A restricted profile of SMTP described in RFC 2645. Post Office Protocol (POP) A protocol used to retrieve e-mail from a mail server in offline mode. An e-mail client that implements the POP protocol downloads all new mail from a mail server, terminates the network connection, and processes all mail offline at the client computer. The current version, POP3 can be used with or without SMTP. Port In a software device, a port is a specific memory address that is mapped to a virtual networking cable. Ports allow multiple types of traffic to be transmitted to a single IP address. SMTP traditionally uses port 25 for e-mail communication. Server A host computer that provides resources to client computers. Simple Mail Transfer Protocol (SMTP) A protocol widely used to exchange e-mail between e-mail servers on the Internet. Spam Undesired junk e-mail or junk postings offering dubious business deals. User Agent (UA) An SMTP component that prepares the message, creates the envelope, and puts the mes- sage in the envelope.
See E-Mail and Instant Messaging; Internet E-Mail Ar- chitecture; Network Attacks; PGP (Pretty Good Privacy); S/MIME (Secure MIME).
Accessing your mail when and where you want on the In- ternet (1997, April 24). San Diego, CA: QUALCOMM, Eudora Division. Retrieved March 21, 2005, from http://www.eudora.com/pdf docs/primer.pdf Antirelay Parse. (2005). Sendmail organization, antire- lay rules. Retrieved March 21, 2005, from http://www. sendmail.org/antirelay.Parse0.txt Authentication error in SMTP service could allow mail relaying. (2001, July 5). Microsoft Security Bul- letin, MS01-037. Retrieved March 21, 2005, from http://www.microsoft.com/technet/security/bulletin/ MS01-037.mspx Bastille Linux Project. (2005). Open Source Develop- ment Network. Retrieved March 21, 2005, from http:// sourceforge.net/projects/bastille-linux/ Bastille Project. (2005). Retrieved March 21, 2005, from http://www.bastille-linux.org/
JWBS001A-60.tex WL041/Bidgoli WL041-Bidgoli.cls May 12, 2005 3:27 Char Count= 0
20 SMTP (SIMPLE M AIL T RANSFER PROTOCOL)
Bugtraq. (2005). Security Focus Archive, Vol. 1, No.
Mail Parameters. (2005). Retrieved March 21, 2005, from http://www.iana.org/assignments/mail-para- meters Microsoft Security Bulletins. (2005). Retrieved March 21, 2005, from http://www.microsoft.com/technet/ security/bulletin/ Patch Availability, Microsoft Security Program. (2005). Retrieved March 21, 2005, from http://www.microsoft. com/technet/security/patchavail-ability.mspx Raynal, F. (2000). Bastille Linux, MISC Magazine. Re- trieved March 21, 2005, from http://www.security-labs. org/index.php3?page= RFC821 (STD 10): Simple mail transfer protocol, Au- gust 1982. Retrieved March 21, 2005, from ftp://ftp.rfc- editor.org/in-notes/rfc821.txt RFC822 (STD 11): Standard for the format of ARPA— Internet Text Messages, August 1982. Retrieved March 21, 2005, from ftp://ftp.rfc-editor.org/in-notes/rfc822. txt RFC876. Survey of SMTP implementations, September