Re: [vchkpw] Qmail SMTP AUTH + vchkpw on 64 bit...
Am Mittwoch, 25. August 2004 19:20 schrieb Jacob S.: > Is an strace from a working 64 bit installation of any help? Don't know. It's on Tom Collins to decide whether he wants it or not. > > I'm unable to duplicate this bug on a new vpopmail 5.4.5 installation > using the qmailrocks.org toaster on a Sun Ultra 10 with a 64bit Sparc > processor. Hmmm... Seems there are differences in 64bit Linux and 64bit Solaris. As I found out, it makes no difference which LINUX distribution is used. I heard from people who have the same problem on SuSE where I have it on Gentoo... Due to the fact that somebody send a 'shutdown -h' to me (I have been ill all the week), I'll do the right strace for Tom right now. Then we hopefully will see... Greetings Tobias
Re: [vchkpw] Qmail SMTP AUTH + vchkpw on 64 bit...
On Thu, 19 Aug 2004 10:36:47 -0700 Tom Collins <[EMAIL PROTECTED]> wrote: > Could someone with this problem use strace (or ptrace?) to get a trace > > of what happens when vchkpw is called? > > It should be as easy as adding: "/usr/bin/strace -ff -o > /tmp/vchkpw.dump" right before "/home/vpopmail/bin/vchkpw" in the > qmail-smtpd/run file. > > Attempt a SMTP AUTH connection, and then send me a copy of the > /tmp/vchkpw.dump file and I'll try to isolate the source of the > problem. Is an strace from a working 64 bit installation of any help? I'm unable to duplicate this bug on a new vpopmail 5.4.5 installation using the qmailrocks.org toaster on a Sun Ultra 10 with a 64bit Sparc processor. Jacob -- GnuPG Key: 1024D/16377135 Random .signature #9: Going from DOS to Linux is like trading a glider for an F117. pgpH8JE2X06ii.pgp Description: PGP signature
Re: [vchkpw] Qmail SMTP AUTH + vchkpw on 64 bit...
Am Donnerstag, 19. August 2004 19:36 schrieb Tom Collins: > Could someone with this problem use strace (or ptrace?) to get a trace > of what happens when vchkpw is called? > > It should be as easy as adding: "/usr/bin/strace -ff -o > /tmp/vchkpw.dump" right before "/home/vpopmail/bin/vchkpw" in the > qmail-smtpd/run file. > > Attempt a SMTP AUTH connection, and then send me a copy of the > /tmp/vchkpw.dump file and I'll try to isolate the source of the > problem. I'll do it later on today (need some interesting work for Friday afternoon :-) ). If I remember right, we found out, that something went totally wrong concerning hashes and the declaration of their variables (which seem to be different in 32bit and 64 bit - short integer!). For the fact that I am not a coder, I just try to remember what Erwin Hoffmann and some other people tried to explain me after they did some debugging on my machine. Like mentioned above, I'll post the output later. Greetings Tobias
Re: [vchkpw] Qmail SMTP AUTH + vchkpw on 64 bit...
I can do this over the weekend, but I can't right now since the system I'm having troubles on is a production server. I'll get back to you though. On Thu, 19 Aug 2004 10:36:47 -0700, Tom Collins <[EMAIL PROTECTED]> wrote: > Could someone with this problem use strace (or ptrace?) to get a trace > of what happens when vchkpw is called? > > It should be as easy as adding: "/usr/bin/strace -ff -o > /tmp/vchkpw.dump" right before "/home/vpopmail/bin/vchkpw" in the > qmail-smtpd/run file. > > Attempt a SMTP AUTH connection, and then send me a copy of the > /tmp/vchkpw.dump file and I'll try to isolate the source of the > problem. > > -- > Tom Collins - [EMAIL PROTECTED] > QmailAdmin: http://qmailadmin.sf.net/ Vpopmail: http://vpopmail.sf.net/ > Info on the Sniffter hand-held Network Tester: http://sniffter.com/ > >
Re: [vchkpw] Qmail SMTP AUTH + vchkpw on 64 bit...
Could someone with this problem use strace (or ptrace?) to get a trace of what happens when vchkpw is called? It should be as easy as adding: "/usr/bin/strace -ff -o /tmp/vchkpw.dump" right before "/home/vpopmail/bin/vchkpw" in the qmail-smtpd/run file. Attempt a SMTP AUTH connection, and then send me a copy of the /tmp/vchkpw.dump file and I'll try to isolate the source of the problem. -- Tom Collins - [EMAIL PROTECTED] QmailAdmin: http://qmailadmin.sf.net/ Vpopmail: http://vpopmail.sf.net/ Info on the Sniffter hand-held Network Tester: http://sniffter.com/
Re: [vchkpw] Qmail SMTP AUTH + vchkpw on 64 bit...
Success! On Thu, 19 Aug 2004 09:45:38 -0600, Matthew Walker <[EMAIL PROTECTED]> wrote: > Thank you /so/ much for this information! I'll be attempting this fix > over the next hour or two. > > > > On Thu, 19 Aug 2004 10:10:04 +0200, Linux-Guru <[EMAIL PROTECTED]> wrote: > > Am Mittwoch, 18. August 2004 23:22 schrieb Matthew Walker: > > > I saw this was discussed a month or two ago, but no conclusion seemed > > > to be reached. > > I have been the one who had this problem. > > We reached some kind of conclusion (see below). > > > > > > > > I have qmail 1.03, and vpopmail 5.4 installed, and everything works > > > except for SMTP AUTH. I get segfaults or bad user errors, depending on > > > whether or not vchkpw is owned by root or by the vpopmail user. > > > > I tried also all these combinations with no success. > > > > > > > > Here's a transcript from a session where vchkpw was owned by vpopmail. > > > When it's owned by root, the last line changes to simply say the > > > authentication failed. > > > > > [...] > > > > > 454 oops, problem with child and I can't auth (#4.3.0) > > > > Exactly! > > I wrote a bug-report, but nobody seemed to be interested. (I will have a quick > > look into the tracker when I've finished this mail, but I don't think > > anything happened). > > > > Erwin Hoffmann (www.fehcom.de) spent some time looking through the code. His > > personal summary was that the easiest way would be to rewrite the whole > > vchkpw because there seems to be quite much unused and/or useless (and > > buggy(?)) code which makes it really hard to do a debug of this problem. > > > > But: We found a workaround! > > 1. Take vpopmail in any version of your choice, configure, compile and install > > it. > > 2. Take vpopmail-5.2.2, configure and compile it. Do NOT install it! > > 3. Rename your current '/var/vpopmail/bin/vchkpw' in whatever you want. > > 4. Copy the vchkpw-binary from your vpopmail-5.2.2-directory into > > '/var/vpopmail/bin/' > > 5. Test it. See that it works. Have fun. > > There is only one disadvantage: CRAM-MD5 doesn't work with 5.2.2. > > Everything else will work fine (I am running it against MySQL without any > > problems). > > > > HTH > > > > Greetings > > > > Tobias > > >
Re: [vchkpw] Qmail SMTP AUTH + vchkpw on 64 bit...
Thank you /so/ much for this information! I'll be attempting this fix over the next hour or two. On Thu, 19 Aug 2004 10:10:04 +0200, Linux-Guru <[EMAIL PROTECTED]> wrote: > Am Mittwoch, 18. August 2004 23:22 schrieb Matthew Walker: > > I saw this was discussed a month or two ago, but no conclusion seemed > > to be reached. > I have been the one who had this problem. > We reached some kind of conclusion (see below). > > > > > I have qmail 1.03, and vpopmail 5.4 installed, and everything works > > except for SMTP AUTH. I get segfaults or bad user errors, depending on > > whether or not vchkpw is owned by root or by the vpopmail user. > > I tried also all these combinations with no success. > > > > > Here's a transcript from a session where vchkpw was owned by vpopmail. > > When it's owned by root, the last line changes to simply say the > > authentication failed. > > > [...] > > > 454 oops, problem with child and I can't auth (#4.3.0) > > Exactly! > I wrote a bug-report, but nobody seemed to be interested. (I will have a quick > look into the tracker when I've finished this mail, but I don't think > anything happened). > > Erwin Hoffmann (www.fehcom.de) spent some time looking through the code. His > personal summary was that the easiest way would be to rewrite the whole > vchkpw because there seems to be quite much unused and/or useless (and > buggy(?)) code which makes it really hard to do a debug of this problem. > > But: We found a workaround! > 1. Take vpopmail in any version of your choice, configure, compile and install > it. > 2. Take vpopmail-5.2.2, configure and compile it. Do NOT install it! > 3. Rename your current '/var/vpopmail/bin/vchkpw' in whatever you want. > 4. Copy the vchkpw-binary from your vpopmail-5.2.2-directory into > '/var/vpopmail/bin/' > 5. Test it. See that it works. Have fun. > There is only one disadvantage: CRAM-MD5 doesn't work with 5.2.2. > Everything else will work fine (I am running it against MySQL without any > problems). > > HTH > > Greetings > > Tobias >
Re: [vchkpw] Qmail SMTP AUTH + vchkpw on 64 bit...
Am Mittwoch, 18. August 2004 23:22 schrieb Matthew Walker: > I saw this was discussed a month or two ago, but no conclusion seemed > to be reached. I have been the one who had this problem. We reached some kind of conclusion (see below). > > I have qmail 1.03, and vpopmail 5.4 installed, and everything works > except for SMTP AUTH. I get segfaults or bad user errors, depending on > whether or not vchkpw is owned by root or by the vpopmail user. I tried also all these combinations with no success. > > Here's a transcript from a session where vchkpw was owned by vpopmail. > When it's owned by root, the last line changes to simply say the > authentication failed. > [...] > 454 oops, problem with child and I can't auth (#4.3.0) Exactly! I wrote a bug-report, but nobody seemed to be interested. (I will have a quick look into the tracker when I've finished this mail, but I don't think anything happened). Erwin Hoffmann (www.fehcom.de) spent some time looking through the code. His personal summary was that the easiest way would be to rewrite the whole vchkpw because there seems to be quite much unused and/or useless (and buggy(?)) code which makes it really hard to do a debug of this problem. But: We found a workaround! 1. Take vpopmail in any version of your choice, configure, compile and install it. 2. Take vpopmail-5.2.2, configure and compile it. Do NOT install it! 3. Rename your current '/var/vpopmail/bin/vchkpw' in whatever you want. 4. Copy the vchkpw-binary from your vpopmail-5.2.2-directory into '/var/vpopmail/bin/' 5. Test it. See that it works. Have fun. There is only one disadvantage: CRAM-MD5 doesn't work with 5.2.2. Everything else will work fine (I am running it against MySQL without any problems). HTH Greetings Tobias
[vchkpw] Qmail SMTP AUTH + vchkpw on 64 bit...
I saw this was discussed a month or two ago, but no conclusion seemed to be reached. I have qmail 1.03, and vpopmail 5.4 installed, and everything works except for SMTP AUTH. I get segfaults or bad user errors, depending on whether or not vchkpw is owned by root or by the vpopmail user. Here's a transcript from a session where vchkpw was owned by vpopmail. When it's owned by root, the last line changes to simply say the authentication failed. 220 domain.com ESMTP EHLO domain.net 250-domain.com 250-AUTH LOGIN PLAIN 250-AUTH=LOGIN PLAIN 250-SIZE 0 250-PIPELINING 250 8BITMIME AUTH LOGIN 334 VXNlcm5hbWU6 dXNlcm5hbWVAZG9tYWluLmNvbQ== 334 UGFzc3dvcmQ6 cGFzc3dvcmQ= 454 oops, problem with child and I can't auth (#4.3.0)