sendmail 테스트
#telnet localhost 25
HELP <- 도움말
HELO 메일서버
MAIL FROM:보내는사람
RCPT TO:받는사람
DATA
메일내용부분
. <- 이부분에서 맨마지막라인에 점(.)을 찍어준다.
QUIT
---------------------------
# telnet localhost 25
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
220 MY_SERVER ESMTP Sendmail 8.13.8+Sun/8.13.8; Thu, 16 Feb 2012 10:18:21 +0900 (KST)
HELO localhost
250 MY_SERVER Hello localhost [127.0.0.1], pleased to meet you
MAIL FROM:user1
250 2.1.0 user1... Sender ok
RCPT TO:user2
250 2.1.5 user2... Recipient ok
DATA
354 Enter mail, end with "." on a line by itself
this is test data
.
250 2.0.0 q1G1ILlI018663 Message accepted for delivery
quit
------------------------------
DATA 부분에는 아래의 사항을 기입할수 있음.
From: 보내는사람
To: 받는사람
Cc: 참조
Bcc: 숨은참조
Subject: 제목
Date: Thu, 16 Feb 2012 11:30:45 +0900
MIME-Version: 1.0
Content-Type: text/plain;
Charset="euc-kr"
내용
------------------------------
추가적인 사항.
# telnet localhost 25
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
220 MY_SERVER ESMTP Sendmail 8.13.8+Sun/8.13.8; Thu, 16 Feb 2012 09:56:00 +0900 (KST)
help
214-2.0.0 This is sendmail version 8.13.8+Sun
214-2.0.0 Topics:
214-2.0.0 HELO EHLO MAIL RCPT DATA
214-2.0.0 RSET NOOP QUIT HELP VRFY
214-2.0.0 EXPN VERB ETRN DSN STARTTLS
214-2.0.0 For more info use "HELP <topic>".
214-2.0.0 To report bugs in the implementation contact Sun Microsystems
214-2.0.0 Technical Support.
214-2.0.0 For local information send email to Postmaster at your site.
214 2.0.0 End of HELP info
help helo
214-2.0.0 HELO <hostname>
214-2.0.0 Introduce yourself.
214 2.0.0 End of HELP info
help ehlo
214-2.0.0 EHLO <hostname>
214-2.0.0 Introduce yourself, and request extended SMTP mode.
214-2.0.0 Possible replies include:
214-2.0.0 SEND Send as mail [RFC821]
214-2.0.0 SOML Send as mail or terminal [RFC821]
214-2.0.0 SAML Send as mail and terminal [RFC821]
214-2.0.0 EXPN Expand the mailing list [RFC821]
214-2.0.0 HELP Supply helpful information [RFC821]
214-2.0.0 TURN Turn the operation around [RFC821]
214-2.0.0 8BITMIME Use 8-bit data [RFC1652]
214-2.0.0 SIZE Message size declaration [RFC1870]
214-2.0.0 VERB Verbose [Allman]
214-2.0.0 CHUNKING Chunking [RFC1830]
214-2.0.0 BINARYMIME Binary MIME [RFC1830]
214-2.0.0 PIPELINING Command Pipelining [RFC1854]
214-2.0.0 DSN Delivery Status Notification [RFC1891]
214-2.0.0 ETRN Remote Message Queue Starting [RFC1985]
214-2.0.0 STARTTLS Secure SMTP [RFC2487]
214-2.0.0 ENHANCEDSTATUSCODES Enhanced status codes [RFC2034]
214-2.0.0 DELIVERBY Deliver By [RFC2852]
214 2.0.0 End of HELP info
help mail
214-2.0.0 MAIL From:<sender> [ <parameters> ]
214-2.0.0 Specifies the sender. Parameters are ESMTP extensions.
214-2.0.0 See "HELP DSN" for details.
214 2.0.0 End of HELP info
help rcpt
214-2.0.0 RCPT To:<recipient> [ <parameters> ]
214-2.0.0 Specifies the recipient. Can be used any number of times.
214-2.0.0 Parameters are ESMTP extensions. See "HELP DSN" for details.
214 2.0.0 End of HELP info
help data
214-2.0.0 DATA
214-2.0.0 Following text is collected as the message.
214-2.0.0 End with a single dot.
214 2.0.0 End of HELP info
help rset
214-2.0.0 RSET
214-2.0.0 Resets the system.
214 2.0.0 End of HELP info
help noop
214-2.0.0 NOOP
214-2.0.0 Do nothing.
214 2.0.0 End of HELP info
help quit
214-2.0.0 QUIT
214-2.0.0 Exit sendmail (SMTP).
214 2.0.0 End of HELP info
help vrfy
214-2.0.0 VRFY <recipient>
214-2.0.0 Verify an address. If you want to see what it aliases
214-2.0.0 to, use EXPN instead.
214 2.0.0 End of HELP info
help expn
214-2.0.0 EXPN <recipient>
214-2.0.0 Expand an address. If the address indicates a mailing
214-2.0.0 list, return the contents of that list.
214 2.0.0 End of HELP info
help verb
214-2.0.0 VERB
214-2.0.0 Go into verbose mode. This sends 0xy responses that are
214-2.0.0 not RFC821 standard (but should be) They are recognized
214-2.0.0 by humans and other sendmail implementations.
214 2.0.0 End of HELP info
help etrn
214-2.0.0 ETRN [ <hostname> | @<domain> | #<queuename> ]
214-2.0.0 Run the queue for the specified <hostname>, or
214-2.0.0 all hosts within a given <domain>, or a specially-named
214-2.0.0 <queuename> (implementation-specific).
214 2.0.0 End of HELP info
help dsn
214-2.0.0 MAIL From:<sender> [ RET={ FULL | HDRS} ] [ ENVID=<envid> ]
214-2.0.0 RCPT To:<recipient> [ NOTIFY={NEVER,SUCCESS,FAILURE,DELAY} ]
214-2.0.0 [ ORCPT=<recipient> ]
214-2.0.0 SMTP Delivery Status Notifications.
214-2.0.0 Descriptions:
214-2.0.0 RET Return either the full message or only headers.
214-2.0.0 ENVID Sender's "envelope identifier" for tracking.
214-2.0.0 NOTIFY When to send a DSN. Multiple options are OK, comma-
214-2.0.0 delimited. NEVER must appear by itself.
214-2.0.0 ORCPT Original recipient.
214 2.0.0 End of HELP info
help starttls
214-2.0.0 STARTTLS
214-2.0.0 Start TLS negotiation.
214 2.0.0 End of HELP info