This document can be found at http://www.comp.leeds.ac.uk/jj/linux/InternetEmail.html
From: Jim Jackson <jj@franjam.org.uk> To: all@world.com Subject: Message to Everyone Hello World!
+----------+ +----------+
+------+ | | | |
| User |<-->| | SMTP | |
+------+ | Client- |Commands/Replies| Server- |
+------+ | SMTP |<-------------->| SMTP | +------+
| File |<-->| | and Mail | |<-->| File |
|System| | | | | |System|
+------+ +----------+ +----------+ +------+
SMTP client SMTP server
<-------- 220 Greeting message
HELO system.name -------->
<-------- 250 servername pleased to meet you
Mail From: user@add.com
-------->
<-------- 250 user@add.com... sender ok
Rcpt To: name@host.edu
-------->
<-------- 250 name@host.edu... Recipient ok
Data -------->
<-------- 354 Enter mail, end with "."
on a line by itself
RFC2822 stream of bytes...
-------->
. -------->
<-------- 250 RefID Message Accepted
quit -------->
<-------- 221 system.name closing connection
Think of the example of an email to an email list. It is composed To: elist@address, and when it gets to the elist site the elist software then sends out the email message to all the people on the list, changing the envelope recipients, and changing the envelope sender to be the address of the elist admin people - so they get any DSN's.
(spammers just love the simple in SMTP :-)
+-----------+
User's Machine |---------------->| SMTP |
+-------+ SMTP out | | Relay |-------> Outgoing
| |-----------| -------->| | SMTP mail
| | POP/IMAP | +-----------+
| |<-------------| |
+-------+ | | +-------------+
| |--------------| |
| Web Mail | |IMAP/ SMTP | Incoming
| +--------+ |---|POP Server|<----- SMTP
| | Web | | |Server | mail
|-----------------| Mail |<-| | |
| Server | | |
+--------+ +-------------+
HomePage http://www.comp.leeds.ac.uk/jj
This document was generated using AFT v5.095