On Friday, October 26, 2001, at 01:55 PM, Steve Fulton wrote:
> Ken & Bill, > > Is it possible to set a default quota for a domain, one that applies > to > each user? Yes, quotas can be applied to individual users & postmaster > (when creating the domain), but how about one that applies to any > additional > users added to that domain? I thought it worked that way, but it does > not > our server. Am I missing something? If I'm not, I'll look into writing > patch against Vpopmail to check for a default quota when adding a > user -- > probably using the "postmaster" account as a basis. No, just the default quota at compile time. I've thought about domain based defaults in the past (mostly for restricting services), and my solution was to patch qmailadmin as customers do most of the adding/removing of users in my situation. It was easier, too. ; ) I've documented it in qmailadmin's INSTALL file, but basically you can set the default service settings in .qmailadmin-limits, which is the per-domain "rules" file. I added disable_pop, disable_relaying, etc... All it does is call vmoduser just after adding the user. It's not super slick, but works just fine. And the vpopmail api didn't have to change. If you want the vadduser program to support this type of thing, you might consider using something like ~vpopmail/domains/<domain>/.vadduser-defaults. Or, you could just put it in .qmailadmin-limits. Either way, vadduser would need to be patched. Cheers, Bill Shupp