sendmail 접속방법과 sendmail전용명령어
작성자 정보
- 관리자 작성
- 작성일
컨텐츠 정보
- 2,400 조회
- 0 추천
- 목록
본문
sendmail 접속방법과 sendmail전용명령어
지금까지는 sendmail에 대한 소개와 설치방법 그리고 실행/종료/재시작하는 방법들에 대해서 알아보았다.
이제 sendmail이 정상적으로 작동하는가의 여부를 확인해보도록 하겠다.
즉 실제 sendmail데몬은 실행되어 있지만 메일 송신이 안된다라고 할 때에 다음과 같은 방법으로 이를 확인할 수 있다.
[root@sulinux ~]#telnet 192.168.0.250 25 Trying 192.168.0.250... Connected to sulinux.net (192.168.0.250). Escape character is '^]'. 220 sulinux.net ESMTP Sendmail 8.14.2/8.14.2; Thu, 7 May 2009 01:34:51 +0900 HELP
214-2.0.0 This is sendmail 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 AUTH 214-2.0.0 STARTTLS 214-2.0.0 For more info use "HELP <topic>". 214-2.0.0 To report bugs in the implementation see 214-2.0.0 http://www.sendmail.org/email-addresses.html 214-2.0.0 For local information send email to Postmaster at your site. 214 2.0.0 End of HELP info QUIT
221 2.0.0 sulinux.net closing connection Connection closed by foreign host. [root@sulinux ~]# |
위의 예에서 HELP라는 명령어와 QUIT라는 명령어는 필자가 직접 입력한 것이다.
그리고 첫번째 "telnet 192.168.0.250 25"은 sendmail에 접속하기위해 192.168.0.250의 25번 포트(SMTP포트)로 접속을 시도한 것이다.
만약 접속을 시도하는 서버에 도메인이 설정되어 있다면 IP주소대신 도메인을 사용해도 동일한 접속이 가능하다.
sendmail 데몬이 실행된 상태의 서버라면 이와같은 방법을 사용하여 로컬뿐아니라 원격지서버로도 접속이 가능하다.
접속한 상태에서 "HELP"라는 명령어는 접속상태에서 사용 가능한 sendmail자체명령어들과 간단한 도움말을 보여준다.
그리고 sendmail에 접속한 상태에서 sendmail의 특정명령어에 대한 도움말을 확인하고자 한다면 다음과 같이 “HELP 명령어”라고 하면된다.
[root@sulinux ~]#telnet 192.168.0.250 25 Trying 192.168.0.250... Connected to sulinux.net (192.168.0.250). Escape character is '^]'. 220 sulinux.net ESMTP Sendmail 8.14.2/8.14.2; Thu, 7 May 2009 01:35:45 +0900 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 QUIT
221 2.0.0 sulinux.net closing connection Connection closed by foreign host. [root@sulinux ~]# |
즉 위의 예는 sendmail의 전용명령어인 RCPT라는 명령어에 대한 도움말을 확인한 것이다.
그리고 sendmail에 접속한 상태에서 빠져나오려면 “QUIT”를 실행하면 sendmail연결을 종료하고 다시 쉘로 빠져나온다.
관련자료
-
이전
-
다음