telnetでsmtp通信

赤の太字が入力内容。

残りがサーバからの応答。

$ telnet SMTPサーバ 25
Trying SMTPサーバIP…
Connected to SMTPサーバ (SMTPサーバIP).
Escape character is ‘^]’.
220 SMTPサーバホスト ESMTP Postfix
HELO SMTPサーバホスト
250 SMTPサーバホスト
MAIL FROM: foo@example.com
250 Ok
RCPT TO: foo@example.com
250 Ok
DATA
354 End data with <CR><LF>.<CR><LF>
To:foo@example.com
Subject: smtp send mail test
From:foo@example.com

本文入力
<ENTER>
.<ENTER>

250 Ok: queued as 9DF5992F0C

Advertisements
Tagged with: , ,
Posted in web

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Archives
%d bloggers like this: