• 구름많음동두천 27.7℃
  • 흐림강릉 29.4℃
  • 구름조금서울 29.1℃
  • 구름조금대전 30.2℃
  • 맑음대구 32.3℃
  • 연무울산 29.4℃
  • 맑음광주 31.6℃
  • 구름조금부산 26.6℃
  • 구름조금고창 32.1℃
  • 맑음제주 29.6℃
  • 흐림강화 26.9℃
  • 구름많음보은 28.2℃
  • 구름조금금산 30.3℃
  • 구름많음강진군 30.8℃
  • 구름조금경주시 32.9℃
  • 구름조금거제 28.1℃
기상청 제공

sendmail 발송 테스트(센드메일)

센드메일 발송 테스트(sendmail)

root@web:/usr/sbin# telnet localhost 25
Trying 127.0.0.1...
Connected to localhost.localdomain (127.0.0.1).
Escape character is '^]'.
220 aaa.com ESMTP Sendmail 8.13.1/8.13.1; Tue, 8 Mar 2011 15:41:47 +0900
mail from:aaa@aaa.com
250 2.1.0  aaa@aaa.com... Sender ok
rcpt to:aaa@aaa.com
250 2.1.5 aaa@aaa.com... Recipient ok

data
354 go ahead
Return-Path: test@mail.com
From: TEST <test@mail.com>
To:<test@mail.com>
Subject:  제목
Content-Type: text/html; chareset=euc-kr
Content-Transfer-Encoding: base64
354 Enter mail, end with "." on a line by itself
테스트메일발송
.

250 2.0.0 p286flt3014278 Message accepted for delivery
quit
221 2.0.0 aaa.com closing connection
Connection closed by foreign host.