RFC 821簡単メール転送プロトコル(SMTP)


  :       (http://www.china-pub.com/)
RFC        (http://www.china-pub.com/compters/emook/aboutemook.htm)
E-mail:[email protected]
  :   (ggfei  [email protected])
      :2001-3-30
  :                   。             ,                。

Network Working Group                                          J. Postel
Request for Comments: DRAFT                                          ISI
Replaces: RFC 788, 780, 772                                  August 1982


RFC821         (SMTP)
(RFC821  SIMPLE MAIL TRANSFER PROTOCOL)


  
1.   	2
2. SMTP  	3
3. SMTP  	4
3.1. MAIL	4
3.2.   	5
3.3.      	6
3.4.     (mailing)     (sending)	7
3.5.      	7
3.6.   	8
3.7.  	9
3.8.     	9
4. SMTP  	9
4.1. SMTP  	9
4.1.1.     	9
4.1.2. COMMAND    	13
4.2. SMTP  	15
4.3.        	16
4.4.    	17
4.5.     	18
4.5.1.     	18
4.5.2.    	19
4.5.3.   	19
   A TCP    	19
   B NCP    	20
   C NITS	20
   D X.25    	20
   E        	20
   F     	22
    	36

  1.   
          (SMTP)             ,                               。  A,B,C D          SMTP   。                  。
  SMTP                     ,              (IPCE),           ,            。       ( IPCE)           。                IPCE  。               。           IPCE             。     ,                   。
2. SMTP   
  SMTP          :         ,  SMTP     SMTP            。  SMTP                 。SMTP     SMTP  ,   SMTP  ,         。
        ,SMTP     MAIL         。  SMTP            OK  。SMTP      RCPT           。  SMTP     ,   OK  ;       ,         (          ),         。                    ,            ,   OK  。
SMTP         ,                     ,                    ;  ,              ,    SMTP     。     SMTP         ,                  。
  MAIL         ,         ; RCPT           ,         。        ,          (            )。
                  ,SMTP                       ,                 ,          。   ,                   。            。
              ,    ,          ,        ,                  ,                 。  SMTP                    ,           。
        ASCII     ,       8       , 7       ,        0。              ,                   , "<string>" "<reverse-path>",                   。
3. SMTP   
       SMTP      。             (       )。          ,             ,            。          ,      。                  ,        F。
3.1. MAIL
   SMTP        ,   MAIL           。       RCPT      ,        ,   DATA           ,             。

          MAIL  ,< reverse-path >     。

  MAIL <SP> FROM:<reverse-path> <CRLF>

                    ,            。                。       ,       250 OK  。<reverse-path>        ,               ,                  。

            RCPT  。

  RCPT <SP> TO:<forward-path> <CRLF>

                ,       ,       250 OK  ,       。       ,        550 Failure  。           。
  <forward-path>      ,             ,                  。           DATA  。

DATA <CRLF>

         ,       354 Intermediate  ,              。           ,       250 OK  。             ,            ,            。SMTP                        ,    ,                 ,         。
    :          :Date, Subject, To, Cc, From。

                                。        ,       250 OK  。DATA                     。

                。              。                    。
  SMTP         Alpha.ARPA   Smith     Beta.ARPA   Jones,Green Brown ,      Alpha   Beta    。

  S: MAIL FROM:<[email protected]>
  R: 250 OK
  S: RCPT TO:<[email protected]>
  R: 250 OK
  S: RCPT TO:<[email protected]>
  R: 550 No such user here
  S: RCPT TO:<[email protected]>
  R: 250 OK
  S: DATA
  R: 354 Start mail input; end with <CRLF>.<CRLF>
  S: Blah blah blah...
  S: ...  
  S: <CRLF>.<CRLF>
  R: 250 OK
           ,              。
3.2.    
       <forward-path>         ,                。      ,                    。

  251:      ;      <forward-path>。

         ,   SMTP              ,                  。   ,      ,          。         。

  551 :     ,   <forward-path>

           SMTP              ,              。     ,      ,          。             ,                             。             。

       
  S: RCPT TO:<[email protected]>
  R: 251 User not local; will forward to <[email protected]>
    
  S: RCPT TO:<[email protected]>
  R: 551 User not local; please try <[email protected]>
3.3.      
  SMTP                     。     VREF EXPN    ,          。  VREF  ,           ,                     。  EXPN  ,            ,           ,                     。
  “   ”        ,        。      VREF   EXPN  ,                    。                  ,     。
        ,                  ,                    。             ,        。         ,                   ,           ,      。  ,"550 That is a mail list, not a user name"。             ,                      ,           ,      。(  , "550 That is a user name, not a mailing list")。
           (     EXPN   ),          。         ,  "VRFY Smith",    Smith      "553 User ambiguous"。

               : 3:
       
  S: VRFY Smith R: 250 Fred Smith <[email protected]>
    
  S: VRFY Smith
  R: 251 User not local; will forward to <[email protected]>
    
  S: VRFY Jones
  R: 550 String does not match anything.
    
  S: VRFY Jones
  R: 551 User not local; please try <[email protected]>
    
  S: VRFY Gourzenkyinplatz
  R: 553 User ambiguous.

                    :
  S: EXPN Example-People
  R: 250-Jon Postel <[email protected]>
  R: 250-Fred Fonebone <[email protected]>
  R: 250-Sam Q. Smith <[email protected]>
  R: 250-Quincy Smith <@USC-ISIF.ARPA:[email protected]>
  R: 250-<[email protected]>
  R: 250 <[email protected]>
    
  S: EXPN Executive-Washroom-List
  R: 550 Access Denied to You.

  VERF EXPN                            。      ,EXPN                    ,   Internet           。
  VRFY EXPN            ,      ,             。 
3.4.     (mailing)     (sending) 
  SMTP                  。                        (         )。                 (mailing);               (sending)。        ,          ,          SMTP 。  ,       SMTP          。                  。                    。
                  。            MAIL  ,    SMTP         :
  SEND <SP> FROM:<reverse-path> <CRLF>
  SEND                 。         (         ),450       RCPT  。         ,     。 
  SOML <SP> FROM:<reverse-path> <CRLF> 
  Send  MaiL                    (        )。         ,          。                  ,      。 
  SAML <SP> FROM:<reverse-path> <CRLF>
  Send MaiL                  (        )。     ,        。        ,      。
    MAIL               。  
3.5.       
          ,               。              :
  HELO <SP> <domain> <CRLF>
  QUIT <CRLF>
   HELLO   ,        ,         :“  ,  XX"。

         
  R: 220 BBN-UNIX.ARPA Simple Mail Transfer Service Ready
  S: HELO USC-ISIF.ARPA
  R: 250 BBN-UNIX.ARPA

         
  S: QUIT
  R: 221 BBN-UNIX.ARPA Service closing transmission channel
3.6.   
             :"@ONE,@TWO:JOE@THREE",   ,ONE,TWO THREE   。                。       ,            。           。
     ,                    SMTP       SMTP      。              ,                 。   SMTP                            ,                    ,                      。
     SMTP                   SMTP    ,            ,               SMTP   。      ,SMTP              。
        ,  SMTP               SMTP    。                     。  SMTP                               。  ,  SMTP     SMTP,              SMTP   ,  ,    SMTP    。
                  SMTP     ,               SMTP     。
    :            SMTP      ,           。    ,                       "To:","From:" "CC:"   。
     SMTP          ,                           ,      "undeliverable mail"  ,               。
             SMTP      ,   ,                 。                                。       ,           。  MAIL                 :
  MAIL FROM:<>

                 。      HOSTW  JOE        HOSTX    HOSTZ  HOSTY      。         HOSTX HOSTY     。

             
  S: MAIL FROM:<>
  R: 250 ok
  S: RCPT TO:<@HOSTX.ARPA:[email protected]>
  R: 250 ok
  S: DATA
  R: 354 send the mail data, end with .
  S: Date: 23 Oct 81 11:22:33
  S: From: [email protected]
  S: To: [email protected]
  S: Subject: Mail System Problem
  S:
  S: Sorry JOE, your message to [email protected] lost.
  S: HOSTZ.ARPA said this:
  S: "550 No Such User"
  S: .
  R: 250 ok
3.7.   
         ARPA Internet     。                                     。         ,             ,                 。
    ,"USC-ISIF.ARPA","Fred.Cambridge.UK" "PC7.LCS.MIT.ARPA"     -    。
       SMTP     ,             ,          。
3.8.     
  TURN                      。    A     SMTP,   TURN     OK  (250) ,      SMTP 。  ,  B      SMTP    SMTP。        ,       502    。
    :       。   TCP      ,        。  ,              ,      。  ,                       。
4. SMTP   
4.1. SMTP   
4.1.1.      
  SMTP                    。      <CRLF>      。          ,     <SP>     ,           <CRLF>  。                   。    SMTP     。
                  ,            。      MAIL     ,       RCPT     ,     DATA     。                 。                      ,    ,          ,         ,         。             ,               。
  HELLO (HELO)
          SMTP    SMTP。       SMTP    。  SMTP            SMTP    SMTP。    OK         SMTP       ,    ,        ,               。
  MAIL (MAIL) 
                      。         。                     。       ,         ,                    (                   )   。                    。                   ,        IPCE     IPCE(        IPCE  )     。                 。
              ,               ,                        。
  RECIPIENT (RCPT)
                   ;              。                        。        ,        ,                   。    SMTP          ,           (550)      。
           ,                               。           ,  SMTP                      。  ,     A             ,
  FROM:<[email protected]>
  TO:<@HOSTA.ARPA,@HOSTB.ARPA:[email protected]>
          :
  FROM:<@HOSTA.ARPA:[email protected]>
  TO:<@HOSTB.ARPA:[email protected]>.
                         。
  DATA (DATA)
                   。                       。          128 ASCII   。                ,          :"<CRLF>.<CRLF>",         。
                            。           ,                      。      ,       OK  ;             。
     SMTP       ,                   ,                     ,                        ,               。               。   SMTP         ,              。           <reverse-path>   。   ,                       ,       ,                        。
                        ,                                  。       ,               ,                。                。
                           。           SMTP               ,                      。      ,   DATA    OK  ,   SMTP       "      "         。                    ,             ,     。           MAIL    。
              
  Return-Path: <@GHI.ARPA,@DEF.ARPA,@ABC.ARPA:[email protected]>
  Received: from GHI.ARPA by JKL.ARPA ; 27 Oct 81 15:27:39 PST
  Received: from DEF.ARPA by GHI.ARPA ; 27 Oct 81 15:15:13 PST
  Received: from ABC.ARPA by DEF.ARPA ; 27 Oct 81 15:01:59 PST
  Date: 27 Oct 81 15:01:01 PST 
  From: [email protected] 
  Subject: Improved Mailing System Installed 
  To: [email protected] 

  This is to inform you that ... 
  SEND (SEND)
               ,              。            ,                  。 
                       。        ,          ,                      (                )。               。                   ,        IPCE     IPCE(        IPCE  )     。                 。
              ,               ,                        。
  SEND OR MAIL (SOML)
                               ,        。       ,         ,                ,            。         ,                     。
                       。        ,          ,                      (                )。               。                   ,        IPCE     IPCE(        IPCE  )     。                 。
              ,               ,                        。
  SEND AND MAIL (SAML)
                               ,       。         ,                        。         ,                  。
                       。        ,          ,                      (                )。               。                   ,        IPCE     IPCE(        IPCE  )     。                 。
              ,               ,                        。

  RESET (RSET)
                 。        ,             ,              ,       OK  。

  VERIFY (VRFY)
                   。    (     )   ,             。           ,                   。

  EXPAND (EXPN)
                         ,           ,        。    (     )   ,             。           ,                   。

  HELP (HELP)
           HELP            。        ,            。           ,                   。

  NOOP (NOOP) 
                    。                        OK  。           ,                   。

  QUIT (QUIT)
              OK          。      QUIT                  。      QUIT                  。    ,        。         ,         RSET    ,         ,             。              (4XX)               。

  TURN (TURN)
              OK          SMTP,                。    A     SMTP,   TURN      OK(250)  ,       SMTP。  A       ,           ,     220       。    B     SMTP,   TURN      OK(250)  ,       SMTP。  A       ,           ,       220       。
        ,       502  。
                 。           HELLO  ,               。  HELLO         ,       501    ,      SMTP              。 NOOP,HELP,EXPN VRFY              。MAIL,SEND,SOML SAML          。           RCPT DATA  。       RSET    。                。
               ,    501    ,      SMTP              。            ,    503    ,      SMTP              。
            QUIT  。               。
4.1.2. COMMAND    
                   。           ,      。              :
  MAIL Mail mail MaIl mAIl
                    , TO to     。                。                       。         ,"smith" "Smith"         。
             ,  <CRLF>  ,                     。           。       ,         。
     SMTP  : HELO <SP> <domain> <CRLF> MAIL <SP> FROM:<reverse-path> <CRLF>
RCPT <SP> TO:<forward-path> <CRLF>
DATA <CRLF>
RSET <CRLF>
SEND <SP> FROM:<reverse-path> <CRLF>
SOML <SP> FROM:<reverse-path> <CRLF>
SAML <SP> FROM:<reverse-path> <CRLF>
VRFY <SP> <string> <CRLF>
EXPN <SP> <string> <CRLF>
HELP [<SP> <string>] <CRLF>
NOOP <CRLF>
QUIT <CRLF>
TURN <CRLF>

              BNF     ,   "..."                。
<reverse-path> ::= <path>
<forward-path> ::= <path>
<path> ::= "<" [ <a-d-l> ":" ] <mailbox> ">"
<a-d-l> ::= <at-domain> | <at-domain> "," <a-d-l>
<at-domain> ::= "@" <domain>
<domain> ::= <element> | <element> "." <domain>
<element> ::= <name> | "#" <number> | "[" <dotnum> "]"
<mailbox> ::= <local-part> "@" <domain>
<local-part> ::= <dot-string> | <quoted-string>
<name> ::= <a> <ldh-str> <let-dig>
<ldh-str> ::= <let-dig-hyp> | <let-dig-hyp> <ldh-str>
<let-dig> ::= <a> | <d>
<let-dig-hyp> ::= <a> | <d> | "-"
<dot-string> ::= <   > | <   > "." <dot-string>
<   > ::= <  > | <  > <   >
<quoted-string> ::= """ <qtext> """
<qtext> ::= "\" <x> | "\" <x> <qtext> | <q> | <q> <qtext>
<  > ::= <c> | "\" <x>
<dotnum> ::= <snum> "." <snum> "." <snum> "." <snum>
<number> ::= <d> | <d> <number>
<CRLF> ::= <CR> <LF>
<CR> ::=    (ASCII 13) <LF> ::= (ASCII 10)
<SP> ::=   (ASCII 32) <snum> ::=   ,            0-255     
<a> ::=   A-Z 52        
<c> ::= 128 ASCII  ,           
<d> ::= 0-9  
<q> ::=   <CR>,<LF>," \ 128 ASCII  
<x> ::=  128 ASCII  
<special> ::= "<" | ">" | "(" | ")" | "[" | "]" | "\" | "." | "," | ";" | ":" | "@" """      
    : "\"       ,                。  "Joe\,Smith"                 。               。  :            ,          。
                 ,          。        ,        :     : "#"               ;           32  IP  ,IP                0-255       。                    :
<return-path-line> ::= "Return-Path:" <SP><reverse-path><CRLF>
<time-stamp-line> ::= "Received:" <SP> <stamp> <CRLF>
<stamp> ::= <from-domain> <by-domain> <opt-info> ";" <daytime>
<from-domain> ::= "FROM" <SP> < > <SP>
<by-domain> ::= "BY" <SP> < > <SP>
<opt-info> ::= [<via>] [<with>] [<id>] [<for>]
<via> ::= "VIA" <SP> <  > <SP>
<with> ::= "WITH" <SP> <  > <SP>
<id> ::= "ID" <SP> <   > <SP>
<for> ::= "FOR" <SP> <  > <SP>
<  > ::=                  
<  > ::=              
<daytime> ::= <SP> < > <SP> <  >
<  > ::= < > <SP> < > <SP> < >
<  > ::= <  > ":" < > ":" < > <SP> <  >
<dd> ::=              1-31 
< > ::= "JAN" | "FEB" | "MAR" | "APR" | "MAY" | "JUN" | "JUL" | "AUG" | "SEP" | "OCT" | "NOV" | "DEC"
< > ::=              00-99
<  > ::=    24  , 0 24
< > ::=        0-59
< > ::=       0-59
<  > ::=       
      
Return-Path: <@CHARLIE.ARPA,@BAKER.ARPA:[email protected]>
      
Received: FROM ABC.ARPA BY XYZ.ARPA ; 22 OCT 81 09:23:59 PDT
Received: from ABC.ARPA by XYZ.ARPA via TELENET with X25
id M12345 for [email protected] ; 22 OCT 81 09:23:59 PDT
4.2. SMTP  
   SMTP         ,                    ,      SMTP    SMTP   。              。
  SMTP         ,       。                ,          。               ,       ,               。    ,            ,              。   E           。      ,         :     ,<SP>,       <CRLF>,            。  EXPN HELP          ,  ,     ,         。
4.2.1. REPLY CODES BY FUNCTION GROUPS 500     ,      (           )
501       
502       
503        
504         
211            
214     
220 <domain>     
221 <domain>          
421 <domain>      ,      (      ,               )
250          
251      ,    <forward-path>
450           ,     (  ,   )
550           ,     (  ,     ,     )
451        ;       
551      ,   <forward-path>
452       ,        
552        ,        
553       ,        (        )
354       , <CRLF>.<CRLF>  
554     
4.3.        
                          ,      。  ,        ,         。                 。            。      ,        220"    "。                 。  :                         ,      。  :
  220 <SP> USC-ISIF.ARPA <SP> Service ready <CRLF>
              ,             ,              ,                        。      : 
               。           "P"     (   SMTP ),"I"     ,"S"    ,"F"    ,"E"    。  STMP         ,         421(     ,      )  。             :
CONNECTION ESTABLISHMENT(    )
S: 220
F: 421
HELO
S: 250
E: 500, 501, 504, 421
MAIL
S: 250
F: 552, 451, 452
E: 500, 501, 421
RCPT S: 250, 251 F: 550, 551, 552, 553, 450, 451, 452 E: 500, 501, 503, 421
DATA
I: 354 -> data -> S: 250
F: 552, 554, 451, 452
F: 451, 554
E: 500, 501, 503, 421
RSET
S: 250
E: 500, 501, 504, 421
SEND
S: 250
F: 552, 451, 452
E: 500, 501, 502, 421
SOML
S: 250
F: 552, 451, 452
E: 500, 501, 502, 421
SAML
S: 250
F: 552, 451, 452
E: 500, 501, 502, 421
VRFY
S: 250, 251
F: 550, 551, 553
E: 500, 501, 502, 504, 421
EXPN
S: 250
F: 550
E: 500, 501, 502, 504, 421
HELP
S: 211, 214
E: 500, 501, 502, 504, 421
NOOP
S: 250
E: 500, 421
QUIT
S: 221
E: 500
TURN
S: 250
F: 502
E: 500, 503 
4.4.    
             SMTP  ,            。   ,                    。                            。              :  (S),  (F)   (E)。    ,    B    ,  W      。


              :HELO, MAIL, RCPT, RSET, SEND, SOML, SAML, VRFY, EXPN, HELP, NOOP, QUIT, TURN.
     DATA          :

    :           ,                 。
4.5.     
4.5.1.     
    SMTP    ,       ,           :
COMMANDS - HELO
MAIL
RCPT
DATA
RSET
NOOP
QUIT
4.5.2.    
             ,     "<CRLF>.<CRLF>"            。  ,       "  "  。                     :
1.        ,  SMTP          ,       ,          。
2.        ,  SMTP          ,            ,      ,          ,               ,         。
               128 ASCII  。             ,             。          8    ,7  ASCII         ,       0。                      。       ASCII                               ,        ,          ,               。
4.5.3.   
               。    ,                   ,             。         ,          。
            64   。
         64   
                  256   
            ,      512   
            ,      512   
            ,                   1000   
                 100    
    ,    : 
500    
501     
552      
552       
   A TCP     
        (TCP) ARPA Internet   ,        US DoD  。SMTP                U        L 。              。              25,    L=25。TCP      8   , SMTP     7 ;  ,  8          0。
   B NCP    
  ARPANET  -    (         )     ARPANET。SMTP                U        L ;  ,        (ICP)        。              。            25,    L=25。NCP      8   , SMTP     7 ;  ,  8          0。
   C NITS
               。   NITS                  。      CONNECT  ,      ACCEPT  。NITS      8   , SMTP     7 ;  ,  8          0。
   D X.25    
                 X.25  ,  ,                 TCP。
   E        
                  。             ,        。     ,    SMTP             ,                   ,        ,                。    ,        ,                     。                    :

  1yz       

       ,          ,       。                     ,      。

  2yz       

           ,           。

  3yz               

       ,          ,          。                    。

  4yz        

        ,         ,             ,         。                (     )。           ,             。                  :                     ,     ,    ,     (5yz) 。

  5yz        

        ,        。            。            ,           ,                。

                :

x0z   :              :    ;            ;         。

x1z   :              ,        。

x2z   :              。

x3z    。

x4z    。

x5z     :                              。

              。            。          ,        ,                 。    ,              。                                   。  , NOOP     ,        ,          ,    250  。                     ,     502。           ;     ,       ,                  。              。    :   ,       ,        "-"  。            <SP>  。   :

123-First line

123-Second line

123-234 text beginning with numbers

123 The last line

       ,                      ,         。       ,              ,                                  。  
   F      
       SMTP       。

   SMTP  

          USC-ISIF    Smith   BBN-UNIX   Jones,Green Brown 。  ,    USC-ISIF     BBN-UNIX    。Jones Brown    , Green BBN-UNIX     。

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

S: HELO USC-ISIF.ARPA

R: 250 BBN-UNIX.ARPA

S: MAIL FROM:<[email protected]>

R: 250 OK

S: RCPT TO:<[email protected]>

R: 250 OK

S: RCPT TO:<[email protected]>

R: 550 No such user here

S: RCPT TO:<[email protected]>

R: 250 OK

S: DATA

R: 354 Start mail input; end with <CRLF>.<CRLF>

S: Blah blah blah...

S: ...etc. etc. etc.

S: .

R: 250 OK

 

S: QUIT

R: 221 BBN-UNIX.ARPA Service closing transmission channel

  SMTP   

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

S: HELO ISI-VAXA.ARPA R: 250 MIT-Multics.ARPA 

S: MAIL FROM:<[email protected]>

R: 250 OK

S: RCPT TO:<[email protected]>

R: 250 OK
 
S: RCPT TO:<[email protected]>

R: 550 No such user here

S: RSET

R: 250 OK

S: QUIT

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

     

   :        

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

S: HELO MIT-AI.ARPA

R: 250 USC-ISIE.ARPA

 

S: MAIL FROM:<[email protected]>

R: 250 OK

S: RCPT TO:<@USC-ISIE.ARPA:[email protected]>

R: 250 OK

S: DATA

R: 354 Start mail input; end with <CRLF>.<CRLF>

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

S: From: John Q. Public <[email protected]>

S: Subject: The Next Meeting of the Board

S: To: [email protected]

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

   :         

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:[email protected]>

R: 250 OK

S: RCPT TO:<[email protected]>

R: 250 OK

S: DATA

R: 354 Start mail input; end with <CRLF>.<CRLF>

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 <[email protected]>

S: Subject: The Next Meeting of the Board

S: To: [email protected]

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
     

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

S: HELO MIT-MC.ARPA

R: 250 SU-SCORE.ARPA

S: VRFY Crispin

R: 250 Mark Crispin <[email protected]>

S: SEND FROM:<[email protected]>

R: 250 OK

S: RCPT TO:<[email protected]>

R: 250 OK
S: DATA

R: 354 Start mail input; end with <CRLF>.<CRLF>

S: Blah blah blah...

S: ...etc. etc. etc.

S: .

R: 250 OK

S: QUIT

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

               ,              ,     ,       。

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

S: HELO MIT-MC.ARPA

R: 250 SU-SCORE.ARPA

 

S: VRFY Crispin

R: 250 Mark Crispin <[email protected]>

S: SEND FROM:<[email protected]>

R: 250 OK
S: RCPT TO:<[email protected]>

R: 450 User not active now

S: RSET

R: 250 OK

S: MAIL FROM:<[email protected]>

R: 250 OK

S: RCPT TO:<[email protected]>

R: 250 OK

S: DATA

R: 354 Start mail input; end with <CRLF>.<CRLF>

S: Blah blah blah...

S: ...etc. etc. etc.

S: .

R: 250 OK

S: QUIT

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

            

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

S: HELO MIT-MC.ARPA

R: 250 SU-SCORE.ARPA
S: VRFY Crispin

R: 250 Mark Crispin <[email protected]>

S: SOML FROM:<[email protected]>

R: 250 OK

S: RCPT TO:<[email protected]>

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

S: DATA

R: 354 Start mail input; end with <CRLF>.<CRLF>

S: Blah blah blah...

S: ...etc. etc. etc.

S: .

R: 250 OK

S: QUIT

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

         ,                        ,  ,                 。

   :       

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-<[email protected]>

R: 250-Fred Fonebone <[email protected]>

R: 250-Xenon Y. Zither <[email protected]>

R: 250-Quincy Smith <@USC-ISIF.ARPA:[email protected]>

R: 250-<[email protected]>

R: 250 <[email protected]>

S: QUIT

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

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 <[email protected]>

R: 250-<[email protected]>

R: 250-Quincy Smith <@USC-ISIF.ARPA:[email protected]>

R: 250-<[email protected]>

R: 250 <[email protected]>

S: QUIT

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

 

   :                         

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

S: HELO SU-SCORE.ARPA

R: 250 USC-ISIE.ARPA

S: MAIL FROM:<[email protected]>

R: 250 OK

S: RCPT TO:<@USC-ISIE.ARPA:[email protected]>

R: 250 OK

S: RCPT TO:<@USC-ISIE.ARPA:[email protected]>

R: 250 OK

S: RCPT TO:<@USC-ISIE.ARPA:[email protected]>

R: 250 OK

S: RCPT

TO:<@USC-ISIE.ARPA,@USC-ISIF.ARPA:[email protected]>

R: 250 OK

S: RCPT TO:<@USC-ISIE.ARPA:[email protected]>

R: 250 OK

S: RCPT TO:<@USC-ISIE.ARPA:[email protected]>

R: 250 OK

S: RCPT TO:<@USC-ISIE.ARPA:[email protected]>

R: 250 OK

 

S: DATA

R: 354 Start mail input; end with <CRLF>.<CRLF>

S: Blah blah blah...

S: ...etc. etc. etc.

S: .

R: 250 OK

S: QUIT

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

     

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

S: HELO LBL-UNIX.ARPA

R: 250 USC-ISIF.ARPA

S: MAIL FROM:<[email protected]>

R: 250 OK
 
S: RCPT TO:<[email protected]>

R: 251 User not local; will forward to <[email protected]>

S: DATA

R: 354 Start mail input; end with <CRLF>.<CRLF>

S: Blah blah blah...

S: ...etc. etc. etc.

S: .

R: 250 OK
S: QUIT

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

   :           

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

S: HELO LBL-UNIX.ARPA

R: 250 USC-ISIF.ARPA

S: MAIL FROM:<[email protected]>

R: 250 OK

S: RCPT TO:<[email protected]>

R: 251 User not local; will forward to <[email protected]>
 
S: RSET

R: 250 OK
 
S: QUIT

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

   :           

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

S: HELO LBL-UNIX.ARPA

R: 250 USC-ISI.ARPA

S: MAIL FROM:<[email protected]>

R: 250 OK
 
S: RCPT TO:<[email protected]>

R: OK

S: DATA

R: 354 Start mail input; end with <CRLF>.<CRLF>

S: Blah blah blah...

S: ...etc. etc. etc.

S: .

R: 250 OK
 
S: QUIT

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

        

R: 220 BERKELEY.ARPA Simple Mail Transfer Service Ready

S: HELO USC-ISIF.ARPA

R: 250 BERKELEY.ARPA
 
S: MAIL FROM:<[email protected]>

R: 250 OK
 
S: RCPT TO:<[email protected]>

R: 250 OK

S: RCPT TO:<[email protected]>

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

R: 354 Start mail input; end with <CRLF>.<CRLF>

S: Blah blah blah...

S: ...etc. etc. etc.
S: .

R: 250 OK

 

S: MAIL FROM:<[email protected]>

R: 250 OK

S: RCPT TO:<[email protected]>

R: 250 OK

S: DATA

R: 354 Start mail input; end with <CRLF>.<CRLF>

S: Blah blah blah...

S: ...etc. etc. etc.

S: .

R: 250 OK

S: QUIT

R: 221 BERKELEY.ARPA Service closing transmission channel

   :

<CRLF>
  

<SP>
  

ASCII
         

  
  SMTP           

  SMTP  
   SMTP         。  SMTP        ,   SMTP  ,    ,       

  
          (           ),          。

  
                  

    
             。  :NCP,TCP,NITS。

    
   SMTP   SMTP               ,          

  
      

 
   <CRLF>       

  
  SMTP   SMTP                 (       )  。                。     ,        ,           

    
       ,    ARPA Internet              

        
             

  
                 (   )。             

  
   SMTP     SMTP              

 
                  

  SMTP  
   SMTP         。              。     SMTP     ,            

  
                            
    
   [1]  ASCII

      ASCII, "USA Code for Information Interchange", United States of
      America Standards Institute, X3.4, 1968.  Also in:  Feinler, E.
      and J. Postel, eds., "ARPANET Protocol Handbook", NIC 7104, for
      the Defense Communications Agency by SRI International, Menlo
      Park, California, Revised January 1978.

   [2]  RFC 822

      Crocker, D., "Standard for the Format of ARPA Internet Text
      Messages," RFC 822, Department of Electrical Engineering,
      University of Delaware, August 1982.

   [3]  TCP

      Postel, J., ed., "Transmission Control Protocol - DARPA Internet
      Program Protocol Specification", RFC 793, USC/Information Sciences
      Institute, NTIS AD Number A111091, September 1981.  Also in:
      Feinler, E. and J. Postel, eds., "Internet Protocol Transition
      Workbook", SRI International, Menlo Park, California, March 1982.

   [4]  NCP

      McKenzie,A., "Host/Host Protocol for the ARPA Network", NIC 8246,
      January 1972.  Also in:  Feinler, E. and J. Postel, eds., "ARPANET
      Protocol Handbook", NIC 7104, for the Defense Communications
      Agency by SRI International, Menlo Park, California, Revised
      January 1978.

   [5]  Initial Connection Protocol

      Postel, J., "Official Initial Connection Protocol", NIC 7101,
      11 June 1971.  Also in:  Feinler, E. and J. Postel, eds., "ARPANET
      Protocol Handbook", NIC 7104, for the Defense Communications
      Agency by SRI International, Menlo Park, California, Revised
      January 1978.

   [6]  NITS

      PSS/SG3, "A Network Independent Transport Service", Study Group 3,
      The Post Office PSS Users Group, February 1980.  Available from
      the DCPU, National Physical Laboratory, Teddington, UK.

August 1982                                                      RFC 821
Simple Mail Transfer Protocol                                           

   [7]  X.25

      CCITT, "Recommendation X.25 - Interface Between Data Terminal
      Equipment (DTE) and Data Circuit-terminating Equipment (DCE) for
      Terminals Operating in the Packet Mode on Public Data Networks,"
      CCITT Orange Book, Vol. VIII.2, International Telephone and
      Telegraph Consultative Committee, Geneva, 1976.


RFC821  SIMPLE MAIL TRANSFER PROTOCOL                          RFC821         (SMTP)

1


1
RFC