telnet server1.example.com 25
Trying 192.168.0.113... Connected to server1.example.com. Escape character is '^]'. 220 server1.example.com ESMTP Postfix 表示 SMTP server回應給Client端 220的回應碼連接成功,即建立一個SMTP session。
helo server1.example.com
250 server1.example.com 用helo為雙方進行SMTP初始化傳輸。另外用 ehlo 為雙方進行ESMTP初始化傳輸
ehlo server1.example.com 250-server1.example.com 250-PIPELINING 250-SIZE 10240000 250-VRFY 250-ETRN 250-ENHANCEDSTATUSCODES 250-8BITMIME 250 DSN
mail from:[email protected] -->用mail from命令 表明寄件者 250 2.1.0 Ok rcpt to:[email protected] -->用rcpt to命令 表明收件者 250 2.1.5 Ok data -->用data開始傳輸內容 354 End data with <CR><LF>.<CR><LF> from:[email protected] -->信件表頭 寄件者的電子郵件 to:[email protected] -->信件表頭 收件者的電子郵件 subject:SMTP TEST -->信件主旨 date is new. -->信件內容 My name is Ali88. -->信件內容 . 這個點須在最後一行,按下Enter換行,結束信件的傳送動作
trivial-rewrite daemon
cleanup daemon