跳到主要内容

基本实现

最低限度的实现需支持三条命令:HELP、PATH 和 QUIT。HELP 命令提供一定程度的文档,并可能列出已知的寻址或通信协议。PATH 命令需要一个必选参数:用户名或用户标识,后跟 "@",再后跟域风格的主机名,其域成分可以是寻址协议、通信环境,或非官方的、俗称的域。

S: (server listens on port 117)
U: (user connects to port 117)
S: 210-Welcome to the CMU network mail path service.
S: 210 Type 'HELP' for help.
U: help
S: 200-The server currently knows about the following mail worlds:
S: 200- BITNET,UUCP,CSNET,.AC.UK,EARNET,JANET,CDNNET
S: 200-Use the PATH command with "[email protected]" to get the
S: 200 ARPA-Internet mail address.
U: path [email protected]
S: 220 [email protected]
U: quit
S: 211 Bye bye.
S: (server closes connection)