smtp auth check

| | Comments (0)

[root@test root]# printf 'pank\0pank\0test' | mmencode
cGFuawBwYW5rAHRlc3Q=
[root @test root]# telnet localhost 25
telnet localhost 25
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
220 teco-ia.com.tw ESMTP Postfix
ehlo 0
250-teco-ia.com.tw
250-PIPELINING
250-SIZE 20971520
250-VRFY
250-ETRN
250-STARTTLS
250-AUTH LOGIN PLAIN DIGEST-MD5
250-AUTH=LOGIN PLAIN DIGEST-MD5
250-XVERP
250 8BITMIME
auth plain cGFuawBwYW5rAHRlc3Q=
235 Authentication successful <==如果出現這一行就表示你的 SMTP 已經運作正常
quit

(使用這個方法測試時, 用數字 0-7 開頭的密碼會認證錯誤, 原因不明.
而事實上, 使用上述密碼在 smtp auth 上是沒問題的)

ref.
http://pank.org/blog/archives/000170.html

Leave a comment

March 2009

Sun Mon Tue Wed Thu Fri Sat
1 2 3 4 5 6 7
8 9 10 11 12 13 14
15 16 17 18 19 20 21
22 23 24 25 26 27 28
29 30 31        

About this Entry

This page contains a single entry by Pank published on March 5, 2004 2:35 PM.

mldonkey was the previous entry in this blog.

fatal: no SASL authentication mechanisms is the next entry in this blog.

Find recent content on the main index or look in the archives to find all content.