Re: [vchkpw] Vpopmail + Mysql, can't add domains
I'm not entirely sure how to rebuild qmail-smtpd to use the new libvpopmail for MySQL. I'm imagining I have to recompile Qmail, but how do I single out qmail-smtpd to be the only thing to build, and how do I get it to recognize vpopmail with mysql support exactly? Thanks for your help! On Jun 15, 2004, at 3:50 PM, Tom Collins wrote: On Jun 15, 2004, at 2:41 PM, James Taylor wrote: Looking though the other directories of domains that DO work, I'm noticing they have a file called vpasswd. I've had trouble getting MySQL to completely work, I thought I had it before but now it's acting funky again with this issue. I think what's happening is Vpopmail is using MySQL to store the information, but then it's not using MySQL to retrieve. It sounds like you originally compiled vpopmail for CDB, then compiled qmail-smtpd with the chkusr patch, and then reconfigured/installed vpopmail for MySQL. You need to rebuild qmail-smtpd so it links to the new libvpopmail that's built for MySQL instead of CDB. -- 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] Vpopmail + Mysql, can't add domains
Hello James, Wednesday, June 16, 2004, 9:57:44 AM you wrote: JT I'm not entirely sure how to rebuild qmail-smtpd to use the new JT libvpopmail for MySQL. I'm imagining I have to recompile Qmail, but JT how do I single out qmail-smtpd to be the only thing to build, and how JT do I get it to recognize vpopmail with mysql support exactly? Thanks JT for your help! Bear with me as I'm new to qmail myself but it seems that it's not getting resolved... I really don't see why you would have to recompile qmail, and especially qmail-smtpd. qmail-smtp uses an external password checker like vchkpw. qmail-send bounces the message if it can't find a match. Why don't you post an unedited version of your logfile and your run script. What patches have you applied to qmail? Are you using vchkpw to check the password? If it was working before, what have you installed recently? You need to rebuild qmail-smtpd so it links to the new libvpopmail that's built for MySQL instead of CDB. What does qmail-smtpd with libvpopmail? -- Regards, Charles.
Re: [vchkpw] Vpopmail + Mysql, can't add domains
Charles M. Gerungan wrote: I really don't see why you would have to recompile qmail, and especially qmail-smtpd. qmail-smtp uses an external password checker like vchkpw. qmail-send bounces the message if it can't find a match. The vpopmail library is statically linked, so every time you recompile it you have to re-link everything that uses it. Many configuration changes in vpopmail require you to recompile vpopmail... and everything that uses it. If the patched qmail-smtpd uses the vpopmail library, it needs to be re-linked. If you keep your source available that usually means make; make install. Many makefiles are smart enough not to wipe out your configuration settings, but always have a backup! Re-compiling this way may be a bit of a hassle, but it allows vpopmail to be much more efficient in day to day operation.
Re: [vchkpw] Vpopmail + Mysql, can't add domains
Hi James I ask because I am having a problem with bounce-no-mailbox. Every domain (about 6 of them) that had bounce-no-mailbox set, was bouncing everything including messages to postmaster. If you could change bounce-no-mailbox to /home/vpopmail/domains/testdomain.com/postmaster (ie set the domain to catch all mail to postmaster) and see if that fixes (albeit temporarily) your problem, it most likely means that we are having the same problem, and I would like to know why too :) Cheers Alastair James Taylor said: | /home/vpopmail/bin/vdelivermail '' bounce-no-mailbox .. which is think is what it's supposed to be set at, no? On Jun 15, 2004, at 2:46 PM, Alastair Battrick wrote: Hi James What is in the .qmail-default for the domain? Cheers Alastair James Taylor wrote: Hi everyone, running vpopmail 5.4 compiled with MySQL (Everything else via Bill's Qmail Toaster) and everything was working just fine until today when I tried to add a domain. Existing domains seem to be working just fine, you can add/delete users fine, information is stored in MySQL and it all looks good. Now though, when I go to add a new domain, just for instance say ./vadddomain testdomain.com testpw It appears to have added the directory - it creates the domain directory as well as the postmaster maildir, and adds the testdomain_com table to MySQL with the postmaster user. It also adds the testdomain_com information to the dir_control table. However, if I try to send mail to postmaster: telnet localhost 25 helo mail from: [EMAIL PROTECTED] rcpt to: [EMAIL PROTECTED] 550 sorry, no mailbox here by that name (#5.1.1 - chkusr) ./vuserinfo [EMAIL PROTECTED] name: postmaster passwd: $1$YnGeWacE$YYLUcT0Gw.te3HGkRa9lD. clear passwd: testpw uid:0 gid:0 flags: 0 gecos: Postmaster limits: No user limits set. dir: /home/vpopmail/domains/testdomain.com/postmaster quota: NOQUOTA usage: NOQUOTA account created: Tue Jun 15 14:28:53 2004 last auth: Never logged in Same information listed in the MySQL row. ./vadduser [EMAIL PROTECTED] testpw .. same results with that user as with postmaster, everything LOOKS good, but nothing works Looking though the other directories of domains that DO work, I'm noticing they have a file called vpasswd. I've had trouble getting MySQL to completely work, I thought I had it before but now it's acting funky again with this issue. I think what's happening is Vpopmail is using MySQL to store the information, but then it's not using MySQL to retrieve. The weird thing about it though is that I can add users to other domains, make changes to existing domains, and it all takes just fine. It makes the changes in the MySQL DB, and it READS those changes, it's just new domains aren't wanting to work anymore. I tried doing ./vconvert -m -c to see if it was using CDB to store all the user info instead of mysql for some reason, but it still doesn't pick up the user information when trying to send them mail. Gives the same as above. If anyone could point me in the right direction I'd appreciate it, I've been pulling my hair out for the past couple hours now.
Re: [vchkpw] Vpopmail + Mysql, can't add domains
Hello Rick, Wednesday, June 16, 2004, 10:56:30 AM you wrote: I really don't see why you would have to recompile qmail, and especially qmail-smtpd. qmail-smtp uses an external password checker like vchkpw. qmail-send bounces the message if it can't find a match. RW The vpopmail library is statically linked, so every time you recompile RW it you have to re-link everything that uses it. Many configuration RW changes in vpopmail require you to recompile vpopmail... and everything RW that uses it. But why would he have to recompile qmail? qmail's password checker is external (it should use vchkpw in his case which is not part of qmail). And okay, I did a grep on qmail's make file, and there's no vpopmail in there. What am I missing? -- Regards, Charles.
Re: [vchkpw] Vpopmail + Mysql, can't add domains
Charles M. Gerungan wrote: Hello Rick, Wednesday, June 16, 2004, 10:56:30 AM you wrote: I really don't see why you would have to recompile qmail, and especially qmail-smtpd. qmail-smtp uses an external password checker like vchkpw. qmail-send bounces the message if it can't find a match. RW The vpopmail library is statically linked, so every time you recompile RW it you have to re-link everything that uses it. Many configuration RW changes in vpopmail require you to recompile vpopmail... and everything RW that uses it. But why would he have to recompile qmail? qmail's password checker is external (it should use vchkpw in his case which is not part of qmail). And okay, I did a grep on qmail's make file, and there's no vpopmail in there. What am I missing? Stock qmail you don't have to recompile. It executes vchkpw to validate users for pop and imap, and vdelivermail in .qmail-default to deliver mail. The only thing I can think of where qmail-smtpd has anything to do with vpopmail is a patch that allows it to reject messages to invalid addresses before they are queued. That patch calls functions in the vpopmail library, and must be recompiled when vpopmail changes. For installs on a virgin machine you must compile qmail, compile vpopmail, then compile qmail again (at least qmail-smtpd) to apply the patch.
Re: [vchkpw] Vpopmail + Mysql, can't add domains
At 16/06/2004 16/06/2004 +0200, you wrote: Hello James, Wednesday, June 16, 2004, 9:57:44 AM you wrote: I really don't see why you would have to recompile qmail, and especially qmail-smtpd. qmail-smtp uses an external password checker like vchkpw. qmail-send bounces the message if it can't find a match. Chkuser does use the vpopmail library, in order to check instantly for user existance. It does NOT use external checker, for performance reasons. Using an external checker would mean to run it each time for a different recipient (one run, one attach, etc.. for each recipient), much more slow and resources demanding. I remember you're using Bill's Shupp megapatch, and Bill gives different versions of chkuser integration, depending if you're using cdb, mysql or other. So, if you changed from cdb to MySQL, you must now adapt your Makefile (add mysql libraries and probably -lz) an recompile, or run again Bill's patch (chkuser.mysql) over a plain qmail installation and recompile. Or, there is a new patch here around, using an external checker. If you don't have any performance issue, use the new patch. Tonino [EMAIL PROTECTED]Interazioni di Antonio Nati http://www.interazioni.it [EMAIL PROTECTED]
Re: [vchkpw] Vpopmail + Mysql, can't add domains
On Jun 16, 2004, at 1:26 AM, Charles M. Gerungan wrote: I really don't see why you would have to recompile qmail, and especially qmail-smtpd. qmail-smtp uses an external password checker like vchkpw. qmail-send bounces the message if it can't find a match. The start of the thread indicated that he was having trouble with the chkusr patch to qmail-smtpd -- it was only working for domains with a vpasswd file, even though he was now using the MySQL backend. Based on his description, I indicated that qmail-smtpd (with chkusr) needed to be re-linked to the libvpopmail built with MySQL support. -- 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] Vpopmail + Mysql, can't add domains
On Wednesday 16 June 2004 05:11 am, Charles M. Gerungan wrote: What am I missing? you're missing that he's using the chkuser patch. -Jeremy -- Jeremy Kitchen ++ Systems Administrator ++ Inter7 Internet Technologies, Inc. [EMAIL PROTECTED] ++ www.inter7.com ++ 866.528.3530 ++ 847.492.0470 int'l kitchen @ #qmail #gentoo on EFnet ++ scriptkitchen.com/qmail
Re: [vchkpw] Vpopmail + Mysql, can't add domains
Hello Tom, Wednesday, June 16, 2004, 4:52:45 PM you wrote: TC The start of the thread indicated that he was having trouble with the TC chkusr patch to qmail-smtpd -- it was only working for domains with a TC vpasswd file, even though he was now using the MySQL backend. As I only just became a member, I must have missed this. Ignore... -- Regards, Charles.
Re: [vchkpw] Vpopmail + Mysql, can't add domains
Actually, strangely enough, this DID fix the problem so mail is at least working, but I'm going to have to try to figure out how to get everything else going. On Jun 16, 2004, at 2:10 AM, Alastair Battrick wrote: Hi James I ask because I am having a problem with bounce-no-mailbox. Every domain (about 6 of them) that had bounce-no-mailbox set, was bouncing everything including messages to postmaster. If you could change bounce-no-mailbox to /home/vpopmail/domains/testdomain.com/postmaster (ie set the domain to catch all mail to postmaster) and see if that fixes (albeit temporarily) your problem, it most likely means that we are having the same problem, and I would like to know why too :) Cheers Alastair James Taylor said: | /home/vpopmail/bin/vdelivermail '' bounce-no-mailbox .. which is think is what it's supposed to be set at, no? On Jun 15, 2004, at 2:46 PM, Alastair Battrick wrote: Hi James What is in the .qmail-default for the domain? Cheers Alastair James Taylor wrote: Hi everyone, running vpopmail 5.4 compiled with MySQL (Everything else via Bill's Qmail Toaster) and everything was working just fine until today when I tried to add a domain. Existing domains seem to be working just fine, you can add/delete users fine, information is stored in MySQL and it all looks good. Now though, when I go to add a new domain, just for instance say ./vadddomain testdomain.com testpw It appears to have added the directory - it creates the domain directory as well as the postmaster maildir, and adds the testdomain_com table to MySQL with the postmaster user. It also adds the testdomain_com information to the dir_control table. However, if I try to send mail to postmaster: telnet localhost 25 helo mail from: [EMAIL PROTECTED] rcpt to: [EMAIL PROTECTED] 550 sorry, no mailbox here by that name (#5.1.1 - chkusr) ./vuserinfo [EMAIL PROTECTED] name: postmaster passwd: $1$YnGeWacE$YYLUcT0Gw.te3HGkRa9lD. clear passwd: testpw uid:0 gid:0 flags: 0 gecos: Postmaster limits: No user limits set. dir: /home/vpopmail/domains/testdomain.com/postmaster quota: NOQUOTA usage: NOQUOTA account created: Tue Jun 15 14:28:53 2004 last auth: Never logged in Same information listed in the MySQL row. ./vadduser [EMAIL PROTECTED] testpw .. same results with that user as with postmaster, everything LOOKS good, but nothing works Looking though the other directories of domains that DO work, I'm noticing they have a file called vpasswd. I've had trouble getting MySQL to completely work, I thought I had it before but now it's acting funky again with this issue. I think what's happening is Vpopmail is using MySQL to store the information, but then it's not using MySQL to retrieve. The weird thing about it though is that I can add users to other domains, make changes to existing domains, and it all takes just fine. It makes the changes in the MySQL DB, and it READS those changes, it's just new domains aren't wanting to work anymore. I tried doing ./vconvert -m -c to see if it was using CDB to store all the user info instead of mysql for some reason, but it still doesn't pick up the user information when trying to send them mail. Gives the same as above. If anyone could point me in the right direction I'd appreciate it, I've been pulling my hair out for the past couple hours now.
Re: [vchkpw] Vpopmail + Mysql, can't add domains
This is not strange, as you are disabling chkuser. You have a misconfiguration. You must modify your qmail Makefile, and recompile it, with the lastest vpopmail library you are using. Tonino At 16/06/2004 16/06/2004 -0700, you wrote: Actually, strangely enough, this DID fix the problem so mail is at least working, but I'm going to have to try to figure out how to get everything else going. On Jun 16, 2004, at 2:10 AM, Alastair Battrick wrote: Hi James I ask because I am having a problem with bounce-no-mailbox. Every domain (about 6 of them) that had bounce-no-mailbox set, was bouncing everything including messages to postmaster. If you could change bounce-no-mailbox to /home/vpopmail/domains/testdomain.com/postmaster (ie set the domain to catch all mail to postmaster) and see if that fixes (albeit temporarily) your problem, it most likely means that we are having the same problem, and I would like to know why too :) Cheers Alastair James Taylor said: | /home/vpopmail/bin/vdelivermail '' bounce-no-mailbox .. which is think is what it's supposed to be set at, no? On Jun 15, 2004, at 2:46 PM, Alastair Battrick wrote: Hi James What is in the .qmail-default for the domain? Cheers Alastair James Taylor wrote: Hi everyone, running vpopmail 5.4 compiled with MySQL (Everything else via Bill's Qmail Toaster) and everything was working just fine until today when I tried to add a domain. Existing domains seem to be working just fine, you can add/delete users fine, information is stored in MySQL and it all looks good. Now though, when I go to add a new domain, just for instance say ./vadddomain testdomain.com testpw It appears to have added the directory - it creates the domain directory as well as the postmaster maildir, and adds the testdomain_com table to MySQL with the postmaster user. It also adds the testdomain_com information to the dir_control table. However, if I try to send mail to postmaster: telnet localhost 25 helo mail from: [EMAIL PROTECTED] rcpt to: [EMAIL PROTECTED] 550 sorry, no mailbox here by that name (#5.1.1 - chkusr) ./vuserinfo [EMAIL PROTECTED] name: postmaster passwd: $1$YnGeWacE$YYLUcT0Gw.te3HGkRa9lD. clear passwd: testpw uid:0 gid:0 flags: 0 gecos: Postmaster limits: No user limits set. dir: /home/vpopmail/domains/testdomain.com/postmaster quota: NOQUOTA usage: NOQUOTA account created: Tue Jun 15 14:28:53 2004 last auth: Never logged in Same information listed in the MySQL row. ./vadduser [EMAIL PROTECTED] testpw .. same results with that user as with postmaster, everything LOOKS good, but nothing works Looking though the other directories of domains that DO work, I'm noticing they have a file called vpasswd. I've had trouble getting MySQL to completely work, I thought I had it before but now it's acting funky again with this issue. I think what's happening is Vpopmail is using MySQL to store the information, but then it's not using MySQL to retrieve. The weird thing about it though is that I can add users to other domains, make changes to existing domains, and it all takes just fine. It makes the changes in the MySQL DB, and it READS those changes, it's just new domains aren't wanting to work anymore. I tried doing ./vconvert -m -c to see if it was using CDB to store all the user info instead of mysql for some reason, but it still doesn't pick up the user information when trying to send them mail. Gives the same as above. If anyone could point me in the right direction I'd appreciate it, I've been pulling my hair out for the past couple hours now. [EMAIL PROTECTED]Interazioni di Antonio Nati http://www.interazioni.it [EMAIL PROTECTED]
Re: [vchkpw] Vpopmail + Mysql, can't add domains
Hi James What is in the .qmail-default for the domain? Cheers Alastair James Taylor wrote: Hi everyone, running vpopmail 5.4 compiled with MySQL (Everything else via Bill's Qmail Toaster) and everything was working just fine until today when I tried to add a domain. Existing domains seem to be working just fine, you can add/delete users fine, information is stored in MySQL and it all looks good. Now though, when I go to add a new domain, just for instance say ./vadddomain testdomain.com testpw It appears to have added the directory - it creates the domain directory as well as the postmaster maildir, and adds the testdomain_com table to MySQL with the postmaster user. It also adds the testdomain_com information to the dir_control table. However, if I try to send mail to postmaster: telnet localhost 25 helo mail from: [EMAIL PROTECTED] rcpt to: [EMAIL PROTECTED] 550 sorry, no mailbox here by that name (#5.1.1 - chkusr) ./vuserinfo [EMAIL PROTECTED] name: postmaster passwd: $1$YnGeWacE$YYLUcT0Gw.te3HGkRa9lD. clear passwd: testpw uid:0 gid:0 flags: 0 gecos: Postmaster limits: No user limits set. dir: /home/vpopmail/domains/testdomain.com/postmaster quota: NOQUOTA usage: NOQUOTA account created: Tue Jun 15 14:28:53 2004 last auth: Never logged in Same information listed in the MySQL row. ./vadduser [EMAIL PROTECTED] testpw .. same results with that user as with postmaster, everything LOOKS good, but nothing works Looking though the other directories of domains that DO work, I'm noticing they have a file called vpasswd. I've had trouble getting MySQL to completely work, I thought I had it before but now it's acting funky again with this issue. I think what's happening is Vpopmail is using MySQL to store the information, but then it's not using MySQL to retrieve. The weird thing about it though is that I can add users to other domains, make changes to existing domains, and it all takes just fine. It makes the changes in the MySQL DB, and it READS those changes, it's just new domains aren't wanting to work anymore. I tried doing ./vconvert -m -c to see if it was using CDB to store all the user info instead of mysql for some reason, but it still doesn't pick up the user information when trying to send them mail. Gives the same as above. If anyone could point me in the right direction I'd appreciate it, I've been pulling my hair out for the past couple hours now.
Re: [vchkpw] Vpopmail + Mysql, can't add domains
| /home/vpopmail/bin/vdelivermail '' bounce-no-mailbox .. which is think is what it's supposed to be set at, no? On Jun 15, 2004, at 2:46 PM, Alastair Battrick wrote: Hi James What is in the .qmail-default for the domain? Cheers Alastair James Taylor wrote: Hi everyone, running vpopmail 5.4 compiled with MySQL (Everything else via Bill's Qmail Toaster) and everything was working just fine until today when I tried to add a domain. Existing domains seem to be working just fine, you can add/delete users fine, information is stored in MySQL and it all looks good. Now though, when I go to add a new domain, just for instance say ./vadddomain testdomain.com testpw It appears to have added the directory - it creates the domain directory as well as the postmaster maildir, and adds the testdomain_com table to MySQL with the postmaster user. It also adds the testdomain_com information to the dir_control table. However, if I try to send mail to postmaster: telnet localhost 25 helo mail from: [EMAIL PROTECTED] rcpt to: [EMAIL PROTECTED] 550 sorry, no mailbox here by that name (#5.1.1 - chkusr) ./vuserinfo [EMAIL PROTECTED] name: postmaster passwd: $1$YnGeWacE$YYLUcT0Gw.te3HGkRa9lD. clear passwd: testpw uid:0 gid:0 flags: 0 gecos: Postmaster limits: No user limits set. dir: /home/vpopmail/domains/testdomain.com/postmaster quota: NOQUOTA usage: NOQUOTA account created: Tue Jun 15 14:28:53 2004 last auth: Never logged in Same information listed in the MySQL row. ./vadduser [EMAIL PROTECTED] testpw .. same results with that user as with postmaster, everything LOOKS good, but nothing works Looking though the other directories of domains that DO work, I'm noticing they have a file called vpasswd. I've had trouble getting MySQL to completely work, I thought I had it before but now it's acting funky again with this issue. I think what's happening is Vpopmail is using MySQL to store the information, but then it's not using MySQL to retrieve. The weird thing about it though is that I can add users to other domains, make changes to existing domains, and it all takes just fine. It makes the changes in the MySQL DB, and it READS those changes, it's just new domains aren't wanting to work anymore. I tried doing ./vconvert -m -c to see if it was using CDB to store all the user info instead of mysql for some reason, but it still doesn't pick up the user information when trying to send them mail. Gives the same as above. If anyone could point me in the right direction I'd appreciate it, I've been pulling my hair out for the past couple hours now.
Re: [vchkpw] Vpopmail + Mysql, can't add domains
On Jun 15, 2004, at 2:41 PM, James Taylor wrote: Looking though the other directories of domains that DO work, I'm noticing they have a file called vpasswd. I've had trouble getting MySQL to completely work, I thought I had it before but now it's acting funky again with this issue. I think what's happening is Vpopmail is using MySQL to store the information, but then it's not using MySQL to retrieve. It sounds like you originally compiled vpopmail for CDB, then compiled qmail-smtpd with the chkusr patch, and then reconfigured/installed vpopmail for MySQL. You need to rebuild qmail-smtpd so it links to the new libvpopmail that's built for MySQL instead of CDB. -- 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/