I' ve created a auth_pop3 plugin to authenticate a user by verifying if his user and password can connect to a pop3 server. However, registering the plugin to auth-plain hook, the daemon offers AUTH PLAIN but always tell me "unrecognized command" when the client sends the "AUTH PLAIN <base64string>" command. In SMTP.pm file I detected that the function ehlo_respond does not set the "auth" command correctly to the permitted commands of the daemon. There is a patch attached. Please take a very good look at this, because I am starting with qpsmtpd.

Thanks.

--
Atenciosamente,

  Marco Aurelio Monteiro
   Analista de suporte
[EMAIL PROTECTED]
--------------------------------
Viaconnect - Conectividade Total
  Fone: +55 (54) 2101-5500

--- SMTP.pm.orig        Wed Jul 20 14:41:05 2005
+++ SMTP.pm     Wed Jul 20 14:41:25 2005
@@ -237,7 +237,7 @@
 
     if ( %auth_mechanisms ) {
         push @capabilities, 'AUTH '.join(" ",keys(%auth_mechanisms));    
-        $self->{_commands}->{'auth'} = "";
+        $self->{_commands}->{'auth'} = "1";
     }
 
     $self->respond(250,

Reply via email to