GMAIL SMTP Relay Test using openssl(Windows Environment)
텔넷을 사용하여 SMTP 통신 테스트 방법 How to send email using simple SMTP commands via Gmail? 윈도우 openssl 설치 OpenSSL for Windows: Download Command 창을 열고 다운받은 openssl 의 bin 폴더에 접근한다. 다음을 실행
1 |
openssl s_client -starttls smtp -connect smtp.gmail.com:587 -crlf -ign_eof |
또는
1 |
openssl s_client -connect smtp.gmail.com:465 -crlf -ign_eof |
그리고 다음으로 mail to, rcpt to, Data 명령어를 이용해 메일을 작성하여 테스트 메일 발송
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 |
... 220 mx.google.com ESMTP m46sm11546481eeh.9 EHLO localhost 250-mx.google.com at your service, [1.2.3.4] 250-SIZE 35882577 250-8BITMIME 250-AUTH LOGIN PLAIN XOAUTH 250 ENHANCEDSTATUSCODES AUTH PLAIN AG5pY2UudHJ5QGdtYWlsLmNvbQBub2l0c25vdG15cGFzc3dvcmQ= 235 2.7.0 Accepted MAIL FROM: <bluecor0@gmail.com> 250 2.1.0 OK m46sm11546481eeh.9 rcpt to: <togoforward@testserver.com> 250 2.1.5 OK m46sm11546481eeh.9 DATA 354 Go ahead m46sm11546481eeh.9 Subject: it works yay! . 250 2.0.0 OK 1339757532 m46sm11546481eeh.9 quit 221 2.0.0 closing connection m46sm11546481eeh.9 read:errno=0 |
2,217 total views, 4 views… Read More »
2,217 total views, 4 views today