telnet

telnetでメールを確認する

サーバー名 mailsv.co.jp
IPアドレス 111.111.111.111
アカウント名 joe
パスワード joepass

[root@centos01 ~]#telnet mailsv 110


Trying 111.111.111.111 ...
    Connected to mail.ash.jp
      Escape character is '^]'.
      +OK UCB Pop server (version 1.831) at mail.ash.jp starting.

    USER joe
      +OK Password required for joe.

    PASS joepass
      +OK joe has 1 message(s) (400 octets).

    STAT
      +OK 1 400

    LIST
      +OK 1 messages (400 octets)
      1 400
      .

    RETR 1
      +OK 400 octets
      Received: from foo.or.jp (pc20.ash.jp [10.0.1.20])
          by mail.ash.jp (8.9.1/3.7W) with SMTP id NAA02891
          for joe@ash.jp; Tue, 29 Sep 1998 12:30:00 +0900 (JST)
      Date: Tue, 29 Sep 1998 12:30:00 +0900 (JST)
      From: user@foo.or.jp
      Message-Id: <199809290429.NAA02891@mail.ash.jp>
      Subjet: test

    Hello world.

    .

    DELE 1
      +OK Message 1 has been deleted.

    QUIT
      +OK Pop server at mail.ash.jp signing off.

telnetでメールを送信する

[root@centos01 ~]#telnet mailsv 25


Trying 111.111.111.111 ...
Connected to mailsv.co.jp
Escape character is '^]'.
220 mailsv.co.jp ESMTP Sendmail 8.9.1/3.7W; Tue, 29 Sep 1998 12:30:
13 +0900 (JST)


HELO mailsv
250 mailsv.co.jp Hello pc20.lo.ash.jp [10.0.1.20],
pleased to meet you


MAIL FROM: user@mailsv.co.jp
250 user@mailsv.co.jp... Sender ok


RCPT TO: joe@mailsv.co.jp
250 joe@mailsv.co.jp... Recipient ok


DATA
354 Enter mail, end with "." on a line by itself
From: user@mailsv.co.jp
Subjet: test
Hello world.
.
250 NAA02891 Message accepted for delivery


QUIT
221 mailsv.co.jp closing connection

  • 最終更新:2011-10-19 16:33:08

このWIKIを編集するにはパスワード入力が必要です

認証パスワード