Upgrading and Repairing Networks Free Open Book

Upgrading and Repairing Networks

Previous Page
Next Page

Putting It All Together

Now that you've seen the simple command set that is used by SMTP, and the simple response code mechanism, you can put it all together and see an example of how a particular mail transaction might occur:

  1. First, the Sender-SMTP sends a HELO or an EHLO command to the SMTP server.

  2. The MAIL command is used, with the reverse-path information. At this state, the SMTP server knows who wants to send the mail message and a return path to send back error messages should anything go awry. The server clears the necessary buffers and sends the "250 OK" message back to the sender.

  3. The RCPT command is issued by the client giving a forward-path of exactly one recipient of the mail message. If more than one recipient is the target of the message, multiple RCPT commands must be used. The "250 OK" response is sent if the server thinks it can get the message delivered. If not, the SMTP server returns a code of 550, which is a failure code.

  4. The DATA command is sent to the server. The server will return an intermediate reply code, 354, indicating that the remaining lines it receives from the sender will be interpreted as part of the email message.

  5. The client sends each line of text, and the server responds with "250 OK" for each line received. When the client is finished sending the message, a line with a single period character (".") is sent (with the appropriate <CRLF> that ends every line of text in SMTP).

  6. After receiving a final OK from the server, the client issues the QUIT command to terminate the session.

In these steps, information typically found in an email messagethe subject, date, and so onare included as part of the email message data that is transmitted following the DATA command. Also, this is a simple message exchange. It can get more complicated. For example, the server can return a reply code of "251 - User not local; will forward to..." followed by the forward-path information. This happens when the Receiver-SMTP knows the correct host on which a destination user's mailbox is located, but it differs from the one sent by the client. Another message of a similar type leaves the process of sending mail to another destination up to the client. This message, "551 - User not local..." supplies the client with the forward-path that the client can use to deliver the message. In this case, however, the server does not forward the message but lets the client take further action.

Previous Page
Next Page
Index: [SYMBOL][A][B][C][D][E][F][G][H][I][J][L][M][N][O][P][Q][R][S][T][U][V][W][X][Z]


     Main Menu
Upgrading and Repairing Networks
Table of Contents
Copyright
About the Authors
Acknowledgments
We Want to Hear from You!
Reader Services
Part I: Up Front: Network Planning and Design Concepts
Part II: Physical Networking Components
Part III: Low-Level Network Protocols
Part IV: Dedicated Connections and WAN Protocols
Part V: Wireless Networking Protocols
Part VI: Lan and Wan Network, Service, and Application Protocols
Chapter 24. Overview of the TCP/IP Protocol Suite
Chapter 25. Basic TCP/IP Services and Applications
Chapter 26. Internet Mail Protocols: POP3, SMTP, and IMAP
How SMTP Works
Putting It All Together
The Post Office Protocol (POP3)
The Internet Message Access Protocol Version 4 (IMAP4)
Chapter 27. Troubleshooting Tools for TCP/IP Networks
Chapter 28. BOOTP and Dynamic Host Configuration Protocol (DHCP)
Chapter 29. Network Name Resolution
Chapter 30. Using the Active Directory Service
Chapter 31. File Server Protocols
Chapter 32. The Hypertext Transfer Protocol
Chapter 33. Routing Protocols
Chapter 34. The Secure Sockets Layer (SSL) Protocol
Chapter 35. Introduction to the IPv6 Protocol
Part VII: Network User and Resource Management
Part VIII: System and Network Security
Part IX: Troubleshooting Networks
Part X: Upgrading Network Hardware
Part XI: Migration and Integration
Appendixes
Index


More Books
PHP Hacks
Processing Xml With Java - A Guide To Sax, Dom, Jdom, Jaxp, And Trax
The Koran (Holy Qur'an)
Macromedia Flash 8 Bible
Search Engine Optimization for Dummies
YouTube Traffic
PHP 5 for Dummies
Harry Potter and The Chamber of Secrets
Harry Potter and the Sorcerer's Stone
The Pilgrim's Progress
Wireless Hacks
Flash Hacks. 100 Industrial-Strength Tips & Tools
PayPal Hacks. 100 Industrial-Strength Tips and Tools
Amazon Hacks
Pdf Hacks
The Da Vinci Code
Google Hacks
The Holy Bible
Windows XP For Dummies
Harry Potter and the Half-Blood Prince
Seo Book
Upgrading and Repairing Networks
Macromedia Dreamweaver 8 UNLEASHED
Windows XP Annoyances
Windows XP Hacks
Microsoft Windows XP Power Toolkit
Teach Yourself MS Office In 24Hours
iPod & iTunes Missing Manual
PC Hacks 100 Industrial-Strength Tips and Tools
PC Overclocking, Optimization, and Tuning - 2th Edition
PC Hardware In A Nutshell 3rd Edition
PC Hardware in a Nutshell, 2nd Edition
Upgrading and Repairing PCs
Google for Dummies
MySQL Cookbook
Teach Yourself Macromedia Flash 8 In 24 Hours
PHP CookBook
Sams Teach Yourself JavaScript in 24 Hours
PHP5 Manual
Free Games Paper Airplanes
500 Juegos Gratis 500 Giochi Gratis 500 Jeux Gratuits 500 Jogos Gratis 500 Kostenlose Spiele