[root@host ~]# telnet localhost 25
Trying 127.0.0.1...
Connected to host.testserver.com (127.0.0.1).
Escape character is '^]'.
220 host.testserver.com ESMTP Sendmail 8.13.1/8.13.1; Mon, 2 Jul 2007 10:03:05 +0800
ehlo ansenhuang
250-host.testserver.com Hello host.testserver.com [127.0.0.1], pleased to meet you
250-ENHANCEDSTATUSCODES
250-PIPELINING
250-8BITMIME
250-SIZE
250-DSN
250-ETRN
250-AUTH DIGEST-MD5 CRAM-MD5 LOGIN PLAIN
250-DELIVERBY
250 HELP
mail from:ansenhuang@insightcn.com
250 2.1.0
ansenhuang@insightcn.com... Sender ok
rcpt to:ansenhuang@126.com
250 2.1.5
ansenhuang@126.com... Recipient ok
data
354 Enter mail, end with "." on a line by itself
test
.
250 2.0.0 l62235SN026206 Message accepted for delivery
quit
221 2.0.0 host.testserver.com closing connection
Connection closed by foreign host.