Re: [vchkpw] Vpopmail Debian
The alternative way, of course, is to use the slightly more out-of-date packages that Debian provides. Download (or dselect) the qmail-src package in Debian, the run build-qmail (during installation this will mention this, so don't worry). After that, grab the vpopmail packages in Debian as well, and install those. Blam. Apart from some tweaking, you're done. Of course, you don't get the new fancy features that are in the latest versions, but it works, and so far for us it has been reliable. YMMV. - Original Message - From: David Phillips [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, October 24, 2002 10:06 AM Subject: Re: [vchkpw] Vpopmail Debian Zeno Davatz writes: So you also suggest not using the binaries from the Debian packages for my Mail-setup? This is my recommendation for the easiest and best vpopmail setup on Debian. This is from memory, so I might be missing something: * Add Gerrit Pape's repository to your apt sources list. Install the qmail package. This will install qmail, including the necessary uids and gids: http://smarden.org/pape/Debian/qmail.html * Install the qmail-run package. This will setup qmail as the mail transfer agent under daemontools. This will uninstall exim or whatever MTA you already have installed. * Change the /var/qmail/rc file to deliver to Maildir. This will break mail for local users and cause the mail system not to work as it would on a standard Debian system. The mail program, for example, does not work with Maildir. But for a POP toaster using vpopmail, this doesn't really matter. The file should look like this: #!/bin/sh exec env - PATH=/var/qmail/bin:$PATH \ qmail-start ./Maildir/ * By default, the qmail-run package sets up qmail to log to syslog, as is standard for Debian. However, the daemontools method (as setup by qmail-conf) is much better, in my opinion. Fix the qmail-send and qmail-smtpd services to do this. qmail-smtpd may already be setup this way. In the log directory of the service directory (say /service/qmail-send/log), change main to be a symlink to the log directory, say /var/log/qmail-send. Change the run script for the log service to be as follows: #!/bin/sh exec setuidgid qmaill multilog t ./main * Install vpopmail from source. The Debian packages are pretty old and seem to be buggy, at least the last time I tried. * Change the run script for qmail-smtpd (/service/qmail-smtpd/run) to use vpopmail. The tcp.smtp.cdb file needs to point to the one in the vpopmail home directory (ex. /home/vpopmail/etc/tcp.smtp.cdb). This step makes POP-before-SMTP work. * Install a qmail-pop3d service. The easiest way to do this is qmail-conf. You could use qmail-conf to redo all the qmail services, but it is easier to stick with the ones that qmail-run sets up: http://www.din.or.jp/~ushijima/qmail-conf.html * Allow incoming connections to pop3d. By default, it does not allow any connections. There is an add-client script in /var/qmail/service/qmail-pop3d that can be used. To simply allow connections from everywhere, create an empty tcp file and run the Makefile. You will need to run the Makefile after using add-client. * Change the qmail-pop3d run script to use vpopmail. It needs to use vchkpw as the checkpassword program. Change this to your vchkpw program (ex. /home/vpopmail/bin/vchkpw). The parameter to be changed is the second parameter to qmail-popup. * Restart all of the services: svc -t /service/qmail-* * You can make things easier if you add /var/qmail/bin and the vpopmail bin directory to root's PATH. -- David Phillips [EMAIL PROTECTED] http://david.acz.org/
Re: queues not fully utilized
Hi... I had the same problem quite a while ago. What you are experiencing is the fact that your hard disk is unable to process all the queue fast enough, and is therefore just getting clogged up. It could also be that your box doesn't have enough bandwidth to send out all the emails (and hence clear the queue). Take a look at these two issues... perhaps also search the Debian ISP mailing list archives. Russell Coker and I had a long and technical discussion on speeding up qmail and such. Sincerely, Jason Lim http://www.zentek-international.com - Original Message - From: Divyank Turakhia [EMAIL PROTECTED] To: vpopmail [EMAIL PROTECTED] Sent: Thursday, November 15, 2001 9:28 PM Subject: queues not fully utilized Hi, I have set /var/qmail/control/concurrencyremote to 250. My queuelifetime is set to 0. Qmail is now running 250 remote delivery processes. The log file shows that there are 250 remote delivery processes: @40003bf3964c124f10ac status: local 1/10 remote 19/250 The weird part is mails are continuously being added to my queue. There are more than 12000 mails in my remote queue. Why is it that most of these connections are going unutilized? How do I unsure that all of it is send immediately instead of adding it to the queue. regards, Divyank
Re: Survey .. how many domains do you host?
I dunno about the other ppl here... but we don't host more than about 200 domains per server, for security sake. If one server goes down, the whole business doesn't go down. It is possible that you could have a thousand... it also depends on server performance. I guess a good Sun server with SCSI disks could host many more than a regular Intel Pentium server with IDE disks. Sincerely, Jason http://www.zentek-international.com - Original Message - From: alexus [EMAIL PROTECTED] To: Steve Fulton [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Saturday, November 03, 2001 4:49 AM Subject: Re: Survey .. how many domains do you host? um.. m'key.. you should've state that before so no one would get wrong thoughts (like i did) - Original Message - From: Steve Fulton [EMAIL PROTECTED] To: alexus [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Friday, November 02, 2001 1:58 AM Subject: Re: Survey .. how many domains do you host? and who are you to do such a survey? Down boy! Down! LOL! No need to snap, I'm doing this because a PROGRAM I AM WRITING has VARIABLES that need to be defined to a certain array size, as they will hold FQDN's. In order to make this program universally useful, I would like to know the maximum number of domains that has been (realistically) hosted on one server. K? -- Steve
Re: Survey .. how many domains do you host? (Now RAID)
On the topic of RAID... does anyone know if the HighPoint RAID chipsets are supported YET? BSD has had support for this for ages... linux in the game yet? Sincerely, Jason - Original Message - From: James Beam [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Saturday, November 03, 2001 6:07 AM Subject: Re: Survey .. how many domains do you host? Wouldn't something like this totaly depend on the hardware resources and general config/maintenance of the server? I can tell you that one of my servers running an older copy of qmail/vchkpw is running over 800 domains with lots of steam to spare (each domain is minimal traffic). Hardware is a PIII733 w256MB ram and 30GIG EIDE drives (promise mirror) - Original Message - From: alexus [EMAIL PROTECTED] To: Steve Fulton [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Friday, November 02, 2001 11:49 AM Subject: Re: Survey .. how many domains do you host? um.. m'key.. you should've state that before so no one would get wrong thoughts (like i did) - Original Message - From: Steve Fulton [EMAIL PROTECTED] To: alexus [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Friday, November 02, 2001 1:58 AM Subject: Re: Survey .. how many domains do you host? and who are you to do such a survey? Down boy! Down! LOL! No need to snap, I'm doing this because a PROGRAM I AM WRITING has VARIABLES that need to be defined to a certain array size, as they will hold FQDN's. In order to make this program universally useful, I would like to know the maximum number of domains that has been (realistically) hosted on one server. K? -- Steve http://www.zentek-international.com/
Re: help...I was hacked ?
Sender IS known. Email was from 202.149.80.58. I think originator is 202.149.81.55. Sincerely, Jason - Original Message - From: boy internisti [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, October 19, 2001 9:01 AM Subject: help...I was hacked ? hi I'm using Qmail,Vpopmail and sqwebmail, my mail server's open port are 25,110,22,80 and https. I've got this strange mail in my inbox saying that I'm stupid... well that's all right. What bothers me is the sender was Unknown. Could anybody give me a clue how he did that? And please tell me what I could do if there are some possibilities that my mail server has some security holes. here's the mail : Received: (qmail 4791 invoked by uid 0); 18 Oct 2001 03:56:38 - Received: from unknown (HELO telkom.net) (202.149.80.58) by 202.149.81.55 with SMTP; 18 Oct 2001 03:56:38 - goblok lu goblok lu hahahahahahahahahhahahaha. -- Thank you. Regards, Boy __ Do You Yahoo!? Make a great connection at Yahoo! Personals. http://personals.yahoo.com http://www.zentek-international.com
Re: Help me soon
Use vaddomain [EMAIL PROTECTED] - Original Message - From: parvatam jagannadh rao [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, October 10, 2001 9:41 PM Subject: Help me soon Hi I have installed qmail from memphis, vpopmail-4.10.35.tar.gz and I don't want to use /etc/passwd but it should use vpopmail as a primary mail server for my domain. By using --enable-default-domain=domain.name and by using ./vadduser #domain.come giving error domain does not exist. By using ./vadddomain domain.com and creating default domain then I am able to create a domain in home/vpopmail/domains/domain.com with users but when I am sending mail from yahoo I am getting Sorry no mailbox by that named #5.1.1 Eagerly Awating for Your reply By Parvatam Venkata Jagannadha Rao Network Mangagement Quillis Infotech __ Do You Yahoo!? Make a great connection at Yahoo! Personals. http://personals.yahoo.com http://www.zentek-international.com
Re: New software qmailmrtg7
Its too bad that nearly all these tools use multilog and do not support splogger (syslog standard format) :-/ - Original Message - From: Francis P. Ling [EMAIL PROTECTED] To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Tuesday, June 19, 2001 8:44 AM Subject: Re: New software qmailmrtg7 Ken Jones writes: Thought you folks might want to take a look at this: http://www.inter7.com/qmailmrtg7/ Supports tcpserver -v logging as well as qmail-send logs Ken Jones inter7 Ken, the page at http://inter7.com/freesoftware/ was not updated to include this new great tool. Thanks. --- Any opinions, explicit or implied, are solely those of the author and do not necessarily represent those of PANSAR --- http://www.zentek-international.com/
Re: dbfunctions - it's over
Hi Ken, I in no way meant any bad feelings towards you. As I mentioned, I only came into this late in the game, so I only know what I see and hear, and from what people were saying, it sounds like they were screwed over. Doesn't mean they really were ;-) Anyway, you really don't have to convince me or sway me over to your side. Besides deploying vpopmail, I haven't spent much time actually developing anything on it. So the people that would need convincing are the developers themselves. I'm just here to try and help out a bit here and there, and try and make vpopmail a better product. Plain and simple :-) Sincerely, Jason - Original Message - From: Ken Jones [EMAIL PROTECTED] To: Jason Lim [EMAIL PROTECTED] Sent: Wednesday, May 30, 2001 5:37 PM Subject: Re: dbfunctions - it's over I guess I will respond. Jason Lim writes: Hi, I haven't been following the whole saga from the very start, so I won't claim to know absolutely everything... but it sounds like you just got screwed, plain and simple. I had no intention of screwing anyone over. I'm sorry if anyone feels like they were screwed over. I know someone else (I won't mention the name unless he wants me to) that has tried to submit patches and improvements, but no one listens. I know this guy's improvements and they really do help things, but why no one is co-operating with him, I do not know. The guy works with one of the largest Linux Distributions, so it is definately quality work. Anyway... maybe someone over at inter7 or something could explain why they choose to ignore all the developers out there trying to help and improve the products? Take a look at the AUTHORS file. It contains a list of people who have submitted code and enhancements. So it is not fair to say I have ignored *all* the developers out there. One thing you might want to consider before dragging me out and hanging me in the public square is that I work on vpopmail in my spare time. I am not paid to work on it. I don't want to release any code that has problems. So when I receive a patch or change, I want to review it and test it. It takes about 3 hours to completely test a change. I apologize to anyone who feels slighted or unhappy about how the vpopmail development is going. I try to do my best in managing this package. Oh well... Ken Jones Sincerely, Jason
Re: vPopmail compile issues? seg faults every program!
Hi, Look in unstable. Its in there. Tell me if you still can't find it. Sincerely, Jason - Original Message - From: Rolf Martin-Hoster [EMAIL PROTECTED] To: Jason Lim [EMAIL PROTECTED] Sent: Wednesday, May 30, 2001 9:45 PM Subject: Re: vPopmail compile issues? seg faults every program! Smack me where? -Rolf At 02:11 AM 5/26/2001 +0800, you wrote: Hi, You realize, of course, that vpopmail is now packaged? Sincerely, Jason - Original Message - From: Rolf Martin-Hoster [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Saturday, May 26, 2001 1:58 AM Subject: vPopmail compile issues? seg faults every program! I can compile fine but any of the apps have seg faults. This is on a machine that I lost and had to restore from a flawed packup. Fresh install of qmail via qmail-src.deb (debian potato) and fresh compile of vpopmail. Sincerely, Rolf Martin-Hoster http://www.zentek-international.com/
Re: dbfunctions - it's over
Hi, I haven't been following the whole saga from the very start, so I won't claim to know absolutely everything... but it sounds like you just got screwed, plain and simple. I know someone else (I won't mention the name unless he wants me to) that has tried to submit patches and improvements, but no one listens. I know this guy's improvements and they really do help things, but why no one is co-operating with him, I do not know. The guy works with one of the largest Linux Distributions, so it is definately quality work. Anyway... maybe someone over at inter7 or something could explain why they choose to ignore all the developers out there trying to help and improve the products? Sincerely, Jason - Original Message - From: Krzysztof Dabrowski [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, May 29, 2001 10:16 PM Subject: Re: dbfunctions - it's over a) command's calling from database (emulation of calling stuff from dot-qmail) This can be done in the recent development version of vpopmail. b) multiple aliases per account (simple small mailing lists without ezmlm) This can be done in the recent development version of vpopmail. c) pass-through aliases/forwards (store mail on aliased account AND copy to to the underlying account TOO). This can be done in the recent development version of vpopmail. I see. And the only change log line about calling programs out of alias looks like this: Sending the email into a program isn't completed yet. :) Never mind. As i said, i do not want to convince you to anything. I have already GAVE UP - so do not try to convince me. Again tell me why your patch needs to be added to vpopmail? I wont repeat myself. I've spent more than half a year wating for Ken just to find out that my effort is wasted. Betatesters' effort was wasted. And all without a single trace of open discussion. Please do not bring it again, i do not want to discuss the political side of story again and again.
Re: software combination
Hi, I see no reason why the most recent versions stable versions wouldn't work on Redhat. Sincerely, Jason - Original Message - From: Jun Armirola To: [EMAIL PROTECTED] Sent: Saturday, May 26, 2001 4:02 PM Subject: software combination Hi All, Kindly give me the right combination of qmail, mysql, vpopmail, sqwebmail, qmailadmin versions that's known to work with RH6.2 and/or RH7.1. Thanks, Jun
Re: Newbie questions: Trying to evaluate functionality
Hi, 1) The main advantage of qmail is the Maildir format... why use the old Mailbox format with qmail? 2) Uh... thats exactly what vpopmail is for... 3) use Qmailadmin 4) use Qmailadmin 5) qmailadmin...qmailadmin... 6) exactly what vpopmail does 7) exactly what vpopmail does Sincerely, Jason - Original Message - From: shawn everett [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Saturday, May 26, 2001 2:36 PM Subject: Newbie questions: Trying to evaluate functionality I'm trying to figure out the best way to use qmail and Vpopmail to set up a new mail server. Here are the requirements I'm interested in, can it be done? 1. Store mail in Mailbox format not Maildir. 2. Store virtual domain user accounts using something other than /etc/passwd 3. Provide an easy way to view usernames/passwords. Encrypted passwords would be fine. 4. Add, edit and delete aliases easily 5. Setup autoresponders on a per user basis 6. Store each virtual domain and it's accounts in a seperate directory 7. Give users the ability to log in using username@domain and username. I realize some of these are probably qmail specific questions, I'm just trying to get a good overall picture. Shawn
Re: moving domains ???????
Hi all, I have this strange problem that has suddenly occurred recently. I keep getting the following error when running vadddomain: sh-2.05# vadddomain test14.com Unknown parameter: Please enter password for postmaster: enter password again: Error: Unable to chdir to vpopmail/domains directory sh-2.05# On all other boxes, that command runs fine. And I've already checked the permissions on ALL the directories leading up to the one in ~vpopmail. I also checked the permissions of ~vpopmail/domains, and it is the same as everything else. The strange thing is that it DOES create the directory: drwx-- 2 vpopmail vchkpw 4096 May 25 00:45 test14.com however, inside that directory only the following exists: total 12 drwx-- 2 vpopmail vchkpw 4096 May 25 00:45 . drwx-- 23 vpopmail vchkpw 4096 May 25 00:45 .. -rw--- 1 vpopmail vchkpw 58 May 25 00:45 .qmail-default and nothing else. No vpasswd or vpasswd.cdb or anything else. Anyone know whats going on? I also found: sh-2.05# ls -al / total 1467 drwxr-x--x 17 root root 4096 May 25 00:22 . drwxr-x--x 17 root root 4096 May 25 00:22 .. -rw--- 1 root root 0 May 25 07:57 .vpasswd.lock suddenly after running vadddomain . vadduser doesn't work at ALL. Does anyone have any ideas? Free beer to the guy that figures this one out :-) Thanks in advance. Jason.
Re: moving domains ???????
Hi, Okay... i ran strace vadddomain test39.com a bunch of output. I gather that strace basically traces what the program is doing (just looking from the output). So anyway, it stopped at asking for the postmaster password. I assume you don't actually want that bit, so I just typed in the password, and it asked me to type in again, i did, and then another bunch of output came out. I ran this command on 2 different boxes. One box (the one with the problem) and one WITHOUT the problem, to compare the output and see what the difference was. I'll mainly only show the differences... maybe you have the knowledge to work out what is wrong. Both boxes have nearly identical structures. On the working box, /var points to /mnt/large/var , while on the broken box, /var points to /mnt/mid/var , in case you wonder why the two are different (large, mid, small, etc. are just hard disk mount points) (btw. * is just me highlighting something): WORKING BOX: - ioctl(3, 0x5401, {B38400 opost -isig icanon -echo ...}) = 0 write(3, enter password again: , 22enter password again: ) = 22 read(3, test\n, 4096) = 5 write(3, \n, 1 ) = 1 ioctl(3, 0x5404, {B38400 opost isig icanon echo ...}) = 0 close(3)= 0 munmap(0x40017000, 4096)= 0 umask(077) = 022 *getcwd(/mnt/large/var/lib/vpopmail/domains, 300) = 36* chdir(/var/lib/vpopmail) = 0 chdir(domains)= 0 stat(test39.com, 0xbc2c) = -1 ENOENT (No such file or directory) mkdir(test39.com, 0750) = 0 chown32(0x804b660, 0xfa14, 0xfa14) = -1 ENOSYS (Function not implemented) chown(test39.com, 64020, 64020) = 0 chdir(test39.com) = 0 open(/var/lib/vpopmail/domains/test39.com/.qmail-default, O_RDWR|O_CREAT|O_TRUNC, 0666) = 3 fstat(3, {st_mode=S_IFREG|0600, st_size=0, ...}) = 0 old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40017000 write(3, | /var/lib/vpopmail/bin/vdeliver..., 58) = 58 close(3)= 0 - BROKEN BOX: - ioctl(3, 0x5401, {B38400 opost -isig icanon -echo ...}) = 0 write(3, enter password again: , 22enter password again: ) = 22 read(3, test\n, 4096) = 5 write(3, \n, 1 ) = 1 ioctl(3, 0x5404, {B38400 opost isig icanon echo ...}) = 0 close(3)= 0 munmap(0x40017000, 4096)= 0 umask(077) = 022 *getcwd(/root, 300)= 6* chdir(/var/lib/vpopmail) = 0 chdir(domains)= 0 stat(test39.com, 0xbc3c) = -1 ENOENT (No such file or directory) mkdir(test39.com, 0750) = 0 chown32(0x804b660, 0xfa14, 0xfa14) = -1 ENOSYS (Function not implemented) chown(test39.com, 64020, 64020) = 0 chdir(test39.com) open(/var/lib/vpopmail/domains/test39.com/.qmail-default, O_RDWR|O_CREAT|O_TRUNC, 0666) = 3 fstat(3, {st_mode=S_IFREG|0600, st_size=0, ...}) = 0 old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40017000 write(3, | /var/lib/vpopmail/bin/vdeliver..., 58) = 58 close(3)= 0 - I can see on the WORKING box it is doing: getcwd(/mnt/large/var/lib/vpopmail/domains, 300) = 36 on the BROKEN box it is doing: getcwd(/root, 300)= 6 which obviously is WRONG. It should say something /mnt/mid/var/lib/vpopmail/domains, but it isn't. Okay... further down I found another big difference... again, pointing to incorrect directories: WORKING BOX: SIGCHLD (Child exited) --- close(3)= 0 wait4(19589, [WIFEXITED(s) WEXITSTATUS(s) == 0], 0, NULL) = 19589 munmap(0x40017000, 4096)= 0 kill(388, SIGHUP) = 0 chdir(/mnt/large/var/lib/vpopmail/domains) = 0 umask(077) = 077 open(/var/qmail/users/cdb, O_RDONLY) = 3 lseek(3, 2000, SEEK_SET)= 2000 read(3, \347\17\0\0\2\0\0\0, 8) = 8 lseek(3, 4071, SEEK_SET)= 4071 read(3, \3724\256u,\16\0\0, 8)= 8 lseek(3, 3628, SEEK_SET)= 3628 read(3, \f\0\0\0\0\0\0, 8) = 8 read(3, !test39.com-, 12) = 12 fstat(3, {st_mode=S_IFREG|0644, st_size=4103, ...}) = 0 old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40017000 read(3, test39.com\00064020\00064020\0/var/lib/..., 4096) = 455 getpid()= 19399 open(/var/lib/vpopmail/domains/test39.com/vpasswd.cdb, O_RDONLY) = -1 ENOENT (No such file or directory) open(/var/lib/vpopmail/domains/test39.com/.vpasswd.lock, O_RDWR|O_CREAT|O_TRUNC, 0666) = 4 On the BROKEN box: --- SIGCHLD (Child exited) --- close(3)= 0 wait4(21753,
Re: moving domains ???????
Hi Raghu, Okay... I did as you said. Here is the output (unless otherwise stated, the output of the WORKING box and BROKEN box is the same): sh-2.05# cd users sh-2.05# ls -al total 24 drwxr-xr-x2 root qmail4096 May 25 18:45 . drwxr-xr-x3 root root 4096 May 25 18:45 .. -rw-r--r--1 root root 4961 May 25 18:45 assign -rw---1 root root0 May 25 18:45 assign.lock -rw-r--r--1 root root 4937 Feb 27 23:48 cdb sh-2.05# pwd /var/qmail/users A look at assign (on the broken box) showed all my attempts to create domains using vadddomain: +test34.com-:test34.com:64020:64020:/var/lib/vpopmail/domains/test34.com:- :: +test36.com-:test36.com:64020:64020:/var/lib/vpopmail/domains/test36.com:- :: +test37.com-:test37.com:64020:64020:/var/lib/vpopmail/domains/test37.com:- :: +test38.com-:test38.com:64020:64020:/var/lib/vpopmail/domains/test38.com:- :: +test39.com-:test39.com:64020:64020:/var/lib/vpopmail/domains/test39.com:- :: Keep in mind that while THESE entries are there, in /var/lib/vpopmail/domains/test39.com/ , there is only one file called .qmail-default, and nothing else. I also cannot vadduser to add accounts to test39.com . sh-2.05# ls -al /var/lib/vpopmail/domains/test39.com total 12 drwx--2 vpopmail vchkpw 4096 May 25 18:45 . drwx-- 41 vpopmail vchkpw 4096 May 25 18:45 .. -rw---1 vpopmail vchkpw 58 May 25 18:45 .qmail-default From my previous post, you can see that /root or / seems to be the directory that vadddomain THINKS test39.com is in. I have NO idea why it thinks that, but thats the way it is :-( Sincerely, Jason - Original Message - From: Raghu V Singh [EMAIL PROTECTED] To: Jason Lim [EMAIL PROTECTED] Sent: Friday, May 25, 2001 5:50 PM Subject: Re: moving domains ??? Jason, Take a good look at the uids/gids in the /var/qmail/users/assign directory and make sure they match to the ones in your /etc/passwd for vpopmail and groups in /etc/groups. Also check the location of the home dir for vpopmail in the /etc/passwd and the path the /var/qmail/users/assign is using hope this helps Raghu From:Jason Lim [EMAIL PROTECTED] on 05/25/2001 04:35 PM ZE8 Sent by: Jason Lim [EMAIL PROTECTED] Please respond to Jason Lim [EMAIL PROTECTED] To: [EMAIL PROTECTED] cc: (bcc: Raghu V Singh/rsingh1/LSU) Subject: Re: moving domains ??? Hi all, I have this strange problem that has suddenly occurred recently. I keep getting the following error when running vadddomain: sh-2.05# vadddomain test14.com Unknown parameter: Please enter password for postmaster: enter password again: Error: Unable to chdir to vpopmail/domains directory sh-2.05# On all other boxes, that command runs fine. And I've already checked the permissions on ALL the directories leading up to the one in ~vpopmail. I also checked the permissions of ~vpopmail/domains, and it is the same as everything else. The strange thing is that it DOES create the directory: drwx-- 2 vpopmail vchkpw 4096 May 25 00:45 test14.com however, inside that directory only the following exists: total 12 drwx-- 2 vpopmail vchkpw 4096 May 25 00:45 . drwx-- 23 vpopmail vchkpw 4096 May 25 00:45 .. -rw--- 1 vpopmail vchkpw 58 May 25 00:45 .qmail-default and nothing else. No vpasswd or vpasswd.cdb or anything else. Anyone know whats going on? I also found: sh-2.05# ls -al / total 1467 drwxr-x--x 17 root root 4096 May 25 00:22 . drwxr-x--x 17 root root 4096 May 25 00:22 .. -rw--- 1 root root 0 May 25 07:57 .vpasswd.lock suddenly after running vadddomain . vadduser doesn't work at ALL. Does anyone have any ideas? Free beer to the guy that figures this one out :-) Thanks in advance. Jason.
Re: moving domains ???????
Hi Chris, I did not compile these. Both boxes are running the same precompiled packages. In fact, both boxes were working, and I have not updated the package in a while (at least 1 1/2 months). The binaries for both boxes are exactly the same (i check filesizes of both). Yes, both run exactly the same OS. Same linux kernel. 99% same software. Any ideas? I'm lost :-( Sincerely, Jason - Original Message - From: Chris Bolt [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, May 25, 2001 7:20 PM Subject: RE: moving domains ??? Now the question is... where the HECK is vpopmail getting the idea that /root is where vpopmail is? On both the working and broken boxes, the passwd entry is: vpopmail:x:64020:64020:Vpopmail user,,,:/var/lib/vpopmail:/bin/bash which is correct. What did the broken box say when you did ./configure? Are both boxes running the same operating system?
Re: moving domains ???????
HI, If at all possible I'd rather avoid recompiling my own version, and use the prepackaged one. I did a vadduser, and I found the following (vadduser [EMAIL PROTECTED]): WORKING BOX: open(/var/qmail/users/cdb, O_RDONLY) = 3 lseek(3, 424, SEEK_SET) = 424 read(3, {\17\0\0\2\0\0\0, 8) = 8 lseek(3, 3963, SEEK_SET)= 3963 read(3, 5\32\217~\320\16\0\0, 8) = 8 lseek(3, 3792, SEEK_SET)= 3792 read(3, \f\0\0\0\0\0\0, 8) = 8 read(3, !test41.com-, 12) = 12 fstat(3, {st_mode=S_IFREG|0644, st_size=4299, ...}) = 0 old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40017000 read(3, test41.com\00064020\00064020\0/var/lib/..., 4096) = 487 getpid()= 28577 open(/var/lib/vpopmail/domains/test41.com/vpasswd.cdb, O_RDONLY) = 4 BROKEN BOX: open(/var/qmail/users/cdb, O_RDONLY) = 3 lseek(3, 424, SEEK_SET) = 424 read(3, \251\21\0\0\0\0\0\0, 8) = 8 close(3)= 0 getpid()= 24674 open(/vpasswd.cdb, O_RDONLY) = -1 ENOENT (No such file or directory) open(/.vpasswd.lock, O_RDWR|O_CREAT|O_TRUNC, 0666) = 3 fcntl64(0x3, 0x6, 0xbb5c, 0)= -1 ENOSYS (Function not implemented) fcntl(3, F_SETLK, {type=F_WRLCK, whence=SEEK_SET, start=0, len=0}) = 0 open(/vpasswd, O_RDONLY) = -1 ENOENT (No such file or directory) fcntl(3, F_SETLK, {type=F_UNLCK, whence=SEEK_SET, start=0, len=0}) = 0 close(3)= 0 open(/vpasswd.cdb, O_RDONLY) = -1 ENOENT (No such file or directory) getcwd(/mnt/mid/var/lib/vpopmail/domains, 300) = 34 chdir() = -1 ENOENT (No such file or directory) chdir(/mnt/mid/var/lib/vpopmail/domains) = 0 write(1, Error: Unable to chdir to vpopma..., 53Error: Unable to chdir to vpopmail/domains directory ) = 53 --- As you can see, it is looking at /var/qmail/users/cdb, BUT with the broken box, it doesn't seem to find anything, and just looks at /vpasswd.cdb . Obviously it should be in /var/lib/vpopmail/domains/test41.com/vpasswd.cdb, which the Working box has found. Now my question is... is it possible to REGENERATE the /var/qmail/users/cdb file? Maybe the problem lies there? From my understanding, the cdb file contains the information on where each domain's files are, and since the Broken box can't find it, it assumes its in / . Is this thinking right? Can the cdb file even BE regenerated? Sincerely, Jason - Original Message - From: Chris Bolt [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, May 25, 2001 9:19 PM Subject: RE: moving domains ??? Grab vpopmail 4.9.10 from http://www.inter7.com/vpopmail/, extract it, run ./configure and see what it prints. If everything looks fine, type make then run ./vadddomain in the working directory (before you make install) to see if it is still messed up. Hi Chris, I did not compile these. Both boxes are running the same precompiled packages. In fact, both boxes were working, and I have not updated the package in a while (at least 1 1/2 months). The binaries for both boxes are exactly the same (i check filesizes of both). Yes, both run exactly the same OS. Same linux kernel. 99% same software. Any ideas? I'm lost :-(
Re: vuserinfo on different box to main vpopmail install, shared filer
Hi, I'm having a similar problem (I THINK)... what output from strace do you get for the part where it tries to open /var/qmail/users/cdb, but fails? Sincerely, Jason - Original Message - From: Jack Howard [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, May 25, 2001 10:08 PM Subject: Re: vuserinfo on different box to main vpopmail install, shared filer In a previous message, Chris Bolt [EMAIL PROTECTED] said: Type strace before vuserinfo (strace vuserinfo [EMAIL PROTECTED]) and it should show you the last failure before it dies, including paths etc. Ta - forgot about strace. Ok, what I get is a bit strange: First it tries to read /var/qmail/users/cdb (and gets a no such file), then it tries to open: /vpasswd.cdb, where is an odd capital B (but different), 2 u characters with accents, and an upside down question mark. This also returns no such file. Checking on the actual mailservers there is indeed a cdb file in qmail's ~/users directory, however it doesn't exist on the Linux box, even though both qmail and vpopmail are running. tries adding a test domain Ok, that created /var/qmail/users/cdb, but vuserinfo is still trying to open /vpasswd.cdb, where is a different set of strange characters, and getting a no such file. I guess this is the point of failure (it's wanting to open the password file for that domain), any ideas how I persuade it that the files are available? Hmm - tried adding a domain again - this time it locks the terminal and gives a file busy try later error. Thoughts? -- - Jack Howard, Network Development Engineer Abuse Prevention Co-ordinator - Firstnet Services Limited : 0113 292 7700 : http://www.firstnet.net.uk - [ This message subject to: http://www.firstnet.net.uk/disclaimer.html ]
Re: moving domains ???????
Heres an interesting thing for you to see: sh-2.05# cd users sh-2.05# ls -al total 24 drwxr-xr-x2 root qmail4096 May 25 21:08 . drwxr-xr-x3 root root 4096 May 25 21:08 .. -rw-r--r--1 root root 5115 May 25 21:08 assign -rw---1 root root0 May 25 21:08 assign.lock -rw-r--r--1 root root 4937 Feb 27 23:48 cdb sh-2.05# pwd /etc/qmail/users sh-2.05# Notice how cdb is dated in the FUTURE. Could that why it is having trouble being read, or if you say it is being read, then maybe it is having trouble processing it because of the date? In case you are curious: sh-2.05# date Fri May 25 23:05:12 HKT 2001 so the date is right ;-) Here is also something interesting: sh-2.05# qmail-newu sh-2.05# ls -al total 28 drwxr-xr-x2 root qmail4096 May 25 23:05 . drwxr-xr-x3 root root 4096 May 25 21:08 .. -rw-r--r--1 root root 5115 May 25 21:08 assign -rw---1 root root0 May 25 21:08 assign.lock -rw-r--r--1 root root 8608 May 25 23:05 cdb Okay... so qmail-newu regenerated cdb and made it have the right date. thats good. so next... sh-2.05# vadddomain test45.com Unknown parameter: Please enter password for postmaster: enter password again: Error: Unable to chdir to vpopmail/domains directory sh-2.05# ls -al total 28 drwxr-xr-x2 root qmail4096 May 25 23:06 . drwxr-xr-x3 root root 4096 May 25 23:06 .. -rw-r--r--1 root root 5192 May 25 23:06 assign -rw---1 root root0 May 25 23:06 assign.lock -rw-r--r--1 root root 8608 May 25 23:05 cdb sh-2.05# sh-2.05# qmail-newu sh-2.05# ls -al total 28 drwxr-xr-x2 root qmail4096 May 25 23:08 . drwxr-xr-x3 root root 4096 May 25 23:06 .. -rw-r--r--1 root root 5192 May 25 23:06 assign -rw---1 root root0 May 25 23:06 assign.lock -rw-r--r--1 root root 8706 May 25 23:08 cdb How come cdb isn't updated until I manually run qmail-newu? Something fishy going on there... assign increases but cdb stays the same till a manual update? Shouldn't this happen automagically? Your suggestions below are noted, and I will try them out very shortly, and report back what happened. I really hope it works. Concerning the /etc/passwd entry: sh-2.05# more /etc/passwd | grep vpop vpopmail:x:64020:64020:Vpopmail user,,,:/var/lib/vpopmail:/bin/bash Thats what Debian Linux installs vpopmail as by default. It definately works on the other box... and did so until recently on the broken box, so I'm sure this isn't the issue thats causing it to fail now. Sincerely, Jason - Original Message - From: Chris Bolt [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, May 25, 2001 11:01 PM Subject: RE: moving domains ??? As you can see, it is looking at /var/qmail/users/cdb, BUT with the broken box, it doesn't seem to find anything, and just looks at /vpasswd.cdb . The broken box can find /var/qmail/users/cdb Obviously it should be in /var/lib/vpopmail/domains/test41.com/vpasswd.cdb, which the Working box has found. Now my question is... is it possible to REGENERATE the /var/qmail/users/cdb file? Maybe the problem lies there? /var/qmail/bin/qmail-newu does this From my understanding, the cdb file contains the information on where each domain's files are, and since the Broken box can't find it, it assumes its in / . Is this thinking right? Can the cdb file even BE regenerated? - Remove /var/qmail/users/assign and cdb - Remove all test domains from: /var/lib/vpopmail/domains /var/qmail/control/rcpthosts /var/qmail/control/virtualdomains And try again. Are you absolutely sure that vpopmail:x:64020:64020:Vpopmail user,,,:/var/lib/vpopmail:/bin/bash is EXACTLY the same on both boxes? 64020 sounds like too large of a uid to me.
Re: moving domains ??????? ***SOLVED and CLOSED***
SOLVED and CLOSED. The problem WAS... (and you won't believe this)... in Debian, /var/qmail/* is basically just symlinks to various places: sh-2.05# cd /var/qmail/ sh-2.05# ls -al total 8 drwxr-xr-x2 root qmail4096 Jan 16 00:04 . drwxr-x--x 17 root root 4096 Aug 3 2000 .. lrwxrwxrwx1 root root 20 Jan 16 00:04 alias - /var/lib/qmail/alias lrwxrwxrwx1 root root9 Jan 16 00:04 bin - /usr/sbin lrwxrwxrwx1 root root 34 Jan 16 00:04 boot - /usr/share/doc/qmail/examples/boot lrwxrwxrwx1 root root 10 Jan 16 00:04 control - /etc/qmail lrwxrwxrwx1 root root 20 Jan 16 00:04 doc - /usr/share/doc/qmail lrwxrwxrwx1 root root 16 Jan 16 00:04 queue - /var/spool/qmail lrwxrwxrwx1 root root 16 Jan 16 00:04 users - /etc/qmail/users What happened on the Broken box was that /var/qmail/bin was JUST /var/qmail/bin/, an empty directory, and NOT a symlink to /usr/sbin as it should be. Why on EARTH strace would show the error to be with the cdb file, and why on HECK the error message said it couldn't get into the vpopmail/domain directory, I will never know. If the stupid error messages were a tad more intuitive I... and everyone that has been helping to trace down this error, wouldn't have had to spend so much wasted time on this. To Chris Bolt and Raghu V Singh: thanks for helping out guys. Well, what I can say out of all this is that I learnt quite a bit about strace, and the finer workings of qmail. I never thought it would be this problem. Sorry :-( If you ever come to Hong Kong, let me know :-) Sincerely, Jason - Original Message - From: Raghu V Singh [EMAIL PROTECTED] To: Jason Lim [EMAIL PROTECTED] Sent: Saturday, May 26, 2001 12:20 AM Subject: Re: moving domains ??? Jason , What is inside the assign file in the users directory ? Look at the usids/gids ( and paths ) stored in it . Send out the contents to us if possible. Raghu From:Jason Lim [EMAIL PROTECTED] on 05/25/2001 11:19 PM ZE8 Sent by: Jason Lim [EMAIL PROTECTED] Please respond to Jason Lim [EMAIL PROTECTED] To: [EMAIL PROTECTED] cc: Chris Bolt [EMAIL PROTECTED](bcc: Raghu V Singh/rsingh1/LSU) Subject: Re: moving domains ??? Heres an interesting thing for you to see: sh-2.05# cd users sh-2.05# ls -al total 24 drwxr-xr-x2 root qmail4096 May 25 21:08 . drwxr-xr-x3 root root 4096 May 25 21:08 .. -rw-r--r--1 root root 5115 May 25 21:08 assign -rw---1 root root0 May 25 21:08 assign.lock -rw-r--r--1 root root 4937 Feb 27 23:48 cdb sh-2.05# pwd /etc/qmail/users sh-2.05# Notice how cdb is dated in the FUTURE. Could that why it is having trouble being read, or if you say it is being read, then maybe it is having trouble processing it because of the date? In case you are curious: sh-2.05# date Fri May 25 23:05:12 HKT 2001 so the date is right ;-) Here is also something interesting: sh-2.05# qmail-newu sh-2.05# ls -al total 28 drwxr-xr-x2 root qmail4096 May 25 23:05 . drwxr-xr-x3 root root 4096 May 25 21:08 .. -rw-r--r--1 root root 5115 May 25 21:08 assign -rw---1 root root0 May 25 21:08 assign.lock -rw-r--r--1 root root 8608 May 25 23:05 cdb Okay... so qmail-newu regenerated cdb and made it have the right date. thats good. so next... sh-2.05# vadddomain test45.com Unknown parameter: Please enter password for postmaster: enter password again: Error: Unable to chdir to vpopmail/domains directory sh-2.05# ls -al total 28 drwxr-xr-x2 root qmail4096 May 25 23:06 . drwxr-xr-x3 root root 4096 May 25 23:06 .. -rw-r--r--1 root root 5192 May 25 23:06 assign -rw---1 root root0 May 25 23:06 assign.lock -rw-r--r--1 root root 8608 May 25 23:05 cdb sh-2.05# sh-2.05# qmail-newu sh-2.05# ls -al total 28 drwxr-xr-x2 root qmail4096 May 25 23:08 . drwxr-xr-x3 root root 4096 May 25 23:06 .. -rw-r--r--1 root root 5192 May 25 23:06 assign -rw---1 root root0 May 25 23:06 assign.lock -rw-r--r--1 root root 8706 May 25 23:08 cdb How come cdb isn't updated until I manually run qmail-newu? Something fishy going on there... assign increases but cdb stays the same till a manual update? Shouldn't this happen automagically? Your suggestions below are noted, and I will try them out very shortly, and report back what happened. I really hope it works. Concerning the /etc/passwd entry: sh-2.05# more /etc/passwd | grep vpop vpopmail:x:64020:64020:Vpopmail user,,,:/var/lib/vpopmail:/bin/bash Thats what Debian Linux installs vpopmail as by default. It definately works on the other