telnetを使って動作の確認
[root@falcon21 ~]# telnet localhost 25 //telnet でローカルホスト25番にログイン
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
220 mail.falcon21.space ESMTP //220はサーバーが待ちうけ状態
421 4.4.2 mail.falcon21.space Error: timeout exceeded //しばらく、放置でタイムアウト
Connection closed by foreign host.
[root@falcon21 ~]# telnet localhost 25
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
220 mail.falcon21.space ESMTP
ehlo mx.falcon21.space
250-mail.falcon21.space
250-PIPELINING
250-SIZE 10485760
250-VRFY
250-ETRN
250-STARTTLS
250-AUTH PLAIN
250-ENHANCEDSTATUSCODES
250-8BITMIME
250 DSN
mail from: <hayato@falcon21.space>
250 2.1.0 Ok
rcpt to: <fff_kazuya@yahoo.co.jp)
250 2.1.5 Ok
data
354 End data with <CR><LF>.<CR><LF>
subject: MAIL TEST
This is test message of smtp. //メールの本文
. //メッセージの終了を知らせるにはドット".
250 2.0.0 Ok: queued as 7324E120C73
quit //セッションを切断
221 2.0.0 Bye
Connection closed by foreign host.
[root@falcon21 ~]#
[root@falcon21 ~]# telnet localhost 110
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
+OK Dovecot ready.
user hayato
+OK
pass subaru
+OK Logged in.
quit
+OK Logging out.
Connection closed by foreign host.
[root@falcon21 ~]#