Re: [vchkpw] Fw: [Courier-imap] chdir username: No such file or directory
On Sun, 26 Sep 2004 22:31:49 +1000, Michael Bowe wrote: DEBUG_LOGIN=2. Then restart your courier-imap daemon. Then look in your /var/log/maillog. This is an example of an entry from my logs : [...] Jeremy, how does this compare with your system? I have slightly obfuscated the email address and password. Connection, ip=[68.80.68.156] LOGIN: DEBUG: ip=[68.80.68.156], command=LOGIN LOGIN: DEBUG: ip=[68.80.68.156], [EMAIL PROTECTED] LOGIN: DEBUG: ip=[68.80.68.156], password=blah authvchkpw: starting client module authvchkpw: [EMAIL PROTECTED], sysuserid=1010, sysgroupid=1010, homedir=jeremy, [EMAIL PROTECTED], fullname=null, maildir=null, quota=null, options=null authvchkpw: clearpasswd=null, passwd=zfhdrFE4797Xs password matches successfully chdir jeremy: No such file or directory And the corresponding vuserinfo shows : goofy ~vpopmail/bin/vuserinfo [EMAIL PROTECTED] name: jeremy passwd: zfhdrFE4797Xs clear passwd: blah uid:1 gid:0 flags: 0 gecos: jeremy limits: No user limits set. dir: /home/vpopmail/domains/jeremykister.com/jeremy quota: 104857600S usage: 5% last auth: Tue Sep 28 15:18:05 2004 last auth ip: imap -- Jeremy Kister http://jeremy.kister.net/
Re: [vchkpw] Fw: [Courier-imap] chdir username: No such file or directory
I had the same problem that's why I got back to my 1.7 version of Courier which works fine for me. Remo - Original Message - From: Jeremy Kister [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Saturday, September 25, 2004 10:00 PM Subject: Re: [vchkpw] Fw: [Courier-imap] chdir username: No such file or directory On Saturday, September 25, 2004 8:08 PM, Tom Collins wrote: an auth module. Make sure that you're configuring it to use authvchkpw and nothing else. yep - my configure script was listed in my previous email - only authvchkpw is enabled. I've got a hunch that there is an incompatibility between the newer vpopmail and courier's authvchkpw I compiled courier-imap 2.2.0 on a Solaris 2.9 box, with vpopmail 5.2.1. All IMAP functions behaved as expected. I took the authvchkpw binary from the 2.9 box, and copied it over to my 2.7 box, with vpopmail 5.4.6 CourierIMAP now seems happy. I'm surprised no one else has run into this. Is there anyone out there running vpopmail 5.4.x and courier-imap with authvchkpw ? This will be cross-posted to the courier-imap list, just to let Sam (et al) know about the possible incompatibility. Jeremy Kister http://jeremy.kister.net/
Re: [vchkpw] Fw: [Courier-imap] chdir username: No such file or directory
- Original Message - From: Tom Collins [EMAIL PROTECTED] On Sep 25, 2004, at 9:00 PM, Jeremy Kister wrote: I've got a hunch that there is an incompatibility between the newer vpopmail and courier's authvchkpw To test your theory, try vpopmail 5.4.0. I know that Michael Bowe worked on the vpopmail code in courier-imap, so I don't see any reason for the latest builds to not work. Yes earlier this year I rewrote the vchkpw code that is included in courier-imap. The idea here was to fix some broken functionality and to also close some security issues. My changes were included in the v3.0.0 release of courier-imap. I use vchkpw 5.4.x and courier-imap-3.0.x on my production server and haven't seen the problem you describe. To make sure something hadn't slipped by, I just updated my server to the latest (5.4.7+3.0.8) and ran it in a few different combinations eg with/without roaming users, with/without authdaemon.. Still couldn't duplicate your problem. I know where in the code your problem is occurring. vchkpw authentication is handed in the courier-imap source primarily by authlib/authvchkpw.c. In this file, once a user has been successfully auth'ed, courier-imap executes this function : authsuccess(a-homedir, 0, a-sysuserid, a-sysgroupid, a-address, a-fullname); authsuccess() switches to the supplied user/group and then does this : if (chdir(homedir)) { fprintf(stderr, chdir \%s\: %s\n, homedir, strerror(errno)); authexit(1); } So, for some reason your homedir field just contains username rather than the full path to the user's dir. To try and get to the bottom of this, I would suggest that you edit your imapd file (/usr/local/courier-imap/etc/imapd or similar), and set DEBUG_LOGIN=2. Then restart your courier-imap daemon. Then look in your /var/log/maillog. This is an example of an entry from my logs : Sep 26 22:25:30 reef imapd: authvchkpw: [EMAIL PROTECTED], sysuserid=89, sysgroupid=89, homedir=/home/vpopmail/domains/1/pipeline.com.au/X/mbowe, [EMAIL PROTECTED], fullname=Michael Bowe, maildir=null, quota=null, options=null Note how the homedir contains the full path to the user dir. And the corresponding vuserinfo shows : [EMAIL PROTECTED] etc]# vuserinfo [EMAIL PROTECTED] name: mbowe passwd: clear passwd: uid:0 gid:0 flags: 0 gecos: Michael Bowe limits: No user limits set. dir: /home/vpopmail/domains/1/pipeline.com.au/X/mbowe quota: 524288000S usage: 14% last auth: Sun Sep 26 22:25:30 2004 last auth ip: imap Again, you can see how the full path to the user dir is displayed. Jeremy, how does this compare with your system? Michael.
[vchkpw] Fw: [Courier-imap] chdir username: No such file or directory
Seems as if Sam was serious about any problems regarding vpopmail authentication being ignored on the Courier IMAP list :-/ Even though I'm not convinced it's a vchkpw problem, I'm forwarding here; sorry for the double post for those subscribed to both lists.. Please note i've upgraded gcc to 3.3.2, make to 3.8.0, and gdbm to 1.8.3. I'm running qmail 1.03 (with a bunch of patches) and vpopmail 5.4.6 on solaris sparc 2.7. using gcc 3.2.1. I had courier-imap 1.7.0 installed and working perfectly. for some reason, i decided i should upgrade. I downloaded, compiled, and installed 3.0.8. the new imap server closes the TCP connection immediately after my client sends login information. my logs show: INFO: Connection, ip=[127.0.0.1] LOGIN: DEBUG: ip=[127.0.0.1], command=LOGIN LOGIN: DEBUG: ip=[127.0.0.1], [EMAIL PROTECTED] chdir foobaz: No such file or directory i've configured with: CPPFLAGS=-I/usr/local/ssl/include -I/home/vpopmail/include \ LDFLAGS=-L/usr/local/ssl/lib -L/home/vpopmail/lib \ CC=gcc ./configure \ --prefix=/usr/local/courier-imap \ --enable-workarounds-for-imap-client-bugs \ --without-ipv6 --without-userdb \ --with-syslog=MAIL --without-authpwd \ --without-authshadow --without-authpam \ --without-authuserdb --without-authcram \ --with-authvchkpw --without-authldap \ --without-authmysql --without-authpgsql \ --without-authdaemon --without-authcustom i've tried using different email addresses, i've tried using %s instead of @s (and variations thereof). I've googled for hours (too much noise about chdir Maildir getting in the way). I've even tried installing 2.2.1 and 1.7.3. each of them is exhibiting the same behavior. i dont believe this problem is of vpopmail, as qmail-popup is authenticating against vchkpw, and i can test vchkpw: goofy# printf %s\0%s\0%s\0 [EMAIL PROTECTED] asdf ABC123 | vchkpw pwd 30 /home/goofy/vpopmail/domains/jeremykister.com/foobaz I've clearly botched something, but since I did this overnight, and it's turn into a sleepless night, I just cant figure out what's wrong. Any Ideas? Jeremy Kister http://jeremy.kister.net/
Re: [vchkpw] Fw: [Courier-imap] chdir username: No such file or directory
On Sep 25, 2004, at 4:41 PM, Jeremy Kister wrote: Even though I'm not convinced it's a vchkpw problem, I'm forwarding here; sorry for the double post for those subscribed to both lists.. courier-imap doesn't use vchkpw -- it has its own version of vchkpw as an auth module. Make sure that you're configuring it to use authvchkpw and nothing else. Perhaps take a look at Bill Shupp's toaster instructions http://shupp.org/toaster/ for installing Courier. -- 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] Fw: [Courier-imap] chdir username: No such file or directory
On Saturday, September 25, 2004 8:08 PM, Tom Collins wrote: an auth module. Make sure that you're configuring it to use authvchkpw and nothing else. yep - my configure script was listed in my previous email - only authvchkpw is enabled. I've got a hunch that there is an incompatibility between the newer vpopmail and courier's authvchkpw I compiled courier-imap 2.2.0 on a Solaris 2.9 box, with vpopmail 5.2.1. All IMAP functions behaved as expected. I took the authvchkpw binary from the 2.9 box, and copied it over to my 2.7 box, with vpopmail 5.4.6 CourierIMAP now seems happy. I'm surprised no one else has run into this. Is there anyone out there running vpopmail 5.4.x and courier-imap with authvchkpw ? This will be cross-posted to the courier-imap list, just to let Sam (et al) know about the possible incompatibility. Jeremy Kister http://jeremy.kister.net/
Re: [vchkpw] Fw: [Courier-imap] chdir username: No such file or directory
On Sep 25, 2004, at 9:00 PM, Jeremy Kister wrote: I've got a hunch that there is an incompatibility between the newer vpopmail and courier's authvchkpw To test your theory, try vpopmail 5.4.0. I know that Michael Bowe worked on the vpopmail code in courier-imap, so I don't see any reason for the latest builds to not work. -- 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/