Robin,

Can you send a copy of your config/plugins and any custom auth/ plugins you are using?

The patch is quite simple, I'd be quite surprised if it turns out to be a bug in the code - more likely the patch (me) or your auth plugins made some bad assumption. I just tested John's patch, and it works the same as my own does on my testbed server. My suspicion is that the problem is something about the way you are registering your auth hooks.

Cheers,
Brian

PS - You're going to want to change your password, as you just sent it unencrypted (just encoded in Base64) to a list :)

On Sep 22, 2006, at 5:25 PM, Robin Bowes wrote:

Robin Bowes wrote:
John Peacock wrote:
Brian Szymanski wrote:
Summary:
qpsmtpd tries to get authentication information for methods which it
has no registered hooks.
To follow up, I committed a change based on your patch, but with the
%auth_mechanisms has as a package global as I discussed.

John,

This has broken my smtpauth mechanism. :(

I'm not sure if it's because my MUA (Thunderbird) was doing something
wrong before and by some chance it "just worked" or that your patch has
broken something.

I've just reverted to r659 and smtp auth works OK.

Would you like me to provide more information to debug this?

I'm using this command to test:

swaks --to [EMAIL PROTECTED] -tls -a -au [EMAIL PROTECTED]

Here's the output from r659:

=== Trying batmobile.robinbowes.com:25...
=== Connected to batmobile.robinbowes.com.
<-  220 batmobile.robinbowes.com ESMTP qpsmtpd 0.33-dev ready; send us
your mail, but not your spam.
 -> EHLO batmobile.robinbowes.com
<- 250-batmobile.robinbowes.com Hi batmobile.robinbowes.com [192.168.1.60]
<-  250-PIPELINING
<-  250-8BITMIME
<-  250-STARTTLS
<-  250 AUTH PLAIN LOGIN
 -> STARTTLS
<-  220 Go ahead with TLS
=== TLS started w/ cipher AES256-SHA
 ~> EHLO batmobile.robinbowes.com
<~ 250-batmobile.robinbowes.com Hi batmobile.robinbowes.com [192.168.1.60]
<~  250-PIPELINING
<~  250-8BITMIME
<~  250 AUTH PLAIN LOGIN
 ~> AUTH PLAIN AHJvYmluQHJvYmluYm93ZXMuY29tAHhrZXM1VA==
<~  235 Authentication successful for [EMAIL PROTECTED] -
authcheckpassword
 ~> MAIL FROM:<[EMAIL PROTECTED]>
<~ 250 <[EMAIL PROTECTED]>, sender OK - how exciting to get
mail from you!
 ~> RCPT TO:<[EMAIL PROTECTED]>
<~  250 <[EMAIL PROTECTED]>, recipient ok
 ~> DATA
<~  354 go ahead
 ~> Date: Fri, 22 Sep 2006 22:16:18 +0100
 ~> To: [EMAIL PROTECTED]
 ~> From: [EMAIL PROTECTED]
 ~> Subject: test Fri, 22 Sep 2006 22:16:18 +0100
 ~> X-Mailer: swaks v20050709.1 jetmore.org/john/code/#swaks
 ~>
 ~> This is a test mailing
 ~>
 ~> .
<~  250 Queued! 1158959791 qp 6630 <>
 ~> QUIT
<~ 221 batmobile.robinbowes.com closing connection. Have a wonderful day.


Now, same command on 660:

=== Trying batmobile.robinbowes.com:25...
=== Connected to batmobile.robinbowes.com.
<-  220 batmobile.robinbowes.com ESMTP qpsmtpd 0.33-dev ready; send us
your mail, but not your spam.
 -> EHLO batmobile.robinbowes.com
<- 250-batmobile.robinbowes.com Hi batmobile.robinbowes.com [192.168.1.60]
<-  250-PIPELINING
<-  250-8BITMIME
<-  250-STARTTLS
<-  250 AUTH PLAIN LOGIN
 -> STARTTLS
<-  220 Go ahead with TLS
=== TLS started w/ cipher AES256-SHA
 ~> EHLO batmobile.robinbowes.com
<~ 250-batmobile.robinbowes.com Hi batmobile.robinbowes.com [192.168.1.60]
<~  250-PIPELINING
<~  250-8BITMIME
<~  250 AUTH PLAIN LOGIN
 ~> AUTH PLAIN AHJvYmluQHJvYmluYm93ZXMuY29tAHhrZXM1VA==
<~* 504 Unimplemented authentification mechanism: plain
 ~> AUTH LOGIN
<~* 504 Unimplemented authentification mechanism: login
*** No authentication type succeeded
 ~> QUIT
<~ 221 batmobile.robinbowes.com closing connection. Have a wonderful day.
=== Connection closed by foreign host.


Is my setup broken or is the latest revision buggy?

R.


---
Brian Szymanski
[EMAIL PROTECTED]


Reply via email to