RFC821-Simple Mail Transfer Protocol (SMTP) Chinese version-3

Source: Internet
Author: User
Tags one mail
From: author :( 2001-11-2309: 08: 00) Step 2: forward the host to the target host R: 220BBN-VAX.ARPASimpleMailTransferServiceReadyS: HELOUSC-ISIE.ARPAR: 250BBN-VAX.ARPAS: MAILFROM: @ USC-ISIE.ARPA: JQP @ MIT-AI label: SMTP from: Author: (09:08:00)
Step 2: forward the host to the target host

R: 220 BBN-VAX.ARPA Simple Mail Transfer Service Ready

S: HELO USC-ISIE.ARPA

R: 250 BBN-VAX.ARPA

 

S: mail from: <@ USC-ISIE.ARPA: JQP@MIT-AI.ARPA>

R: 250 OK

 

S: rcpt:

R: 250 OK

 

S: DATA

R: 354 Start mail input; end .

S: Received: from MIT-AI.ARPA by USC-ISIE.ARPA;

2 Nov 81 22:40:10 UT

S: Date: 2 Nov 81 22:33:44

S: From: John Q. Public

S: Subject: The Next Meeting of the Board

S: To: Jones@BBN-Vax.ARPA

S:

S: Bill:

S: The next meeting of the board of directors will be

S: on Tuesday.

S: John.

S :.

R: 250 OK

 

S: QUIT

R: 221 USC-ISIE.ARPA Service closing transmission channel



Confirm and send

R: 220 SU-SCORE.ARPA Simple Mail Transfer Service Ready

S: HELO MIT-MC.ARPA

R: 250 SU-SCORE.ARPA

 

S: VRFY cripin

R: 250 Mark cripin

 

S: send from:

R: 250 OK

 

S: rcpt:

R: 250 OK

 

S: DATA

R: 354 Start mail input; end .

S: Blah blah...

S:... etc. etc.

S :.

R: 250 OK

 

S: QUIT

R: 221 SU-SCORE.ARPA Service closing transmission channel



To get and send an email, first determine the user name, and then try to send the email to the user terminal,
If it fails, it is sent to the user's mailbox.

R: 220 SU-SCORE.ARPA Simple Mail Transfer Service Ready

S: HELO MIT-MC.ARPA

R: 250 SU-SCORE.ARPA

 

S: VRFY cripin

R: 250 Mark cripin

 

S: send from:

R: 250 OK

 

S: rcpt:

R: 450 User not active now

 

S: RSET

R: 250 OK

 

S: mail from:

R: 250 OK

 

S: rcpt:

R: 250 OK

 

S: DATA

R: 354 Start mail input; end .

S: Blah blah...

S:... etc. etc.

S :.

R: 250 OK

 

S: QUIT

R: 221 SU-SCORE.ARPA Service closing transmission channel



A more effective approach to the above issues

R: 220 SU-SCORE.ARPA Simple Mail Transfer Service Ready

S: HELO MIT-MC.ARPA

R: 250 SU-SCORE.ARPA

 

S: VRFY cripin

R: 250 Mark cripin

 

S: soml from:

R: 250 OK

 

S: rcpt:

R: 250 User not active now, so will do mail.

 

S: DATA

R: 354 Start mail input; end .

S: Blah blah...

S:... etc. etc.

S :.

R: 250 OK

 

S: QUIT

R: 221 SU-SCORE.ARPA Service closing transmission channel



In the mail list, each of the two mail lists is extended on different sessions of different hosts,
Then, send an email to the user in the list by forwarding the host.

Step 1: expand the first list

R: 220 MIT-AI.ARPA Simple Mail Transfer Service Ready

S: HELO SU-SCORE.ARPA

R: 250 MIT-AI.ARPA

 

S: EXPN Example-People

R: 250-

R: 250-Fred Fonebone

R: 250-Xenon Y. Zither

R: 250-Quincy Smith <@ USC-ISIF.ARPA: Q-Smith@ISI-VAXA.ARPA>

R: 250-

R: 250

 

S: QUIT

R: 221 MIT-AI.ARPA Service closing transmission channel

 

Step 2: expand the second list

R: 220 MIT-MC.ARPA Simple Mail Transfer Service Ready

S: HELO SU-SCORE.ARPA

R: 250 MIT-MC.ARPA

 

S: EXPN Interested-Parties

R: 250-Al Calico

R: 250-

R: 250-Quincy Smith <@ USC-ISIF.ARPA: Q-Smith@ISI-VAXA.ARPA>

R: 250-

R: 250

 

S: QUIT

R: 221 MIT-MC.ARPA Service closing transmission channel

 

Step 3: send emails to all users in the two lists through the forwarding host

R: 220 USC-ISIE.ARPA Simple Mail Transfer Service Ready

S: HELO SU-SCORE.ARPA

R: 250 USC-ISIE.ARPA

 

S: mail from:

R: 250 OK

