[toaster] chkuser problem on [EMAIL PROTECTED]
Hello, I found a problem on chkuser. Maybe there is a solution, that I don't know. If I sent e-mail from e.g. Gmail to [EMAIL PROTECTED] which domain.com hosted in my qmail, chkuser blocks it and says PERM_FAILURE: SMTP Error (state 13): 550 5.1.1 sorry, no mailbox here by that name (chkuser) But, If the e-mail sent to [EMAIL PROTECTED], where there is no user named default, then chkuser accepts the e-mail but then qmail bounce the e-mail back to sender. This make problem on spam mails, because all e-mails sent to [EMAIL PROTECTED] handled by qmail, and as you guest, bounce mails are double bounced. I examine the vpopmail directories and found .qmail-default file with this line | /home/vpopmail/bin/vdelivermail '' bounce-no-mailbox I guess this file created automatically. I have 1000 domains on qmail, there are lots of double bounce email on postmaster account. What can we do about this? Zeki Kubilay Akyol CEO - MCSE Radore Hosting Telekomünikasyon Hizm. San. ve Tic. Ltd. Şti. Microsoft Gold Certified Partner - Hosting Solutions Specialization [EMAIL PROTECTED] / www.rh.com.tr t : + 90 212 347 2 347
Re: [toaster] chkuser problem on [EMAIL PROTECTED]
Hi Zeki, this problem is already known. I have to add this check to chkuser since one year, but I had no time until now. I have a bunch of fixes/features to add, I will try to find spare time and fix them. Thanks, Tonino Kubilay Akyol (Radore Telekom) ha scritto: Hello, I found a problem on chkuser. Maybe there is a solution, that I don't know. If I sent e-mail from e.g. Gmail to [EMAIL PROTECTED] which domain.com hosted in my qmail, chkuser blocks it and says PERM_FAILURE: SMTP Error (state 13): 550 5.1.1 sorry, no mailbox here by that name (chkuser) But, If the e-mail sent to [EMAIL PROTECTED], where there is no user named default, then chkuser accepts the e-mail but then qmail bounce the e-mail back to sender. This make problem on spam mails, because all e-mails sent to [EMAIL PROTECTED] handled by qmail, and as you guest, bounce mails are double bounced. I examine the vpopmail directories and found .qmail-default file with this line | /home/vpopmail/bin/vdelivermail '' bounce-no-mailbox I guess this file created automatically. I have 1000 domains on qmail, there are lots of double bounce email on postmaster account. What can we do about this? Zeki Kubilay Akyol CEO - MCSE Radore Hosting Telekomünikasyon Hizm. San. ve Tic. Ltd. Şti. Microsoft Gold Certified Partner - Hosting Solutions Specialization [EMAIL PROTECTED] / www.rh.com.tr t : + 90 212 347 2 347 -- [EMAIL PROTECTED]Interazioni di Antonio Nati http://www.interazioni.it [EMAIL PROTECTED]
Re: [toaster] CHKUSER Problem
At 03.41 17/01/2007, you wrote: Sam Laffere wrote: cat .qmail-default | /home/vpopmail/bin/vdelivermail '' bounce-no-mailbox If no mailbox for addressee, bounce #| /usr/local/bin/maildrop /home/vpopmail/domains/midkan.com/mailfilter If no mailbox for addressee, send to mailfilter #| /home/vpopmail/bin/vdelivermail '' /home/vpopmail/domains/midkan.com/postmaster If no mailbox for addressee, send to postmaster Either of the last two block chkuser from working because they direct ALL mail to non-existant mailboxes to a specific location. That means there are no non-existant mailboxes when those choices are selected. See http://www.interazioni.it/opensource/chkuser/documentation/faq/enabling.html#D4 * With standard settings, modify .qmail-default according to your needs, then add a comment line like # bounce-no-mailbox at beginning of file. chkuser will work if bounce-no-mailbox is found within leading 1023 characters. * As alternative, uncomment and change CHKUSER_BOUNCE_STRING within chkuser_settings.h, and set it to the wished string. Ciao, Tonino
[toaster] CHKUSER Problem
Sorry this is so long. Problem: 7 domains do not have invalid users blocked by CHKUSER, 14 domains work correctly. Details: Server set up with Shupp Toaster in early November 2006. Only variance is using maildrop and mailfilter to sort spam into folders. Summary: 21 domains were moved from previous vpopmail based mail server. There is no logic I can find as to why 7 of the domains do not block non-existing recipients at the qmail-smtpd point. The problem seems to be CHKUSER, but I am sure it is not a broken CHKUSER, but just something silly I am missing. The domains were moved a couple at a time from the old server, not in any order. I keep wondering if some little change happened after doing the first 14, and that somehow is affecting the 7 not working. I know that when I started moving the domains, I did a vadddomain for some of the first domains, but may not have done that for some of the later domains. My recollection is that I started out believing I needed to do that for each one. I know I am leaving out lots of details. I can readily provide any requested. I have looked through the archive, and can add the following: All files are owned vpopmail.vchkpw in all domains. All domains have the following in .qmail-default: | /usr/local/bin/maildrop /home/vpopmail/domains/domainname.net/mailfilter and all domains have mailfilter linked like this to the same file. mailfilter - ../mailfilter All permissions match between a working and a non-working domain. vqadmin says CatchAll: mailfilter for both of the following domains. If I click any option, it overwrites my .qmail-default. Thanks in Advance Sam I have chosen these two domains as the examples. tri.net --this domain works correctly midkan.com --this domain does not work Snips of files and tests using domains: A check of CHKUSER shows this: # /var/qmail/bin/qmail-smtpd 220 supermail.tri.net ESMTP mail from [EMAIL PROTECTED] CHKUSER accepted null sender: from :: remote :unknown:unknown rcpt : accepted null sender always 250 ok rcpt to: [EMAIL PROTECTED] CHKUSER rejected rcpt: from :: remote :unknown:unknown rcpt [EMAIL PROTECTED] : not existing recipient 511 sorry, no mailbox here by that name (#5.1.1 - chkuser) rcpt to: [EMAIL PROTECTED] CHKUSER accepted rcpt: from :: remote :unknown:unknown rcpt [EMAIL PROTECTED] : found existing recipient 250 ok quit 221 supermail.tri.net /var/qmail/control/rcpthosts has this: midkan.com tri.net /var/qmail/control/virtualdomains has this: midkan.com:midkan.com tri.net:tri.net /var/qmail/users/assign has this: +midkan.com-:midkan.com:89:89:/home/vpopmail/domains/midkan.com:-:: +tri.net-:tri.net:89:89:/home/vpopmail/domains/tri.net:-::
Re: [toaster] CHKUSER Problem
Sam Laffere wrote: Sorry this is so long. Problem: 7 domains do not have invalid users blocked by CHKUSER, 14 domains work correctly. Details: Server set up with Shupp Toaster in early November 2006. Only variance is using maildrop and mailfilter to sort spam into folders. Summary: 21 domains were moved from previous vpopmail based mail server. There is no logic I can find as to why 7 of the domains do not block non-existing recipients at the qmail-smtpd point. The problem seems to be CHKUSER, but I am sure it is not a broken CHKUSER, but just something silly I am missing. The domains were moved a couple at a time from the old server, not in any order. I keep wondering if some little change happened after doing the first 14, and that somehow is affecting the 7 not working. I know that when I started moving the domains, I did a vadddomain for some of the first domains, but may not have done that for some of the later domains. My recollection is that I started out believing I needed to do that for each one. I know I am leaving out lots of details. I can readily provide any requested. I have looked through the archive, and can add the following: All files are owned vpopmail.vchkpw in all domains. All domains have the following in .qmail-default: | /usr/local/bin/maildrop /home/vpopmail/domains/domainname.net/mailfilter and all domains have mailfilter linked like this to the same file. mailfilter - ../mailfilter All permissions match between a working and a non-working domain. vqadmin says CatchAll: mailfilter for both of the following domains. If I click any option, it overwrites my .qmail-default. Hi, Unless you modified the source of chkusr, it requires bounce-no-mailbox in the .qmail-default file. If that is not there, it lets all messages in, regardless of the user existing or not. Regards, Rick
Re: [toaster] CHKUSER Problem
Rick Macdougall wrote: Sam Laffere wrote: Sorry this is so long. Problem: 7 domains do not have invalid users blocked by CHKUSER, 14 domains work correctly. Details: Server set up with Shupp Toaster in early November 2006. Only variance is using maildrop and mailfilter to sort spam into folders. Summary: 21 domains were moved from previous vpopmail based mail server. There is no logic I can find as to why 7 of the domains do not block non-existing recipients at the qmail-smtpd point. The problem seems to be CHKUSER, but I am sure it is not a broken CHKUSER, but just something silly I am missing. The domains were moved a couple at a time from the old server, not in any order. I keep wondering if some little change happened after doing the first 14, and that somehow is affecting the 7 not working. I know that when I started moving the domains, I did a vadddomain for some of the first domains, but may not have done that for some of the later domains. My recollection is that I started out believing I needed to do that for each one. I know I am leaving out lots of details. I can readily provide any requested. I have looked through the archive, and can add the following: All files are owned vpopmail.vchkpw in all domains. All domains have the following in .qmail-default: | /usr/local/bin/maildrop /home/vpopmail/domains/domainname.net/mailfilter and all domains have mailfilter linked like this to the same file. mailfilter - ../mailfilter All permissions match between a working and a non-working domain. vqadmin says CatchAll: mailfilter for both of the following domains. If I click any option, it overwrites my .qmail-default. Hi, Unless you modified the source of chkusr, it requires bounce-no-mailbox in the .qmail-default file. If that is not there, it lets all messages in, regardless of the user existing or not. Regards, Rick Rick, Thanks for the reply. I don't believe I modified the chkusr source. Both domains are using the same mailfilter file due to the symbolic link. I forgot to mention that the 'domains' folder is mounted with NFS as follows: mounting info --- supermail:/home/vpopmail/domains# mount 10.0.2.2:/home/vpopmail/domains on /home/vpopmail/domains type nfs (rw,hard,intr,addr=10.0.2.2,addr=10.0.2.2) - As far as I can tell, everything is identical between the domains. I have pasted info below in case somebody sees something I don't see. I have just stated some of the files to confirm that they are identical, and still midkan.com fails to block. -midkan.com--- supermail:/home/vpopmail/domains/midkan.com# cat .qmail-default | /usr/local/bin/maildrop /home/vpopmail/domains/midkan.com/mailfilter #| /home/vpopmail/bin/vdelivermail '' /home/vpopmail/domains/midkan.com/postmaster supermail:/home/vpopmail/domains# ls -al midkan.com/ total 100 -rw--- 1 vpopmail vchkpw 155 2007-01-02 14:12 .qmail-default lrwxrwxrwx 1 vpopmail vchkpw 13 2006-12-01 13:38 mailfilter - ../mailfilter --tri.net--- supermail:/home/vpopmail/domains/tri.net# cat .qmail-default | /usr/local/bin/maildrop /home/vpopmail/domains/tri.net/mailfilter #| /home/vpopmail/bin/vdelivermail '' bounce-no-mailbox #| /home/vpopmail/bin/vdelivermail '' /home/vpopmail/domains/tri.net/postmaster supermail:/home/vpopmail/domains/tri.net# ls -al total 332 -rw--- 1 vpopmail vchkpw 207 2007-01-15 17:09 .qmail-default lrwxrwxrwx 1 vpopmail vchkpw13 2006-11-29 16:09 mailfilter - ../mailfilter ---/home/vpopmail/domains/mailfilter--- These two lines are from mailfilter. This is what it defaults to when no account is found for a user during the delivery stage. Yes, right now all 'bounces' for all domains( the 7 non-working ones) are going to postmaster for tri.net. * I just reversed these lines so that 'bounce-no-mailbox' was the active line, and still the same response from CHKUSER. VPOP=| /home/vpopmail/bin/vdelivermail '' /home/vpopmail/domains/tri.net/postmaster #VPOP=| /home/vpopmail/bin/vdelivermail '' bounce-no-mailbox supermail:/home/vpopmail/domains# ls -al total 40780 -rw--- 1 vpopmail vchkpw 4524 2007-01-15 18:02 mailfilter
Re: [toaster] CHKUSER Problem
Sam Laffere wrote: Rick Macdougall wrote: Sam Laffere wrote: Sorry this is so long. Problem: 7 domains do not have invalid users blocked by CHKUSER, 14 domains work correctly. Details: Server set up with Shupp Toaster in early November 2006. Only variance is using maildrop and mailfilter to sort spam into folders. Problem is not fixed yet, but I just replaced the .qmail-default file, and the midkan.com domain is now rejecting using CHKUSER. All I did was edit the file back to : cat .qmail-default | /home/vpopmail/bin/vdelivermail '' bounce-no-mailbox #| /usr/local/bin/maildrop /home/vpopmail/domains/midkan.com/mailfilter #| /home/vpopmail/bin/vdelivermail '' /home/vpopmail/domains/midkan.com/postmaster I will keep troubleshooting to try to figure this out, but I can at least tell it is related to this file somehow. Thanks for the help. Sam
Re: [toaster] CHKUSER Problem
Sam Laffere wrote: Sam Laffere wrote: Rick Macdougall wrote: Sam Laffere wrote: Sorry this is so long. Problem: 7 domains do not have invalid users blocked by CHKUSER, 14 domains work correctly. Details: Server set up with Shupp Toaster in early November 2006. Only variance is using maildrop and mailfilter to sort spam into folders. Problem is not fixed yet, but I just replaced the .qmail-default file, and the midkan.com domain is now rejecting using CHKUSER. All I did was edit the file back to : cat .qmail-default | /home/vpopmail/bin/vdelivermail '' bounce-no-mailbox #| /usr/local/bin/maildrop /home/vpopmail/domains/midkan.com/mailfilter #| /home/vpopmail/bin/vdelivermail '' /home/vpopmail/domains/midkan.com/postmaster I will keep troubleshooting to try to figure this out, but I can at least tell it is related to this file somehow. Solution !! It seems the .qmail-default file needs to have the line #| /home/vpopmail/bin/vdelivermail '' bounce-no-mailbox somewhere in there before CHKUSER will really check. It can be remarked out, it does not need to be the last line. Both of these work. | /usr/local/bin/maildrop /home/vpopmail/domains/midkan.com/mailfilter #| /home/vpopmail/bin/vdelivermail '' /home/vpopmail/domains/midkan.com/postmaster #| /home/vpopmail/bin/vdelivermail '' bounce-no-mailbox | /usr/local/bin/maildrop /home/vpopmail/domains/midkan.com/mailfilter #| /home/vpopmail/bin/vdelivermail '' bounce-no-mailbox #| /home/vpopmail/bin/vdelivermail '' /home/vpopmail/domains/midkan.com/postmaster But the following does not. | /usr/local/bin/maildrop /home/vpopmail/domains/midkan.com/mailfilter #| /home/vpopmail/bin/vdelivermail '' /home/vpopmail/domains/midkan.com/postmaster Thanks again for the help. Just goes to show what your brain discounts as insignificant may really turn out to be the key! Sam
Re: [toaster] CHKUSER Problem
Sam Laffere wrote: Rick Macdougall wrote: Sam Laffere wrote: Sorry this is so long. Problem: 7 domains do not have invalid users blocked by CHKUSER, 14 domains work correctly. Details: Server set up with Shupp Toaster in early November 2006. Only variance is using maildrop and mailfilter to sort spam into folders. Summary: 21 domains were moved from previous vpopmail based mail server. There is no logic I can find as to why 7 of the domains do not block non-existing recipients at the qmail-smtpd point. The problem seems to be CHKUSER, but I am sure it is not a broken CHKUSER, but just something silly I am missing. The domains were moved a couple at a time from the old server, not in any order. I keep wondering if some little change happened after doing the first 14, and that somehow is affecting the 7 not working. I know that when I started moving the domains, I did a vadddomain for some of the first domains, but may not have done that for some of the later domains. My recollection is that I started out believing I needed to do that for each one. I know I am leaving out lots of details. I can readily provide any requested. I have looked through the archive, and can add the following: All files are owned vpopmail.vchkpw in all domains. All domains have the following in .qmail-default: | /usr/local/bin/maildrop /home/vpopmail/domains/domainname.net/mailfilter and all domains have mailfilter linked like this to the same file. mailfilter - ../mailfilter All permissions match between a working and a non-working domain. vqadmin says CatchAll: mailfilter for both of the following domains. If I click any option, it overwrites my .qmail-default. Hi, Unless you modified the source of chkusr, it requires bounce-no-mailbox in the .qmail-default file. If that is not there, it lets all messages in, regardless of the user existing or not. Regards, Rick Rick, Thanks for the reply. I don't believe I modified the chkusr source. Both domains are using the same mailfilter file due to the symbolic link. I forgot to mention that the 'domains' folder is mounted with NFS as follows: mounting info --- supermail:/home/vpopmail/domains# mount 10.0.2.2:/home/vpopmail/domains on /home/vpopmail/domains type nfs (rw,hard,intr,addr=10.0.2.2,addr=10.0.2.2) - As far as I can tell, everything is identical between the domains. I have pasted info below in case somebody sees something I don't see. I have just stated some of the files to confirm that they are identical, and still midkan.com fails to block. -midkan.com--- supermail:/home/vpopmail/domains/midkan.com# cat .qmail-default | /usr/local/bin/maildrop /home/vpopmail/domains/midkan.com/mailfilter #| /home/vpopmail/bin/vdelivermail '' /home/vpopmail/domains/midkan.com/postmaster supermail:/home/vpopmail/domains# ls -al midkan.com/ total 100 -rw--- 1 vpopmail vchkpw 155 2007-01-02 14:12 .qmail-default lrwxrwxrwx 1 vpopmail vchkpw 13 2006-12-01 13:38 mailfilter - ../mailfilter --tri.net--- supermail:/home/vpopmail/domains/tri.net# cat .qmail-default | /usr/local/bin/maildrop /home/vpopmail/domains/tri.net/mailfilter #| /home/vpopmail/bin/vdelivermail '' bounce-no-mailbox #| /home/vpopmail/bin/vdelivermail '' Hi, Make the #| /home/vpopmail/bin/vdelivermail '' bounce-no-mailbox the first line in the .qmail-default file and see if that doesn't fix it. It should. Regards, Rick
Re: [toaster] CHKUSER Problem
Sam Laffere wrote: Problem is not fixed yet, but I just replaced the .qmail-default file, and the midkan.com domain is now rejecting using CHKUSER. All I did was edit the file back to : cat .qmail-default | /home/vpopmail/bin/vdelivermail '' bounce-no-mailbox #| /usr/local/bin/maildrop /home/vpopmail/domains/midkan.com/mailfilter #| /home/vpopmail/bin/vdelivermail '' /home/vpopmail/domains/midkan.com/postmaster I will keep troubleshooting to try to figure this out, but I can at least tell it is related to this file somehow. Solution !! It seems the .qmail-default file needs to have the line #| /home/vpopmail/bin/vdelivermail '' bounce-no-mailbox Actually it can just be #bounce-no-mailbox I wasn't sure if it had to be on the first line or not. Alternatively you can edit the chkusr source and change bounce-no-mailbox to mailfilter if that is easier. Regards, Rick
Re: [toaster] CHKUSER Problem
Sam Laffere wrote: cat .qmail-default | /home/vpopmail/bin/vdelivermail '' bounce-no-mailbox If no mailbox for addressee, bounce #| /usr/local/bin/maildrop /home/vpopmail/domains/midkan.com/mailfilter If no mailbox for addressee, send to mailfilter #| /home/vpopmail/bin/vdelivermail '' /home/vpopmail/domains/midkan.com/postmaster If no mailbox for addressee, send to postmaster Either of the last two block chkuser from working because they direct ALL mail to non-existant mailboxes to a specific location. That means there are no non-existant mailboxes when those choices are selected.
Re: [toaster] chkuser problem
That sounds interesting Would you mind sharing you code changes to the rest of us please? Kim Hi, I've installed Bill's toaster to Dual opteron, GENTOO linux, 64bit environment. Everything without problem (jut needed to change 2 lines of his code ;-) Roman Carlos J. Muentes napsal(a): Wow, I had the same exact problem with SLES9 64-bit edition, but with courier-authlib! I did the same thing, uninstalled the 64-bit version, and installed the 32-bit vesion and all problems went away just like that. I found articles of others having the same issues with the 64-bit version of SLES, so I assume courier-authlib, as well as other lib's/bin's are having issues with compiling on 64-bith architectures. I also had issues with konqueror in the 64-bit version crashing for unknown reasons, that also went away with an install of the 32-bit version.
Re: [toaster] chkuser problem
Are you sure MySQL is reachable from the second server? Did you check if MySQL accounts work from the secondary server? MySQL has a particular way to handle users, check it. If problem persist, disable chkuser on secondary server and test if problem still exists. Tonino Adam Woodbeck wrote: I'm experiencing the weirdest problem with a second mail server I just set up. I've set up several toasters following Bill's instructions and many FreeBSD toasters following Matt Simerson's instructions all without any trouble. But the toaster I set up today is driving me nuts. I'm setting up a second mail server that will share load with our current mail server. They both connect to the same MySQL database for vpopmail authentication and spamassassin settings. Over NFS, both servers are sharing the same ~vpopmail/domains directory, /var/qmail/control directory, and /var/qmail/users directory. The primary mail server has no problems at all sending and receiving email. The second mail server will not accept any email for any local email accounts because chkuser reports not existing recipient. I've verified that vpopmail recognizes the email accounts I'm trying to send to (~vpopmail/bin/vuserinfo email_address returns the expected output with no errors). I've checked the ownership and permissions of every directory involved (especially the ~vpopmail/domains/ directory) and everything looks good (the primary mail server is successfully using these shared directories over NFS right now so permissions should be good). I've made sure that the UIDs and GIDs of all qmail users and the vpopmail user match on both servers. The only difference in the two servers is that the server I'm having trouble with is a 64-bit system (running SLES 9). I'm at my whit's end. Would anyone please suggest what I should try next to figure out why chkuser denies delivery attempt with the message 511 sorry, no mailbox here by that name (#5.1.1 - chkuser). I greatly appreciate the help. Sincerely, Adam Woodbeck I should mention that I did not change any chkuser settings before building and installing the toaster. Adam -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- La tua posta elettronica senza virus su UfficioPostale.IT Your virus free electronic mail on UfficioPostale.IT
Re: [toaster] chkuser problem
Hello Tonino, Thank you for the reply. Yes, I'm able to manually connect to the MySQL server from the secondary mail server as the vpopmail user and run queries on the vpopmail.vpopmail table. I'll disable chkuser and see if I am still unable to send email to local users through the secondary mail server. Adam On Tuesday 06 September 2005 06:56, Tonix wrote: Are you sure MySQL is reachable from the second server? Did you check if MySQL accounts work from the secondary server? MySQL has a particular way to handle users, check it. If problem persist, disable chkuser on secondary server and test if problem still exists. Tonino
Re: [toaster] chkuser problem
Ok. I fixed the problem. I uninstalled the 64-bit version of Suse Enterprise Linux 9 and installed the 32-bit version (the server is running an AMD Opteron). I then went through the install process of Bill's toaster and everything worked just fine. Chkuser works now as it should. Can anyone think of a reason chkuser would not work on a 64-bit OS? Everything else seems to compile and work just fine on the 64-bit version of SLES 9. Adam Adam Woodbeck wrote: Hello Tonino, I disabled chkuser and I was able to send email just fine to local users through the secondary mail server. It certainly appears as though there is something wrong with chkuser on the secondary mail server. I may start over from scratch again since the secondary server is not in production yet. Adam On Tuesday 06 September 2005 06:56, Tonix wrote: Are you sure MySQL is reachable from the second server? Did you check if MySQL accounts work from the secondary server? MySQL has a particular way to handle users, check it. If problem persist, disable chkuser on secondary server and test if problem still exists. Tonino
Re: [toaster] chkuser problem
Wow, I had the same exact problem with SLES9 64-bit edition, but with courier-authlib! I did the same thing, uninstalled the 64-bit version, and installed the 32-bit vesion and all problems went away just like that. I found articles of others having the same issues with the 64-bit version of SLES, so I assume courier-authlib, as well as other lib's/bin's are having issues with compiling on 64-bith architectures. I also had issues with konqueror in the 64-bit version crashing for unknown reasons, that also went away with an install of the 32-bit version. Adam Woodbeck wrote: Ok. I fixed the problem. I uninstalled the 64-bit version of Suse Enterprise Linux 9 and installed the 32-bit version (the server is running an AMD Opteron). I then went through the install process of Bill's toaster and everything worked just fine. Chkuser works now as it should. Can anyone think of a reason chkuser would not work on a 64-bit OS? Everything else seems to compile and work just fine on the 64-bit version of SLES 9. Adam Adam Woodbeck wrote: Hello Tonino, I disabled chkuser and I was able to send email just fine to local users through the secondary mail server. It certainly appears as though there is something wrong with chkuser on the secondary mail server. I may start over from scratch again since the secondary server is not in production yet. Adam On Tuesday 06 September 2005 06:56, Tonix wrote: Are you sure MySQL is reachable from the second server? Did you check if MySQL accounts work from the secondary server? MySQL has a particular way to handle users, check it. If problem persist, disable chkuser on secondary server and test if problem still exists. Tonino -- __ Carlos J. Muentes http://www.rockwithme.org - Rock With Me Guitar Stuff, Programming stuff, Family Stuff - all in one place
Re: [toaster] chkuser problem
On Sep 6, 2005, at 12:47 PM, Carlos J. Muentes wrote: Wow, I had the same exact problem with SLES9 64-bit edition, but with courier-authlib! I did the same thing, uninstalled the 64-bit version, and installed the 32-bit vesion and all problems went away just like that. I found articles of others having the same issues with the 64-bit version of SLES, so I assume courier-authlib, as well as other lib's/bin's are having issues with compiling on 64-bith architectures. I also had issues with konqueror in the 64-bit version crashing for unknown reasons, that also went away with an install of the 32-bit version. In the currently-unreleased 5.4.13 version of vpopmail, I added a patch from Jory A. Pratt to compile libvpopmail with the -fPIC compiler flag. He said it was related to AMD64 compiles and problems with linking to courier. Here are links to the two CVS changes for that patch: http://sourceforge.net/mailarchive/forum.php? thread_id=8106414forum_id=35252 http://sourceforge.net/mailarchive/forum.php? thread_id=8106413forum_id=35252 I don't know anything about 64-bit, or what the -fPIC option does, but you might want to try it and see if that helps. -Tom
Re: [toaster] chkuser problem
Tom Collins wrote: On Sep 6, 2005, at 12:47 PM, Carlos J. Muentes wrote: Wow, I had the same exact problem with SLES9 64-bit edition, but with courier-authlib! I did the same thing, uninstalled the 64-bit version, and installed the 32-bit vesion and all problems went away just like that. I found articles of others having the same issues with the 64-bit version of SLES, so I assume courier-authlib, as well as other lib's/bin's are having issues with compiling on 64-bith architectures. I also had issues with konqueror in the 64-bit version crashing for unknown reasons, that also went away with an install of the 32-bit version. In the currently-unreleased 5.4.13 version of vpopmail, I added a patch from Jory A. Pratt to compile libvpopmail with the -fPIC compiler flag. He said it was related to AMD64 compiles and problems with linking to courier. Here are links to the two CVS changes for that patch: http://sourceforge.net/mailarchive/forum.php? thread_id=8106414forum_id=35252 http://sourceforge.net/mailarchive/forum.php? thread_id=8106413forum_id=35252 I don't know anything about 64-bit, or what the -fPIC option does, but you might want to try it and see if that helps. man gcc shows this: -fPIC If supported for the target machine, emit position-independent code, suitable for dynamic linking and avoiding any limit on the size of the global offset table. This option makes a difference on the m68k, m88k, and the SPARC. Position-independent code requires special support, and therefore works only on certain machines. I've never hears of it either. Can anyone see if it solves the chkuser problem? Regards, Bill
[toaster] chkuser problem
I'm experiencing the weirdest problem with a second mail server I just set up. I've set up several toasters following Bill's instructions and many FreeBSD toasters following Matt Simerson's instructions all without any trouble. But the toaster I set up today is driving me nuts. I'm setting up a second mail server that will share load with our current mail server. They both connect to the same MySQL database for vpopmail authentication and spamassassin settings. Over NFS, both servers are sharing the same ~vpopmail/domains directory, /var/qmail/control directory, and /var/qmail/users directory. The primary mail server has no problems at all sending and receiving email. The second mail server will not accept any email for any local email accounts because chkuser reports not existing recipient. I've verified that vpopmail recognizes the email accounts I'm trying to send to (~vpopmail/bin/vuserinfo email_address returns the expected output with no errors). I've checked the ownership and permissions of every directory involved (especially the ~vpopmail/domains/ directory) and everything looks good (the primary mail server is successfully using these shared directories over NFS right now so permissions should be good). I've made sure that the UIDs and GIDs of all qmail users and the vpopmail user match on both servers. The only difference in the two servers is that the server I'm having trouble with is a 64-bit system (running SLES 9). I'm at my whit's end. Would anyone please suggest what I should try next to figure out why chkuser denies delivery attempt with the message 511 sorry, no mailbox here by that name (#5.1.1 - chkuser). I greatly appreciate the help. Sincerely, Adam Woodbeck
Re: [toaster] chkuser problem
Adam Woodbeck wrote: I'm experiencing the weirdest problem with a second mail server I just set up. I've set up several toasters following Bill's instructions and many FreeBSD toasters following Matt Simerson's instructions all without any trouble. But the toaster I set up today is driving me nuts. I'm setting up a second mail server that will share load with our current mail server. They both connect to the same MySQL database for vpopmail authentication and spamassassin settings. Over NFS, both servers are sharing the same ~vpopmail/domains directory, /var/qmail/control directory, and /var/qmail/users directory. The primary mail server has no problems at all sending and receiving email. The second mail server will not accept any email for any local email accounts because chkuser reports not existing recipient. I've verified that vpopmail recognizes the email accounts I'm trying to send to (~vpopmail/bin/vuserinfo email_address returns the expected output with no errors). I've checked the ownership and permissions of every directory involved (especially the ~vpopmail/domains/ directory) and everything looks good (the primary mail server is successfully using these shared directories over NFS right now so permissions should be good). I've made sure that the UIDs and GIDs of all qmail users and the vpopmail user match on both servers. The only difference in the two servers is that the server I'm having trouble with is a 64-bit system (running SLES 9). I'm at my whit's end. Would anyone please suggest what I should try next to figure out why chkuser denies delivery attempt with the message 511 sorry, no mailbox here by that name (#5.1.1 - chkuser). I greatly appreciate the help. Sincerely, Adam Woodbeck I should mention that I did not change any chkuser settings before building and installing the toaster. Adam
RE: [toaster] Chkuser problem??
I believe this is a permission problem. You can try to do this: With root, run qmail-smtpd and you should get something like this: 220 ESMTP MAIL FROM:[EMAIL PROTECTED] 250 ok RCPT TO:[EMAIL PROTECTED] CHKUSER rejected rcpt: from [EMAIL PROTECTED]:: remote :unknown:unknown rcpt [EMAIL PROTECTED] : not existing recipient 511 sorry, no mailbox here by that name (#5.1.1 - chkuser) If you can get the above result by running qmail-smtpd as root, then user privilege is the problem. To my understanding, if the user running qmail-smtpd has no privilege to read the vpopmail files, the chkuser result will always be permissive. Kelvin Wu -Original Message- From: tonix (Antonio Nati) [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 27, 2005 11:09 PM To: toaster@shupp.org Subject: Re: [toaster] Chkuser problem?? Check all other chkuser #define and see their behaviour. Then check if you have any VARIABLE that influences chkuser. Last attempt, put chkuser debugging to work and see what happens. (some doubts about previous question... slx:~ # vuserinfo [EMAIL PROTECTED] no such user [EMAIL PROTECTED] Is yapost.com local [inside rcpthosts]?) Tonino At 15.05 27/07/2005, you wrote: At 06.42 27/07/2005, you wrote: If chkuser is not enabled than it return a positive answer (found) to any query. Check if chkuser is enabled and check using qmailadmin if bouncing is enabled. Tonino chkuser is enabled and I have checked qmailadmin, catchall is bounced. So is there any problem? or should I reinstall vpopmail and qmail again? Thanks a lot. Regards, qing
RE: [toaster] Chkuser problem??
I believe this is a permission problem. You can try to do this: With root, run qmail-smtpd and you should get something like this: 220 ESMTP MAIL FROM:[EMAIL PROTECTED] 250 ok RCPT TO:[EMAIL PROTECTED] CHKUSER rejected rcpt: from [EMAIL PROTECTED]:: remote :unknown:unknown rcpt [EMAIL PROTECTED] : not existing recipient 511 sorry, no mailbox here by that name (#5.1.1 - chkuser) If you can get the above result by running qmail-smtpd as root, then user privilege is the problem. To my understanding, if the user running qmail-smtpd has no privilege to read the vpopmail files, the chkuser result will always be permissive. Kelvin Wu Thanks for all of your help. I have fixed the problem now. I just deleted .qmail-janet and .qmail-janet-default in the domain directory, then it works fine now. I have no idea why vdelolduser did not remove that two files when purpged the user. Regards, qing
Re: [toaster] Chkuser problem??
At 06.42 27/07/2005, you wrote: Dear all, I found a strange problem in my server. Chkuser seems not work porperly. Here is the information: 2005-07-27 13:07:31.616557500 CHKUSER accepted rcpt: from [EMAIL PROTECTED]:[EMAIL PROTECTED]: remote www.ezrs.com:unknown:202.130.120.114 rcpt [EMAIL PROTECTED] : found existing recipient slx:~ # vuserinfo [EMAIL PROTECTED] no such user [EMAIL PROTECTED] [EMAIL PROTECTED] does not exist but chkuser let the message pass through. How can I fix the problem? Thanks a lot. If chkuser is not enabled than it return a positive answer (found) to any query. Check if chkuser is enabled and check using qmailadmin if bouncing is enabled. Tonino Regards, qing.
RE: [toaster] Chkuser problem??
Believe me when I say I am _far_ from understanding this stuff. Do you have a Catch All account enabled? Where did the message end up? Deion Mule Christopher --Mule was here!-- --Republican Team Leader And Proud Of It!-- http://www.gopteamleader.com/about.asp Original Message Follows From: [EMAIL PROTECTED] Reply-To: toaster@shupp.org To: toaster@shupp.org Subject: [toaster] Chkuser problem?? Date: Wed, 27 Jul 2005 13:42:57 +0800 (HKT) Dear all, I found a strange problem in my server. Chkuser seems not work porperly. Here is the information: 2005-07-27 13:07:31.616557500 CHKUSER accepted rcpt: from [EMAIL PROTECTED]:[EMAIL PROTECTED]: remote www.ezrs.com:unknown:202.130.120.114 rcpt [EMAIL PROTECTED] : found existing recipient slx:~ # vuserinfo [EMAIL PROTECTED] no such user [EMAIL PROTECTED] [EMAIL PROTECTED] does not exist but chkuser let the message pass through. How can I fix the problem? Thanks a lot. Regards, qing.
Re: [toaster] Chkuser problem??
At 06.42 27/07/2005, you wrote: If chkuser is not enabled than it return a positive answer (found) to any query. Check if chkuser is enabled and check using qmailadmin if bouncing is enabled. Tonino chkuser is enabled and I have checked qmailadmin, catchall is bounced. So is there any problem? or should I reinstall vpopmail and qmail again? Thanks a lot. Regards, qing
RE: [toaster] Chkuser problem??
Believe me when I say I am _far_ from understanding this stuff. Do you have a Catch All account enabled? Where did the message end up? Deion Mule Christopher Catch All is bounced. The message is still in the queue. Any suggestion? Thanks a lot. Regards, qing
[toaster] Chkuser problem??
Dear all, I found a strange problem in my server. Chkuser seems not work porperly. Here is the information: 2005-07-27 13:07:31.616557500 CHKUSER accepted rcpt: from [EMAIL PROTECTED]:[EMAIL PROTECTED]: remote www.ezrs.com:unknown:202.130.120.114 rcpt [EMAIL PROTECTED] : found existing recipient slx:~ # vuserinfo [EMAIL PROTECTED] no such user [EMAIL PROTECTED] [EMAIL PROTECTED] does not exist but chkuser let the message pass through. How can I fix the problem? Thanks a lot. Regards, qing.