Tillman writes:

> Sam wrote:
> 
> > If you're ok with POP3/IMAP users logging in using their UNIX ids, you're
> > all set.  If you want users to login under their virtual domains, vchkpw
> > won't work because it won't scale - it scans a flat file for user
> > validation.
> 
> I'm jumping into this thread, as I'm in a very similar position.  I'm a little
> leery of using uid's, because (from my understanding) they're a signed 16-bit
> field, meaning that only 32K users can actually operate (on a 2.0.36 Linux
> system).

If all you use this box for is as a POP3/IMAP server, you can have 50,000
accounts mapping to the same numerical userid (as long as you disable
telnet into the box, it doesn't matter).

> 
> 
> > Write a custom checkpassword checking routine, using something like GDBM to
> > validate userid/domains.
> 
> Ideally, I'd like to use the radius patch in conjunction with this.  I haven't
> yet downloaded the patch or read the DOC's, as I'm in the middle of somewhat
> time-intensive DNS migration, but I'm not exactly positive where it would get
> it's home-dir information for use with Maildir's ... our Cistron radius server
> certainly doesn't have that information available to server out the way thigns
> stand now :-)

If you make it a convention that user foo's home directory is /home/foo,
you don't need to keep track of individual home directories.

> 
> > Qmail has no builtin quota support.  Write a custom script that sweeps
> > through all the mailboxes, notifies owners which exceed their soft quota,
> > and locks out mail delivery to mailboxes that exceed their hard quota.
> > Modify your POP3/IMAP server to unlock mailboxes, if necessary, after mail
> > is deleted.
> 
> Would not the hard quota itself lock out delivery, or is there some "might break
> qmail" issue that I'm missing?  I'm perfectly content with a bounce mentioning
> disk space, as the users are well aware of the 10Mb limit that we are currently
> imposing on our soon-to-be-replaced mail system.

If you're running a solid box, hardware quotas are OK.  But if you
routinely have processes dying all over the place, for some reason,
temporarily files in the maildir being created can quickly use up the hard
quota, which'll be purged only after a couple of days (and only by
maildir-compliant mail readers).  It's better to calculate the quota
yourself, only for the actual messages.


-- 
Sam

Reply via email to