ABOUT ME

-

Today
-
Yesterday
-
Total
-
  • Mail SMTP
    Programming 2013. 10. 17. 15:05

    메일서버를 새로 장만했다던지.. 잘 동작하는지 확인하고 싶을때가 있다.


    내가 아는 HELO로 문을 두드렸더니.. 싫덴다.

    [root@localhost /home/willow]# telnet 192.168.xx.xxx 25

    Trying 192.168.xx.xxx...

    Connected to 192.168.xx.xxx.

    Escape character is '^]'.

    HELO 192.168.xx.xxx

    554 mail01.willow.co.kr ESMTP not accepting messages

    250 mail01.willow.co.kr Hello watchdog.co.kr [192.168.xx.xx], pleased to meet you

    MAIL FROM:willow@willow.co.kr

    550 5.0.0 Command rejected


    그래서 다른 방법

    [root@localhost  /home/willow]# telnet 192.168.xx.xxx 25

    Trying 192.168.xx.xxx...

    Connected to 192.168.xx.xxx.

    Escape character is '^]'.

    EHLO 192.168.xx.xxx

    220 mail01.willow.co.kr ESMTP Sendmail 8.14.3/8.14.3/Debian-9.4; Wed, 16 Oct 2013 19:07:32 +0900; (No UCE/UBE) logging access from: watchdog.co.kr(OK)-watchdog.co.kr [192.168.xx.xx]


    250-mail01.willow.co.kr Hello watchdog.co.kr [192.168.xx.xx], pleased to meet you

    250-ENHANCEDSTATUSCODES

    250-PIPELINING

    250-8BITMIME

    250-SIZE

    250-DSN

    250-ETRN

    250-AUTH DIGEST-MD5 CRAM-MD5

    250-DELIVERBY

    250 HELP

    MAIL FROM: willow@willow.co.kr

    250 2.1.0 willow@willow.co.kr... Sender ok

    RCPT TO: greenpine@willow.co.kr

    250 2.1.5 greenpine@willow.co.kr... Recipient ok

    DATA

    354 Enter mail, end with "." on a line by itself

    hi! 

    comend line mail text.

    .

    250 2.0.0 r9GA7WUM002960 Message accepted for delivery

    RSET

    250 2.0.0 Reset state

    QUIT

    221 2.0.0 mail01.willow.co.kr closing connection

    Connection closed by foreign host.


    성공~

    메일 제목은 Header로 정의해야 하나보다.



    + 구글링하다가 나온 문서 (카페글같다.)

    st1_SMTP.txt


    'Programming' 카테고리의 다른 글

    [shell script] Small Tip!  (0) 2013.11.27
    Zend Optimizer or Zend Guard  (0) 2013.10.16
    HTTP status codes (apache)  (0) 2013.04.10

    댓글

Designed by Tistory.