Re: [vchkpw] vpopmail bug?
Can anyone else reproduce this problem? What version of courier-imap are you using? The authlib/preauthvchkpw.c file is worth checking against the one on the inter7 page. Mysql Quits can be caused by a program not calling mysql_close before exiting. Which in of itself would not cause an authentication failure. It's worth double checking your courier-imap configuration file. The one that specifies max client connections. The vpopmail ChangeLog shows the change to the email parser function and also reports that it fixed all known problems. To really track down the problem, lots of debugging output is needed to isolate what is ocurring. Hopefully leading to a solution :) Ken Jones On Friday 20 September 2002 04:20 pm, [EMAIL PROTECTED] wrote: I upgraded to 5.3.8 - and am still seeing this behavior. *sigh* Is this limited to Courier? Quoting Dzuy Nguyen [EMAIL PROTECTED]: There is a bug in vpopmail's email parser function which adds extra character to the end of user login at times, when called by courier. Version 5.3.x has a newer email parser which seems to work. [EMAIL PROTECTED] wrote: I am seeing strange behaviour on my Qmail+VpopMail(w/ MySQL)+COurier setup. Authenticating via IMAP works 90% of the time, but doesn't for 10%. I don't seem to be able to find any pattern as to it not working - it doesn't consistently fail in any particular manner. The problem happens with multiple mail clients. This might be a courier related issue, if so, then please tell me. Here is what I see in the mysql logs, when I try to log in to an account with a login of doug (actually, it this using a webmail client, so the login is [EMAIL PROTECTED]): 540747 Query select pw_name, pw_passwd, pw_uid, pw_gid, pw_gecos, pw_dir, pw_shell from vpopmail where pw_name = doug and pw_domain = innerworldscuba.com 540747 Quit 020915 4:36:10 540748 Connect qmail@localhost on vpopmail 540748 Query select pw_name, pw_passwd, pw_uid, pw_gid, pw_gecos, pw_dir, pw_shell from vpopmail where pw_name = doug and pw_domain = innerworldscuba.com ..all looks good. I show failed logins like this: 020917 12:56:28 590250 Query select pw_name, pw_passwd, pw_uid, pw_gid, pw_gecos, pw_dir, pw_shell from vpopmail where pw_name = dougs and pw_domain = innerworldscuba.com 590250 Quit 020917 12:56:33 590251 Query select pw_name, pw_passwd, pw_uid, pw_gid, pw_gecos, pw_dir, pw_shell from vpopmail where pw_name = dougs and pw_domain = innerworldscuba.com 590251 Quit 020917 12:56:38 590252 Query select pw_name, pw_passwd, pw_uid, pw_gid, pw_gecos, pw_dir, pw_shell from vpopmail where pw_name = dougs and pw_domain = innerworldscuba.com 590252 Quit 020917 12:57:03 590253 Query select pw_name, pw_passwd, pw_uid, pw_gid, pw_gecos, pw_dir, pw_shell from vpopmail where pw_name = dougs and pw_domain = innerworldscuba.com 590253 Quit -or-020917 13:20:01 590609 Query select pw_name, pw_passwd, pw_uid, pw_gid, pw_gecos, pw_dir, pw_shell from vpopmail where pw_name = dougu and pw_domain = innerworldscuba.com 590609 Quit 020917 13:20:06 590641 Query select pw_name, pw_passwd, pw_uid, pw_gid, pw_gecos, pw_dir, pw_shell from vpopmail where pw_name = dougu and pw_domain = innerworldscuba.com 590641 Quit -or- 020916 10:09:48 564000 Query select pw_name, pw_passwd, pw_uid, pw_gid, pw_gecos, pw_dir, pw_shell from vpopmail where pw_name = dougt and pw_domain = innerworldscuba.com 564000 Quit so it appears that the piece that parses the login isn't doing what it is supposed too. Is this vchpw.. or is this something else? Courier is compiled with --enable-workarounds-for-imap-client-bugs if that matters. Anyone else seen this? Is this a know issue at all? Thanks in advance for the help.. -Brendan - Webmail Services Provided by KPG Inc. (http://www.kpginc.com) - Webmail Services Provided by KPG Inc. (http://www.kpginc.com)
Re: [vchkpw] tcp.smtp.cdb is updated only once, and only when open-smtp is missing
So to recap: - open-smtp is correctly being updated with new pop auth IPs? - tcp.smtp.cdb is not being updated. A few things need to fall in line to make that all happen. And it sounds like you've got at least most of them. I would look at the config.h vpopmail file for: The #ifdef of where the tcprules program lives. make sure it is there :) then make sure the user that the vchkpw program runs as (when a user pops) has permission to run it and update the #ifdef location of where the tcp.smtp.cdb file lives. Run the tcprules program just like vchkpw would, on the command line and see what happens. Check if it updates the tcp.smtp.cdb file. If all this is right then i dunno... If all your email accounts are owned by vpopmail then you might as well run the pop3d tcpserver (and logs) as vpopmail.vchkpw. The alternative (worth trying) is have everything run as root. Ken Jones On Friday 20 September 2002 11:53 am, Tony A.T. Mendina wrote: This is a long story; but, I'd be happy if anyone with the patience to slog through it could offer further troubleshooting suggestions, pointers to docs that I missed, or any other advice they deem helpful grin. My problem is that tcp.smtp.cdb is not being updated when a pop3 user logs in, _unless_ I delete the open-smtp file just before the login. I'm not seeing errors in the logs or leftover temporary files on the disk, and users can log in and check mail successfully. The file open-smtp _is_ being updated each time a user checks mail. Clearopensmtp _does_ run without error from the system crontab, whether I've got the vpopmail system running as root or as vpopmail. I'm trying to use vpopmail with qmail 1.03 and redhat 7.2. My previous (working) qmail+vpopmail installs use vpopmail 5.2.1 just like I'm trying to do now, but this new one is a little different. Instead of running tcpserver directly from my init scripts and using Debian with a 2.2 kernel, I'm running it using supervise and using Redhat with a 2.4. Switching back to debian and cloning is not an option for work policy reasons. The qmail installs themselves are identical; both machines use the current ucspi-tcp, .88. At first, I was first letting the /supervise/qmail-pop3d/run script start tcpserver as root, and the open-smtp file, as well as the cdb file, were owned by root. Tcp.smtp.cdb was in /etc/, and clearopensmtp was run as root. I carefully compared the locations and permissions of executables and data files between a working debian+qmail+vpopmail system and this new redhat one, I and couldn't find any difference. After reading the tales of users with similar problems in the list archives, I saw that most of them had to do with the vpopmail user having access problems with needed files and with /etc. So as an experiment, I switched the whole setup to use the vpopmail user. The cron job for clearopensmtp was changed to run as vpopmail; vpopmail was recompiled to use /var/vchkpw/etc rather than /etc for the tcp rules file, the supervise scripts were changed accordingly, and so on. Users (well, test user accounts) can still log in and check mail without errors being returned to the client software, but just as before, the tcp.smtp.cdb file is _still_ not updated, except every 15 minutes when clearopensmtp runs. Then, as a further experiment, I tried replacing vpopmail 5.2.1 with 5.3.8. I used /var/vchkpw/etc and ran all components as the vpopmail user. No luck. The one exception to the lack of updates is if I delete the file /var/vchkpw/etc/open-smtp. If I do that, tcp.smtp.cdb is updated when the next pop3 user logs in. Open-smtp is recreated, and further pop3 logins don't result in updates to the cdb file, just open-smtp. This is the case whether the cdb file is in /etc and I'm running vpopmail as root or its in /var/vchkpw/etc and I'm running vpopmail as vpopmail. I've also tried running the tcpserver which runs qmail-popup, vchkpw, and qmail-pop3d from the command line as root and both with and without the -u 89 -g 89 parameters; I get the same problem as always, every time. In case this long and unhappy story wasn't long enough, I've included samples of scripts and the output of some of my debugging below. I've really run out of ideas for what to do next to try and identify the problem or to solve it, so ideas are very welcome! Vpopmail is *almost* working; if I could just get vchkpw to update the cdb file, I'd be set. Thanks for any help you can give, Tony First, the recordio output from when recordio was added to the startup script just ahead of qmail-popup. tcpserver: pid 2093 from 66.6.197.35 tcpserver: ok 2093 0:216.65.196.14:110 :66.6.197.35::1349 093 +OK [EMAIL PROTECTED] 093 USER [EMAIL PROTECTED] 093 +OK 093 PASS I've removed it 093 +OK 093 STAT 093 +OK 18 17029 093 LIST 093 +OK 093 1 1451 093 2 919 093 3 719 093 4 1037 093 5 1037 093 6 1640 093 7 717 093 8 921
Re: [vchkpw] qmailadmin strange problem
It's hard to say what happened without an audit of your system. Can you reproduce the error? If so, I'd like to debug the execution. Sounds like it might need some bullet proofing. Ken Jones On Friday 20 September 2002 07:16 pm, Martínlistas wrote: Hi. I have installed qmailadin... was working great, till i changed the server time... afeter that, if I try to create a new pop account, qmailadmin just give me Internal server error I reinstalled qmailadmin, after not finding what it was wrong. So, has anybody a clue of what can be wrong? Qmail is workng OK, vpopmail too.
Re: [vchkpw] qmailadmin strange problem
Tell me what data do you need. I can reproduce the error: everytime i try to use qmailadmin, if I want to create a user, y get as responso a page saying internal server error... But the user was created, but can see it then in the users list. - Original Message - From: Ken Jones [EMAIL PROTECTED] To: Martínlistas [EMAIL PROTECTED]; [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Saturday, September 21, 2002 4:15 AM Subject: Re: [vchkpw] qmailadmin strange problem It's hard to say what happened without an audit of your system. Can you reproduce the error? If so, I'd like to debug the execution. Sounds like it might need some bullet proofing. Ken Jones On Friday 20 September 2002 07:16 pm, Martínlistas wrote: Hi. I have installed qmailadin... was working great, till i changed the server time... afeter that, if I try to create a new pop account, qmailadmin just give me Internal server error I reinstalled qmailadmin, after not finding what it was wrong. So, has anybody a clue of what can be wrong? Qmail is workng OK, vpopmail too.
Re: [vchkpw] qmailadmin strange problem
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Said Mart?nlistas on Sat, Sep 21, 2002 at 12:28:20PM -0300: I can reproduce the error: everytime i try to use qmailadmin, if I want to create a user, y get as responso a page saying internal server error... But the user was created, but can see it then in the users list. Typically when you get a 500 Internal Server Error (at least with Apache), your Apache error_log will give some info as to why the program died. - -- [!] Justin R. Miller [EMAIL PROTECTED] Encrypted email preferred (key 0xC9C40C31) -BEGIN PGP SIGNATURE- Version: GnuPG v1.0.7 (FreeBSD) iD8DBQE9jJqs94d6K8nEDDERAuj1AJ4xzj17T5Vl8kC30xvnAwMBTBL/zgCgi525 KsgH2j6lmWQaweEcLMA5Rto= =9W/4 -END PGP SIGNATURE-
[vchkpw] qmailadmin user problem
Hello all, I am aware of the issues with vpopmail, clear-text passwords and qmailadmin. First, I have tried to re-compile and install vpopmail without the clear-text password support. However, once the install scripts run and I create a user, that user has a clear text password. I had deleted the entire vpopmail directory and the other necessary files under the qmail directory. Running with the above situation, when I attempt to use the ./vmoduser -C "" [EMAIL PROTECTED] to clear the clear-text password, that user still does not show up under the qmailamin user listing for the domain. It seems the only way to have a user appear under the qmailadmin listing is to create the using using qmailadmin. Am I missing something? Thank You George
RE: [vchkpw] qmailadmin user problem
Title: Message Check the list archives. This has been gone over. Plus remember that any time that you re-compile vpopmail you must recompile qmailadmin as well. Regards, Tren -Original Message-From: George Minich [mailto:[EMAIL PROTECTED]] Sent: Saturday, September 21, 2002 10:26 AMTo: [EMAIL PROTECTED]Subject: [vchkpw] qmailadmin user problem Hello all, I am aware of the issues with vpopmail, clear-text passwords and qmailadmin. First, I have tried to re-compile and install vpopmail without the clear-text password support. However, once the install scripts run and I create a user, that user has a clear text password. I had deleted the entire vpopmail directory and the other necessary files under the qmail directory. Running with the above situation, when I attempt to use the ./vmoduser -C "" [EMAIL PROTECTED] to clear the clear-text password, that user still does not show up under the qmailamin user listing for the domain. It seems the only way to have a user appear under the qmailadmin listing is to create the using using qmailadmin. Am I missing something? Thank You George
[vchkpw] server migration, password issue
Hello, is there a way to get the passwords of local users as I am the admin and want to migrate all users to another server? At least some domains should be set up on my new server and therefor I need the passwords of the users to create them... otherwise each user must re-create him- or herself. Is there a way to do this? Bye and thanks, Werner.
Re: [vchkpw] server migration, password issue
On Sat, 21 Sep 2002, Werner Schalk wrote: is there a way to get the passwords of local users as I am the admin and want to migrate all users to another server? At least some domains should be set up on my new server and therefor I need the passwords of the users to create them... otherwise each user must re-create him- or herself. Is there a way to do this? You can use the --enable-learn-passwords configure option so that the first time the users log into the new server it will automatically set their passwords. Regards, Cory Wright
[vchkpw] How do I change 'Maildir' to 'maildir'?
Hi, I've setup qmail and courier-imap to use 'maildir' and not the default 'Maildir' as the place to store mail. How to I make vpopmail understand that I've made this change? Ex. /home/vpopmail/domain/example.org/user/maildir/ I did a grep in the source tree, but I am unsure which files to edit. I think this should be a option in the configure file. Kind regards -- Magnus Østergaard
[vchkpw] Development versions
If you do not mind me asking, is anyone using the DEVELOPENT versions of Vpopmail and the addon packages in a development environment? If so, have you had problems and/or loss of data. Based on the docs, the latest and greatest looks mostly like bugfixes. Should I be concerned with rolling it out in a small ISP environment? Thank You George