** -----Original Message----- ** From: Ken Jones [mailto:[EMAIL PROTECTED]] ** Sent: Wednesday, October 10, 2001 2:06 AM ** To: Troy Settle ** Cc: [EMAIL PROTECTED] ** Subject: RE: User Directories in 5.0 ** ** ** Ah, I see your problem. ** ** vpopmail does not create the directory if it doesn't exist.
Bingo! But just a few hours ago, you said "Worked for me. created user directories." What's wrong with this picture? ** ** What is does is: ** ** If the user does not have a directory assigned to them.. ** then it creates the directory, ** and updates the authentication system with the directory. I saw this, but it's not quite what I need. The directory is already assigned, it just needs to be created. I can not leave the directory assignment up to vpopmail at this time, for two reasons. The first is that the authentication database will be read-only (because it's just a small part of a huge billing system called Platypus). The second reason, is that I don't like the way vpopmail does it's directory hashing. Granted, someone put a lot of thought and work into the current directory hashing scheme, but it makes it damned hard to find an individual user's directory. Right now, I have to cd into the domain's directory, grep the username, read the directory, then issue another cd. Much easier to just cd ~vpopmail/domains/foo.com/u/s/user Or even `du -sh ~vpopmail/domains/foo.com/u/s/user/` Oh, and doing 2 directory hash based on the first 2 characters of the username yields well over 1000 top level directories. This is more than sufficient for systems with 10's of thousands of users, and probably well into the hundreds of thousands of users. ** ** If you want to go ahead and just ** rm -rf /home/vpopmail/domains/test.com/* ** Then vpopmail can not help you. Never said that was what I wanted to do. That was for demonstration purposes only (actually, I did a mv so I could mv it back and forth for testing purposes as I worked on my code). ** ** vpopmail delegates the responsibility for file ** system integrity to the file system drivers. ** It does not attempt to duplicate the file systems ** responsiblity of maintaining the integrity of ** the file system. Where did I say anything about filesystem integrity? In almost 8 years, I've never had any issues with UFS, and don't expect to either. ** ** Why the heck would you want to go and delete ** users directories once they are created? ** Again, that was for demonstration purposes only--to make it clear that vpopmail does not, and can not, at this time, create user directories. This worked in 4.8.5 but does not work in 5.0. I think Yuri has the answer to my question. I'll work it into vdelivermail and vchkpw, then submit it as a patch with the rest of my work when I'm done and you're ready to accept contributions for 5.1. -- Troy Settle Pulaski Networks 540.994.4254 - 866.477.5638 http://www.psknet.com