Hi Aaron,

I did a little hacking in the openwebmail/shares/pop3mail.pl file, as well as 
the openwebmail/auth/auth_pop3.pl file.  I disabled the "auth login" method, 
and everything has started working.

My new question is why does dbmail only reply with a "." when I type "auth 
login"?  It basically is saying that it supports me typing "auth login", but 
does not support any methods of authentication.  At least that's what I 
gather from that response.  Here is the telnet transcript:

su-2.05b# telnet localhost 110
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
+OK DBMAIL pop3 server ready to rock 
<[EMAIL PROTECTED]>
auth login
+OK List of supported mechanisms
.
auth
+OK List of supported mechanisms
.

Below is what I would expect from a server that does not support this type of 
login method (ie qpopper):

su-2.05b# telnet localhost 8110
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
+OK ready
auth login
-ERR Unknown authentication mechanism: login
auth
+OK Supported SASL mechanisms:
X-NONE-SO-USE-APOP-OR-STLS
.


Is dbmail still rfc compliant even though there is this difference?

Anyhow, I found the issue I was running into...it's working now.  I'm happy 
as a pig in poop.

Thanks for the prompt reply,
Angus Jordan

--
Open WebMail Project (http://openwebmail.org)

> ------------------------------
> 
> Message: 8
> Date: Thu, 27 May 2004 22:39:57 -0000
> From: "Aaron Stone" <[EMAIL PROTECTED]>
> Subject: Re: [Dbmail-dev] Openwebmail / POP3 Auth errors
> To: "DBMAIL Developers Mailinglist" <dbmail-dev@dbmail.org>
> Message-ID: <[EMAIL PROTECTED]>
> 
> Looks like OpenWebMail is using a hashed password rather than the plaintext
> password you're trying through telnet. If you can get a network 
> sniff of the session, we can test more carefully what might be 
> breaking the auth process.
> 
> Aaron
> 
> Angus Jordan <[EMAIL PROTECTED]> said:
> 
> > Hello,
> >
> > I have just implemented dbmail 1.2.7b into my environment and it seems to
> > be working great.  Unfortunately, I've run into a show stopper while 
trying
> > to setup openwebmail to log into dbmail using pop3 authentication.  The
> > below is what shows up in the logfile when I've got debug turned to level 
5:
> >
> > dbmail/pop3d[6471]: PerformChildTask(): incoming connection from [x.x.x.x
> > (x.x.com)]
> > dbmail/pop3d[6471]: PerformChildTask(): client info init complete, calling
> > client
> > dbmail/pop3d[6471]: create_unique_id(): created:
> > a8c4489c98a10a5b861035d13a4dd765
> > dbmail/pop3d[6471]: pop3(): incoming buffer: [auth login]
> > dbmail/pop3d[6471]: pop3(): command issued :cmd [auth], value [login]
> > dbmail/pop3d[6471]: pop3(): command looked up as commandtype 12
> > dbmail/pop3d[6471]: pop3(): incoming buffer: [YWp0ZXN0MQ==]
> > dbmail/pop3d[6471]: pop3(): command looked up as commandtype 15
> > dbmail/pop3d[6471]: pop3_error(): an invalid command was issued
> > dbmail/pop3d[6471]: pop3(): incoming buffer: [YWp0ZXN0MQ==]
> > dbmail/pop3d[6471]: pop3(): command looked up as commandtype 15
> > dbmail/pop3d[6471]: pop3_error(): an invalid command was issued
> > dbmail/pop3d[6471]: pop3(): incoming buffer: [user ajtest1]
> > dbmail/pop3d[6471]: pop3(): command issued :cmd [user], value [ajtest1]
> > dbmail/pop3d[6471]: pop3(): command looked up as commandtype 1
> > dbmail/pop3d[6471]: pop3_handle_connection(): user ajtest1 logging out
> > [messages=0, octets=0]
> > dbmail/pop3d[6471]: PerformChildTask(): client handling complete, closing
> > streams
> > dbmail/pop3d[6471]: PerformChildTask(): connection closed
> > dbmail/pop3d[6471]: PerformChildTask(): waiting for connection
> >
> > Here is what a successful manual connection from telnet looks like:
> >
> > dbmail/pop3d[6470]: PerformChildTask(): incoming connection from [x.x.x.x
> > (x.x.com)]
> > dbmail/pop3d[6470]: PerformChildTask(): client info init complete, calling
> > client handler
> > dbmail/pop3d[6470]: create_unique_id(): created:
> > e5a6e3dcd18ae5e26a2931f7329516b5
> > dbmail/pop3d[6470]: pop3(): incoming buffer: [user ajtest1]
> > dbmail/pop3d[6470]: pop3(): command issued :cmd [user], value [ajtest1]
> > dbmail/pop3d[6470]: pop3(): command looked up as commandtype 1
> > dbmail/pop3d[6470]: pop3(): incoming buffer: [pass xxxxxxxx]
> > dbmail/pop3d[6470]: pop3(): command issued :cmd [pass], value [ajtest1]
> > dbmail/pop3d[6470]: pop3(): command looked up as commandtype 2
> > dbmail/pop3d[6470]: __auth_query(): executing query [SELECT user_idnr,
> > passwd, encryption_type FROM users WHERE userid = 'ajtest1']
> > dbmail/pop3d[6470]: auth_validate(): validating using MD5 digest 
comparison
> > dbmail/pop3d[6470]: __auth_query(): executing query [UPDATE users SET
> > last_login = '2004-05-27 12:28:00' WHERE user_idnr = 28]
> > dbmail/pop3d[6470]: pop3(): validation OK, building a session for user
> > [ajtest1]
> > dbmail/pop3d[6470]: db_query(): executing [SELECT mailbox_idnr FROM
> > mailboxes WHERE name='INBOX' AND owner_idnr=28]
> > dbmail/pop3d[6470]: db_query(): executing [SELECT * FROM messages WHERE
> > mailbox_idnr=28 AND status<2 AND unique_id!="" order by status ASC]
> > dbmail/pop3d[6470]: pop3(): user ajtest1 logged in [messages=0, octets=0]
> > dbmail/pop3d[6470]: pop3(): incoming buffer: [quit]
> > dbmail/pop3d[6470]: pop3(): command looked up as commandtype 0
> > dbmail/pop3d[6470]: pop3_handle_connection(): user ajtest1 logging out
> > [messages=0, octets=0]
> > dbmail/pop3d[6470]: PerformChildTask(): client handling complete, closing
> > streams
> > dbmail/pop3d[6470]: PerformChildTask(): connection closed
> >
> >
> >
> > Does anyone have any ideas for me?  I'd like to continue using what my
> > users are expecting, instead of switching to a new webmail solution.
> >
> > I look forward to hearing any responses.
> >
> > Thank you,
> > Angus Jordan
> >
> > _______________________________________________
> > Dbmail-dev mailing list
> > Dbmail-dev@dbmail.org
> > http://twister.fastxs.net/mailman/listinfo/dbmail-dev
> >
> 
> --
> 
> ------------------------------
> 
> _______________________________________________
> Dbmail-dev mailing list
> Dbmail-dev@dbmail.org
> http://twister.fastxs.net/mailman/listinfo/dbmail-dev
> 
> End of Dbmail-dev Digest, Vol 3, Issue 39
> *****************************************

Reply via email to