
up at 3
Aug 7, 2009, 11:17 AM
Post #5 of 5
(1563 views)
Permalink
|
|
Re: User's Maildir in dir other than $HOME
[In reply to]
|
|
On Fri, 7 Aug 2009, Matt Simpson wrote: > At 12:05 PM 8/7/09, up [at] 3 wrote: >> Thanks for your reply....I just did that, as well as had a look at >> qmail-pw2u. It looks like if I were to use qmail-pw2u and have a >> users/assign entry for every system user, it would put me back to square >> one, since it takes the user's home directory path directly from the >> /etc/passwd file. However, if I could get by with one wildcard entry, that >> would do the trick. > > Sorry. Maybe I misunderstood the problem. users/assign will allow you to > specify any directory you want for the user's "home" directory (which is > where qmail will look for .qmail files, and maybe where it will look for > Maildir, depending on what it finds in .qmail files and qmail startup > default). This will be checked for anything that qmail thinks is a local > user, which would include "users" mapped from virtual domains, whether or not > they actually exist as system users. (I don't use vpopmail, so I'm a little > fuzzy about how it fits into the picture). This will allow you to separate > mail directories from web hosting directories. > > AFAIK, there is no wildcarding capability for the directory parameter of the > assign entry, so you would probably need one assign entry for each owner of a > mail directory. If you're looking for a way to avoid all those entries, I > don't have any ideas. Ok, that pretty much answered my question, thanks. It did occur to me that I could use qmail-pw2u once to create the file, then simply hand edit the virtual host users and have my adduser script add an entry to users/assign each time I add a new user. I would however, prefer to avoid that complexity and the potential pitfalls I see there (removing users, changing them from/to vhost customers, etc). I'm thinking now that instead of messing with the qmail end of things, perhaps proftp's "DefaultRoot" entry might be a better way to approach this. In other words, make every mail system user's $HOME be /home/users/$USER and tell proftp to chroot them to /web/servers/theirdomain when they FTP in. Those that have shell logins will be presumed to know how to deal with it. :) Thanks! James Smallacombe PlantageNet, Inc. CEO and Janitor up [at] 3 http://3.am =========================================================================
|