Re: [vchkpw] multiple issues.....cannot get in!!
On Jan 18, 2005, at 7:27 PM, Bob Ababurko wrote: I am running vpopmail with vchkpw and I am having an few isssues that I believe are connected. I have many virtual domains, but on at lease one account in one domain, I cannot log into my mail and see the error, Sending of the password did not succeed. unable to scan $HOME/Maildir. (using mozilla thunderbird) OR -ERR unable to scan $HOME/Maildir, telneting to box Sounds like there's a problem with that account's Maildir. Use vuserinfo to see what the home directory is set to. su to vpopmail and see if you can get to that directory. Make sure there are three directories, new, cur and tmp in there. Compare the permissions and ownership to another user's Maildir that is working correctly. -- 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/
[vchkpw] qmail-default, bounce and reply
Hi.. This is my fist mail from the list. I need a help for one question. I have installed netqmail-1.05, vpopmail-5.4.7 without mysql and chkuser-2.0.5-qmailrocks.patch. The problem is bounced and replys mails, the vckuser block my alias-default. Example: # cat .qmail-hello [EMAIL PROTECTED] # cat .qmail-hello-default [EMAIL PROTECTED] | /var/qmail/bots/myprogram # If I to send an email for [EMAIL PROTECTED], chkuser accept the mail. but if i to send an email for [EMAIL PROTECTED], chkuer block the mail. below it follows an examplo of as it would be work, this server is of inter.com this user or alias does't exist: -- Delivery to the following recipient failed permanently: [EMAIL PROTECTED] Technical details of failure: PERM_FAILURE: SMTP Error (state 10): 550 sorry, no mailbox here by that name (#5.1.1 - chkusr) --- and below is on alias for maillist program. --- added to the vchkpw mailing list, please send an empty reply to this address: [EMAIL PROTECTED] thanks best regards. Juarez Junior
Re: [vchkpw] qmail-default, bounce and reply
I can't say for the qmailrocks version, in standard chkuser 2.0.8 you have new defines that may help you. CHKUSER_ENABLE_ALIAS_DEFAULT Enables checking of .qmail-alias-default files You may try to keep your patched qmail-smtpd.c and copy newer chkuser.h, chkuser_settings.h, chkuser.c, then change settings, compile and see if you have reached your goal. Tonino At 13.10 19/01/2005, you wrote: Hi.. This is my fist mail from the list. I need a help for one question. I have installed netqmail-1.05, vpopmail-5.4.7 without mysql and chkuser-2.0.5-qmailrocks.patch. The problem is bounced and replys mails, the vckuser block my alias-default. Example: # cat .qmail-hello [EMAIL PROTECTED] # cat .qmail-hello-default [EMAIL PROTECTED] | /var/qmail/bots/myprogram # If I to send an email for [EMAIL PROTECTED], chkuser accept the mail. but if i to send an email for [EMAIL PROTECTED], chkuer block the mail. below it follows an examplo of as it would be work, this server is of inter.com this user or alias does't exist: -- Delivery to the following recipient failed permanently: [EMAIL PROTECTED] Technical details of failure: PERM_FAILURE: SMTP Error (state 10): 550 sorry, no mailbox here by that name (#5.1.1 - chkusr) --- and below is on alias for maillist program. --- added to the vchkpw mailing list, please send an empty reply to this address: [EMAIL PROTECTED] thanks best regards. Juarez Junior
Re: [vchkpw] multiple issues.....cannot get in!!
Tom Collins wrote: On Jan 18, 2005, at 7:27 PM, Bob Ababurko wrote: I am running vpopmail with vchkpw and I am having an few isssues that I believe are connected. I have many virtual domains, but on at lease one account in one domain, I cannot log into my mail and see the error, Sending of the password did not succeed. unable to scan $HOME/Maildir. (using mozilla thunderbird) OR -ERR unable to scan $HOME/Maildir, telneting to box Sounds like there's a problem with that account's Maildir. Use vuserinfo to see what the home directory is set to. su to vpopmail and see if you can get to that directory. Make sure there are three directories, new, cur and tmp in there. Compare the permissions and ownership to another user's Maildir that is working correctly. -- 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/ All the permissions are the same in this directory as ones that are working fine. When I do a vuserinfo on this user, it shows that it is able to authenticate, by giving a recent time of authentication, but it is not able to read the Maildir for some reason. The permissions in this dir are: drwx-- 2 vpopmail vchkpw 367104 Jan 15 21:40 cur -rw-r--r-- 1 vpopmail vchkpw 297 Jan 19 09:24 maildirsize drwx-- 2 vpopmail vchkpw 86016 Jan 19 09:24 new drwx-- 2 vpopmail vchkpw 512 Jan 19 09:24 tmp and the dir above it...the users home dir: drwx-- 3 vpopmail vchkpw 512 Oct 26 00:27 . drwx-- 9 vpopmail vchkpw 512 Jan 12 15:22 .. drwx-- 8 vpopmail vchkpw 512 Jan 19 08:29 Maildir -rw--- 1 vpopmail vchkpw 12 Jan 19 09:31 lastauth I am very flustered and
RE: [vchkpw] vpopmail and nfs
Tom Collins wrote: Try renaming the assign and cdb files, make a copy of the renamed assign file as 'assign' and set the correct ownership/permissions on it, and then try adding the domain. I renamed the assign and cdb files, copied them back to their original names, set ownership/permissions and tried to add the domain again, same error. Although I'm not 100% sure what the ownship/permissions should be. File busy try again later! Failed while attempting to update_file() the assign file Error. Failed to add domain to assign file Error: Could not update file -rw-rw-rw-1 vpopmail vchkpw 89 Jan 19 09:21 assign -rw-rw-rw-1 vpopmail vchkpw 89 Jan 18 12:30 assign.gs -rw-rw-rw-1 vpopmail vchkpw 0 Jan 19 2005 assign.lock -rw-rw-rw-1 vpopmail vchkpw 69 Jan 18 12:30 assign.rpmsave -rw-rw-rw-1 vpopmail vchkpw 2181 Jan 18 12:30 cdb.gs -rw-rw-rw-1 vpopmail vchkpw 2161 Jan 18 12:30 cdb.rpmsave
RE: [vchkpw] vpopmail and nfs
Tom Collins wrote: Try renaming the assign and cdb files, make a copy of the renamed assign file as 'assign' and set the correct ownership/permissions on it, and then try adding the domain. I renamed the assign and cdb files, copied them back to their original names, set ownership/permissions and tried to add the domain again, same error. Although I'm not 100% sure what the ownship/permissions should be. File busy try again later! Failed while attempting to update_file() the assign file Error. Failed to add domain to assign file Error: Could not update file Can you try running strace and paste the output? That error could be coming from several different places within update_file().
RE: [vchkpw] vpopmail and nfs
At 08:55 AM 1/19/2005, you wrote: File busy try again later! Failed while attempting to update_file() the assign file Error. Failed to add domain to assign file Error: Could not update file -rw-rw-rw-1 vpopmail vchkpw 89 Jan 19 09:21 assign -rw-rw-rw-1 vpopmail vchkpw 89 Jan 18 12:30 assign.gs -rw-rw-rw-1 vpopmail vchkpw 0 Jan 19 2005 assign.lock -rw-rw-rw-1 vpopmail vchkpw 69 Jan 18 12:30 assign.rpmsave -rw-rw-rw-1 vpopmail vchkpw 2181 Jan 18 12:30 cdb.gs -rw-rw-rw-1 vpopmail vchkpw 2161 Jan 18 12:30 cdb.rpmsave i'm not familiar with the OS you'd mentioned you're running, but at least under Solaris (inventors of NFS), if the NFS connection drops while there are active locks, files named .nfs.X - where X is the PID, as i recall - will be generated. you might run a find for such files.i think it may be possible to'flush' those, but i don't recall the mechanism (it's been years since i ran NFS). Paul Theodoropoulos http://www.anastrophe.com http://www.smileglobal.com
Re: [vchkpw] vpopmail and nfs
I assume CentOS is some kind of Linux? The email below is geared toward Linux. File busy try again later! Failed while attempting to update_file() the assign file Error. Failed to add domain to assign file Error: Could not update file Let's see if we can use the source to figure out what's wrong. In vpopmail.c, the code is trying to append a line to the assign file. To do this with FILE_LOCKING defined, the update_file routine needs to open and lock assign.lock. If it doesn't, it complains: Failed while attempting to update_file() the assign file The update_file routine calls get_write_lock to do its dirty work. Here's the routine in file_lock.c: int get_write_lock( FILE *fs ) { int try = 0; while(write_lock(fileno(fs), 0, SEEK_SET, 0) 0) { if (errno == EAGAIN || errno == EACCES || errno == ENOLCK ) { /* there might be other errors cases in which * you might try again. */ if (++try MAX_TRY_RLOCK) { (void) sleep(2); continue; } (void) fprintf(stderr,File busy try again later!\n); return(-1); } return(-2); } return(0); } The write_lock() routine is a wrapper for fcntl(). If you look at the fcntl(2) man page, it lists many reasons why it would fail. Based on your second email, it's not permissions. Some other program must have a lock on the file and is not letting go, or there's some other odd problem (NFS? extended attributes?). I have a few suggestions to help debugging: 1. Run strace -f /home/vpopmail/bin/vadddomain ...etc Look at the output right before the printf of the error messages for the return value from fcntl. 2. Run lsof assign.lock after it fails to see if there are any other processes that have the file open. This would be done on both the client and the server. 3. Add the following line before the line that has ++try MAX_TRY_RLOCK: (void) perror(Debug write_lock: ) Then recompile vpopmail, install it, and try it again (don't forget to make backups!). You'll hopefully get a reason for the locking failure printed when it happens again. 4. Restart the NFS client and the NFS server and try again (stale lock). Also, something you might need to do is make sure your NFS server doesn't clobber UID names. I noticed in one of your emails that assign.lock was owned by nfsnobody. The export options on the NFS server should use no_all_squash,no_root_squash,async,rw. On most distros, no_all_squash is the default option, but your distro might have it set the other way. Other NFS stuff: 1. The client needs to use NFS V3 for fcntl locking to work. See this article: http://www.quepublishing.com/articles/article.asp?p=23618seqNum=4 2. Is nfslockd running on the client? 3. Is the NFS client and NFS server running the same OS? If not, could there be some compatability issues? Hope this helps. -- Eric Ziegast PS: If all else fails, install vpopmail on the NFS server and run the administrative commands (vadddomain, vadduser, etc.) on the NFS server. Patient: Doctor, when I hit my hand to make it spin around, it hurts. Doctor: Stop doing that, and you'll be fine. That'll be $200.
RE: [vchkpw] multiple issues.....cannot get in!!
How many messages does the user have? I have seen this error when there are thousands of messages in a user's Maildir. Charlie -Original Message- From: Bob Ababurko [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 19, 2005 7:31 AM To: vchkpw@inter7.com Subject: Re: [vchkpw] multiple issues.cannot get in!! Tom Collins wrote: On Jan 18, 2005, at 7:27 PM, Bob Ababurko wrote: I am running vpopmail with vchkpw and I am having an few isssues that I believe are connected. I have many virtual domains, but on at lease one account in one domain, I cannot log into my mail and see the error, Sending of the password did not succeed. unable to scan $HOME/Maildir. (using mozilla thunderbird) OR -ERR unable to scan $HOME/Maildir, telneting to box Sounds like there's a problem with that account's Maildir. Use vuserinfo to see what the home directory is set to. su to vpopmail and see if you can get to that directory. Make sure there are three directories, new, cur and tmp in there. Compare the permissions and ownership to another user's Maildir that is working correctly. -- 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/ All the permissions are the same in this directory as ones that are working fine. When I do a vuserinfo on this user, it shows that it is able to authenticate, by giving a recent time of authentication, but it is not able to read the Maildir for some reason. The permissions in this dir are: drwx-- 2 vpopmail vchkpw 367104 Jan 15 21:40 cur -rw-r--r-- 1 vpopmail vchkpw 297 Jan 19 09:24 maildirsize drwx-- 2 vpopmail vchkpw 86016 Jan 19 09:24 new drwx-- 2 vpopmail vchkpw 512 Jan 19 09:24 tmp and the dir above it...the users home dir: drwx-- 3 vpopmail vchkpw 512 Oct 26 00:27 . drwx-- 9 vpopmail vchkpw 512 Jan 12 15:22 .. drwx-- 8 vpopmail vchkpw 512 Jan 19 08:29 Maildir -rw--- 1 vpopmail vchkpw 12 Jan 19 09:31 lastauth I am very flustered and
RE: [vchkpw] vpopmail and nfs
Nick Harring wrote: Can you try running strace and paste the output? That error could be coming from several different places within update_file(). Thanks for the reply Nick. Below is the strace of running the vadddomain command. execve(/home/vpopmail/bin/vadddomain, [/home/vpopmail/bin/vadddomain, domain5.com, password], [/* 20 vars */]) = 0 uname({sys=Linux, node=manage.readyhosting.com, ...}) = 0 brk(0) = 0x835 open(/etc/ld.so.preload, O_RDONLY)= -1 ENOENT (No such file or directory) open(/etc/ld.so.cache, O_RDONLY) = 3 fstat64(3, {st_mode=S_IFREG|0644, st_size=18539, ...}) = 0 old_mmap(NULL, 18539, PROT_READ, MAP_PRIVATE, 3, 0) = 0xb75f5000 close(3)= 0 open(/usr/lib/mysql/libmysqlclient.so.10, O_RDONLY) = 3 read(3, \177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0p\201\0..., 512) = 512 fstat64(3, {st_mode=S_IFREG|0755, st_size=221376, ...}) = 0 old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb75f4000 old_mmap(NULL, 224832, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x665000 old_mmap(0x683000, 102400, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x1d000) = 0x683000 close(3)= 0 open(/usr/lib/libz.so.1, O_RDONLY)= 3 read(3, \177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\340\31..., 512) = 512 fstat64(3, {st_mode=S_IFREG|0755, st_size=52584, ...}) = 0 old_mmap(NULL, 55564, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x36c000 old_mmap(0x378000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0xb000) = 0x378000 close(3)= 0 open(/lib/tls/libm.so.6, O_RDONLY)= 3 read(3, \177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\3604\0..., 512) = 512 fstat64(3, {st_mode=S_IFREG|0755, st_size=213396, ...}) = 0 old_mmap(NULL, 135616, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x968000 old_mmap(0x989000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x21000) = 0x989000 close(3)= 0 open(/lib/libcrypt.so.1, O_RDONLY)= 3 read(3, \177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\220\t\0..., 512) = 512 fstat64(3, {st_mode=S_IFREG|0755, st_size=23364, ...}) = 0 old_mmap(NULL, 181308, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x56c000 old_mmap(0x571000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x4000) = 0x571000 old_mmap(0x572000, 156732, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x572000 close(3)= 0 open(/lib/tls/libc.so.6, O_RDONLY)= 3 read(3, \177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\200X\1..., 512) = 512 fstat64(3, {st_mode=S_IFREG|0755, st_size=1568904, ...}) = 0 old_mmap(NULL, 1276876, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x1be000 old_mmap(0x2f, 16384, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x131000) = 0x2f old_mmap(0x2f4000, 7116, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x2f4000 close(3)= 0 open(/lib/libnsl.so.1, O_RDONLY) = 3 read(3, \177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0 \0\000..., 512) = 512 fstat64(3, {st_mode=S_IFREG|0755, st_size=90984, ...}) = 0 old_mmap(NULL, 84832, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0xbb6000 old_mmap(0xbc8000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x11000) = 0xbc8000 old_mmap(0xbc9000, 7008, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0xbc9000 close(3)= 0 old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb75f3000 set_thread_area({entry_number:-1 - 6, base_addr:0xb75f3500, limit:1048575, seg_32bit:1, contents:0, read_exec_only:0, limit_in_pages:1, seg_not_present:0, useable:1}) = 0 munmap(0xb75f5000, 18539) = 0 brk(0) = 0x835 brk(0x8371000) = 0x8371000 brk(0) = 0x8371000 open(/var/qmail/users/cdb, O_RDONLY) = -1 ENOENT (No such file or directory) umask(077) = 022 getcwd(/var/qmail/users, 256) = 17 chdir(/home/vpopmail) = 0 chdir(domains)= 0 open(/home/vpopmail/etc/vpopmail.mysql, O_RDONLY) = 3 fstat64(3, {st_mode=S_IFREG|0644, st_size=38, ...}) = 0 mmap2(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb75f8000 read(3, 10.1.4.10|0|vpopmail|ab13zxc|vpo..., 8192) = 38 read(3, , 8192) = 0 open(/etc/nsswitch.conf, O_RDONLY)= 4 fstat64(4, {st_mode=S_IFREG|0644, st_size=1686, ...}) = 0 mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb75f7000 read(4, #\n# /etc/nsswitch.conf\n#\n# An ex..., 4096) = 1686 read(4, , 4096) = 0 close(4)= 0 munmap(0xb75f7000, 4096)= 0 open(/etc/ld.so.cache, O_RDONLY) = 4 fstat64(4, {st_mode=S_IFREG|0644, st_size=18539, ...}) = 0
RE: [vchkpw] chkuser 2.0 and vpopmail w/mysql
-Original Message- From: Jeremy Kitchen [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 18, 2005 3:03 PM To: vchkpw@inter7.com Subject: Re: [vchkpw] chkuser 2.0 and vpopmail w/mysql On Tuesday 18 January 2005 03:23 pm, Brian Lanier wrote: This is where I am not clear and would love to be corrected. I don't want delivery to happen on my public facing mail server, but I would like to run chkuser there to prevent bad mail from even coming into my mail system. that's a little trickier, and requires a certain type of setup. Any examples of this type of setup? Any docs or postings of anyone have used this type of setup? With our setup, we use a first layer to knock down all the easy/obvious email and then pass on to our scanning layers to reduce the load on our AV setup. This dependency on using the virtualdomains file kills this type of setup. I have heard a lot of success stories using chkuser and would like to implement it on our setup. I thought I had seen people using this tiered approach with vpopmail and chkuser, just no details on implementation. Thanks for all the info so far. -Jeremy -- Jeremy Kitchen ++ Systems Administrator ++ Inter7 Internet Technologies, Inc. [EMAIL PROTECTED] ++ www.inter7.com ++ 866.528.3530 ++ 815.776.9465 int'l kitchen @ #qmail #gentoo on EFnet IRC ++ scriptkitchen.com/qmail GnuPG Key ID: 481BF7E2 ++ jabber:[EMAIL PROTECTED] -- Brian
RE: [vchkpw] vpopmail and nfs
Can you try running strace and paste the output? That error could be coming from several different places within update_file(). Thanks for the reply Nick. Below is the strace of running the vadddomain command. execve(/home/vpopmail/bin/vadddomain, [/home/vpopmail/bin/vadddomain, domain5.com, password], [/* 20 vars */]) = 0 uname({sys=Linux, node=manage.readyhosting.com, ...}) = 0 brk(0) = 0x835 open(/etc/ld.so.preload, O_RDONLY)= -1 ENOENT (No such file or snip unimportant strace output rt_sigaction(SIGCHLD, NULL, {SIG_DFL}, 8) = 0 rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0 nanosleep({2, 0}, {2, 0}) = 0 fcntl64(5, F_SETLK, {type=F_WRLCK, whence=SEEK_SET, start=0, len=0}) = -1 ENOLCK (No locks available) rt_sigprocmask(SIG_BLOCK, [CHLD], [], 8) = 0 rt_sigaction(SIGCHLD, NULL, {SIG_DFL}, 8) = 0 rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0 nanosleep({2, 0}, {2, 0}) = 0 fcntl64(5, F_SETLK, {type=F_WRLCK, whence=SEEK_SET, start=0, len=0}) = -1 ENOLCK (No locks available) rt_sigprocmask(SIG_BLOCK, [CHLD], [], 8) = 0 rt_sigaction(SIGCHLD, NULL, {SIG_DFL}, 8) = 0 rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0 nanosleep({2, 0}, {2, 0}) = 0 fcntl64(5, F_SETLK, {type=F_WRLCK, whence=SEEK_SET, start=0, len=0}) = -1 ENOLCK (No locks available) rt_sigprocmask(SIG_BLOCK, [CHLD], [], 8) = 0 rt_sigaction(SIGCHLD, NULL, {SIG_DFL}, 8) = 0 rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0 nanosleep({2, 0}, {2, 0}) = 0 fcntl64(5, F_SETLK, {type=F_WRLCK, whence=SEEK_SET, start=0, len=0}) = -1 ENOLCK (No locks available) rt_sigprocmask(SIG_BLOCK, [CHLD], [], 8) = 0 rt_sigaction(SIGCHLD, NULL, {SIG_DFL}, 8) = 0 rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0 nanosleep({2, 0}, {2, 0}) = 0 fcntl64(5, F_SETLK, {type=F_WRLCK, whence=SEEK_SET, start=0, len=0}) = -1 ENOLCK (No locks available) rt_sigprocmask(SIG_BLOCK, [CHLD], [], 8) = 0 rt_sigaction(SIGCHLD, NULL, {SIG_DFL}, 8) = 0 rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0 nanosleep({2, 0}, {2, 0}) = 0 fcntl64(5, F_SETLK, {type=F_WRLCK, whence=SEEK_SET, start=0, len=0}) = -1 ENOLCK (No locks available) write(2, File busy try again later!\n, 27) = 27 write(2, Failed while attempting to updat..., 57) = 57 chdir(/home/vpopmail) = 0 The problem is definitely acquiring the lock. Have you restarted nfs and nfs-locking on both sides post power outage? This is almost definitely a straight-forward NFS locking issue. Hope that helps, Nick
Re: [vchkpw] chkuser 2.0 and vpopmail w/mysql
On Wednesday 19 January 2005 01:42 pm, Brian Lanier wrote: -Original Message- From: Jeremy Kitchen [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 18, 2005 3:03 PM To: vchkpw@inter7.com Subject: Re: [vchkpw] chkuser 2.0 and vpopmail w/mysql On Tuesday 18 January 2005 03:23 pm, Brian Lanier wrote: This is where I am not clear and would love to be corrected. I don't want delivery to happen on my public facing mail server, but I would like to run chkuser there to prevent bad mail from even coming into my mail system. that's a little trickier, and requires a certain type of setup. Any examples of this type of setup? Any docs or postings of anyone have used this type of setup? With our setup, we use a first layer to knock down all the easy/obvious email and then pass on to our scanning layers to reduce the load on our AV setup. This dependency on using the virtualdomains file kills this type of setup. I have heard a lot of success stories using chkuser and would like to implement it on our setup. I thought I had seen people using this tiered approach with vpopmail and chkuser, just no details on implementation. well, you could use the qmailqueue patch and two qmail installs on the same system to make it work. as far as I know, the chkuser patch uses conf-qmail to find the home directory. You'd have your say, /var/qmail2 qmail-send running, and use /var/qmail2/bin/qmail-queue to queue the mail, and it would have your smtproutes and stuff. also, you'd have to either nfs mount or make a local copy of your domains directories so the chkuser patch can look for .qmail files and such. -Jeremy -- Jeremy Kitchen ++ Systems Administrator ++ Inter7 Internet Technologies, Inc. [EMAIL PROTECTED] ++ www.inter7.com ++ 866.528.3530 ++ 815.776.9465 int'l kitchen @ #qmail #gentoo on EFnet IRC ++ scriptkitchen.com/qmail GnuPG Key ID: 481BF7E2 ++ jabber:[EMAIL PROTECTED] pgpAfEoeASjt6.pgp Description: PGP signature
RE: [vchkpw] vpopmail and nfs
I assume CentOS is some kind of Linux? The email below is geared toward Linux. Yes, CentOS is a 100% compatible rebuild of Red Hat Enterprise Linux. The write_lock() routine is a wrapper for fcntl(). If you look at the fcntl(2) man page, it lists many reasons why it would fail. Running strace and reading the fcntl man page brings me to the following return value: ENOLCK Too many segment locks open, lock table is full, or a remote locking protocol failed (e.g. locking over NFS). To me it seems like a NFS locking problem, although I'm just guessing. 2. Run lsof assign.lock after it fails to see if there are any other processes that have the file open. This would be done on both the client and the server. Running lsof assign.lock after the vadddomain command fails on both the client and server had no output. 4. Restart the NFS client and the NFS server and try again (stale lock). Tried restarting NFS client and server, no luck. Also, something you might need to do is make sure your NFS server doesn't clobber UID names. I noticed in one of your emails that assign.lock was owned by nfsnobody. The export options on the NFS server should use no_all_squash,no_root_squash,async,rw. On most distros, no_all_squash is the default option, but your distro might have it set the other way. Previously, the folders were exported as (sync,rw). The thought was on data reliability in a harsh network environment. I've since changed the export options to (no_all_squash,no_root_squash,async,rw). This hasn't made any difference. The thing is, this used to work before the power outage, so I can't imagine it's a configuration issue. 1. The client needs to use NFS V3 for fcntl locking to work. I've since changed the mount options in fstab to rw,hard,intr,nfsvers=3 to force NFS v3, no luck. 2. Is nfslockd running on the client? I was able to confirm rpc.statd and lockd were running: rpcuser 13578 0.0 0.1 1664 740 ?S14:41 0:00 rpc.statd root 11464 0.0 0.0 00 ?SW Jan18 0:00 [lockd] 3. Is the NFS client and NFS server running the same OS? If not, could there be some compatability issues? Yes, the NFS cilent and NFS server are both running the same OS. Hope this helps. Thank you very much for your efforts! They have proven very helpful in troubleshooting this issue. I wouldn't have known where to begin otherwise. PS: If all else fails, install vpopmail on the NFS server and run the administrative commands (vadddomain, vadduser, etc.) on the NFS server. I'd love to except the NFS server is connected to a private network, only the management box is connected to the private network and the internet.
Re: [vchkpw] chkuser 2.0 and vpopmail w/mysql
Brian Lanier wrote: -Original Message- From: Jeremy Kitchen [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 18, 2005 3:03 PM To: vchkpw@inter7.com Subject: Re: [vchkpw] chkuser 2.0 and vpopmail w/mysql On Tuesday 18 January 2005 03:23 pm, Brian Lanier wrote: This is where I am not clear and would love to be corrected. I don't want delivery to happen on my public facing mail server, but I would like to run chkuser there to prevent bad mail from even coming into my mail system. that's a little trickier, and requires a certain type of setup. Any examples of this type of setup? Any docs or postings of anyone have used this type of setup? With our setup, we use a first layer to knock down all the easy/obvious email and then pass on to our scanning layers to reduce the load on our AV setup. This dependency on using the virtualdomains file kills this type of setup. I have heard a lot of success stories using chkuser and would like to implement it on our setup. I thought I had seen people using this tiered approach with vpopmail and chkuser, just no details on implementation. I'm pretty sure vpopmail verifies the domain exists as a vpopmail domain by looking at the qmail/users/assign file (at least it does here with 5.4.6), so you should be able to do what you want if the chkusr patch relies on vpopmail calls (which it did in 1.0, I haven't used the 2.0 version yet). I missed the earlier messages on this topic so I'm not quite sure what you want to do but if you want a primary MX to accept mail and then forward it on to a second machine that does local delivery, adding the domain on the primary MX, then removing it from virtualdomains and adding into smtproutes *should* work. I did do a similar setup for a client but I was using cdb not mysql, and duplicating the vpasswd files for each domain and that did work. Should be easy enough to do the same thing with mysql although I think you'll have to manually add the domains to the assign file and rebuild it yourself if you are using the mysql server of the local delivery machine, plus add the domains vpopmail directory and .qmail-default file and any user .qmail files... yesh. Ummm, manually add the domain to assign, rebuild and nfs mount the vpopmail domains/ directory :) Did that make any sense at all ? Regards, Rick
Re: [vchkpw] multiple issues.....cannot get in!!
On Jan 19, 2005, at 1:45 PM, Charles J. Boening wrote: How many messages does the user have? I have seen this error when there are thousands of messages in a user's Maildir. Charlie I agree with Charlie. Thing to do is set the DATALIMIT higher, it is because it is unable to use that amount of memory that is required to run through the entire directory structure. There is normally nothing wrong with the Maildir itself most of the time. J-W Regeer