March 05, 2004

smtp auth check

[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

Posted by pank at March 5, 2004 02:35 PM
Comments
Post a comment













Remember personal info?