S: rcpt to: <@ USC-ISIE.ARPA: ABC@MIT-MC.ARPA>

R: 250 OK

S: rcpt to: <@ USC-ISIE.ARPA: Fonebone@USC-ISIQA.ARPA>

R: 250 OK

S: rcpt to: <@ USC-ISIE.ARPA: XYZ@MIT-AI.ARPA>

R: 250 OK

S: RCPT

TO: <@ USC-ISIE.ARPA, @ USC-ISIF.ARPA: Q-Smith@ISI-VAXA.ARPA>

R: 250 OK

S: rcpt to: <@ USC-ISIE.ARPA: joe@FOO-UNIX.ARPA>

R: 250 OK

S: rcpt to: <@ USC-ISIE.ARPA: xyz@BAR-UNIX.ARPA>

R: 250 OK

S: rcpt to: <@ USC-ISIE.ARPA: fred@BBN-UNIX.ARPA>

R: 250 OK

 

S: DATA

R: 354 Start mail input; end .

S: Blah blah...

S:... etc. etc.

S :.

R: 250 OK

 

S: QUIT

R: 221 USC-ISIE.ARPA Service closing transmission channel


Forwarding status

R: 220 USC-ISIF.ARPA Simple Mail Transfer Service Ready

S: HELO LBL-UNIX.ARPA

R: 250 USC-ISIF.ARPA

 

S: mail from:

R: 250 OK

 

S: rcpt:

R: 251 User not local; will forward

 

S: DATA

R: 354 Start mail input; end .

S: Blah blah...

S:... etc. etc.

S :.

R: 250 OK

 

S: QUIT

R: 221 USC-ISIF.ARPA Service closing transmission channel

Step 1: try the mailbox on the first host

R: 220 USC-ISIF.ARPA Simple Mail Transfer Service Ready

S: HELO LBL-UNIX.ARPA

R: 250 USC-ISIF.ARPA

 

S: mail from:

R: 250 OK

 

S: rcpt:

R: 251 User not local; will forward

 

S: RSET

R: 250 OK

 

S: QUIT

R: 221 USC-ISIF.ARPA Service closing transmission channel

Step 2: try the mailbox on the second host

R: 220 USC-ISI.ARPA Simple Mail Transfer Service Ready

S: HELO LBL-UNIX.ARPA

R: 250 USC-ISI.ARPA

 

S: mail from:

R: 250 OK

 

S: rcpt:

R: OK

 

S: DATA

R: 354 Start mail input; end .

S: Blah blah...

S:... etc. etc.

S :.

R: 250 OK

 

S: QUIT

R: 221 USC-ISI.ARPA Service closing transmission channel

Many recipients

R: 220 BERKELEY. ARPA Simple Mail Transfer Service Ready

S: HELO USC-ISIF.ARPA

R: 250 BERKELEY. ARPA

 

S: mail from:

R: 250 OK

 

S: rcpt:

R: 250 OK

 

S: rcpt:

R: 552 Recipient storage full, try again in another transaction

 

S: DATA

R: 354 Start mail input; end .

S: Blah blah...

S:... etc. etc.

S :.

R: 250 OK

 

S: mail from:

R: 250 OK

 

S: rcpt:

R: 250 OK

 

S: DATA

R: 354 Start mail input; end .

S: Blah blah...

S:... etc. etc.

S :.

R: 250 OK

S: QUIT

R: 221 BERKELEY. ARPA Service closing transmission channel



Glossary:


Enter


Space

ASCII
US standard information Interchange Code

Host
Network Computer with SMTP process or mailbox

Send SMTP process
Processes that work with the receiving SMTP process. Send SMTP to start the transmission service connection, it sends
SMTP commands, receive responses, and manage mail delivery

User
The person who wants to get the mail service (or the process that appears in the name of a person), or the recipient of the mail.

Session
A series of information exchanges when the transmission channel is enabled

Transmission Service
Reliable stream-oriented data communication service. For example, NCP, TCP, and NITS.

Transmission channel
A full-duplex channel established between sending SMTP and receiving SMTP for command exchange, response, and mail content

Character
Printable string

Line
Take Ended email content

Response
Receiving SMTP-to-SMTP messages sent through the transmission channel to a certain command (successful or unsuccessful)
Response. The common format of the response is the response code and a text segment. Generally, the response code is used by the machine,
Text is used by human users.

Email content
A series of strings that comply with the standard character set of ARPA Internet text information format

Mail content end mark
The specified character indicating the end of the email content

Email
Specifies the address (string) of the mail to which the user should be sent ). It is usually represented by the user name and host name

Command
Requests sent by sending SMTP to receive SMTP that require one mail service operation

Domain
Hierarchical representation of host address strings in the mail system

Receiving SMTP process
The process that works with the SMTP sending process. It is waiting for a connection established through the transmission service. It receives and sends
The commands issued by SMTP give a response and execute the corresponding operations

Operation
A series of operations that a message is sent from one receiver to another or multiple receivers.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.