터미널에서 SMTP 테스트 방법

입질쾌감 물때표

텔넷으로 SMTP 테스트

[root@tcb4332 _default]# telnet localhost 25

mail from:<jwbae@domain.com>
250 2.1.0 <jwbae@domain.com>... Sender ok
rcpt to:<jwbae@domain.com>
250 2.1.5 <jwbae@domain.com>... Recipient ok

data

내용입니다.
.

@@ 마지막에 .을 반드시 써야 한다.
mail 클라이언트로 테스트

[root@piwik-dev tmp]# mail -v root@localhost
Subject: Test
Hello world
Cc: <Ctrl+D>

root@localhost... Connecting to [127.0.0.1] via relay...
220 piwik-dev.example.com ESMTP Sendmail 8.13.8/8.13.8; Thu, 23 Aug 2012 10:49:40 -0400
>>> EHLO piwik-dev.example.com
250-piwik-dev.example.com Hello localhost.localdomain [127.0.0.1], pleased to meet you
250-ENHANCEDSTATUSCODES
250-PIPELINING
250-8BITMIME
250-SIZE
250-DSN
250-ETRN
250-DELIVERBY
250 HELP
>>> MAIL From:<root@piwik-dev.example.com> SIZE=46
250 2.1.0 <root@piwik-dev.example.com>... Sender ok
>>> RCPT To:<root@piwik-dev.example.com>
>>> DATA
250 2.1.5 <root@piwik-dev.example.com>... Recipient ok
354 Enter mail, end with "." on a line by itself
>>> .
250 2.0.0 q7NEneju002633 Message accepted for delivery
root@localhost... Sent (q7NEneju002633 Message accepted for delivery)
Closing connection to [127.0.0.1]
>>> QUIT
221 2.0.0 piwik-dev.example.com closing connection

답글 남기기

이메일 주소는 공개되지 않습니다. 필수 필드는 *로 표시됩니다