From: Benjamin Sommerfeld <benjamin.sommerfeld / hno.atmel.com>
Date: Wed, 21 May 2003 23:11:55 +0900

> i'm programming a Ruby mailing function which needs to authenticate on a SMTP 
> server via the "login" method (as it is called in KMAil)... the smtp server 
> doesn't accept nil, :plain or :cram_md5 as authentication methods....
> 
> can anybody help me out?

Try this patch for net/smtp.rb and use :login authtype.

--- smtp.rb.orig	Thu May 22 17:33:22 2003
+++ smtp.rb	Thu May 22 17:38:31 2003
@@ -352,6 +352,15 @@
       }
     end
 
+		# "LOGIN" authentication
+		def auth_login(user, secret)
+			atomic{
+				getok("AUTH LOGIN", ContinueCode)
+				getok([user].pack('m').chomp, ContinueCode)
+				getok([secret].pack('m').chomp)
+			}
+		end
+
     def mailfrom( fromaddr )
       atomic {
           getok sprintf('MAIL FROM:<%s>', fromaddr)