> From: "Niblett, David A" <[EMAIL PROTECTED]> > Reply-To: DBMail mailinglist <[email protected]> > Date: Fri, 3 Jun 2005 14:36:23 -0400 > To: "'[email protected]'" <[email protected]> > Subject: [Dbmail] Restricting Access > > I have an interesting situation and I wonder if any one else has > something like this and how you deal with it. > > Basically we want to do a free Webmail service that has ad's on it. > For these users I want to only allow them to use the webmail interface > to view their email (ie. no POP or IMAP). > > We also have users that pay us for Internet access. For them I would > like to allow POP and IMAP access to their box. > > Another type of situation is that if a customer doesn't pay their bill > we want to not allow them to POP/IMAP their account. > > Any one else have a similar situation and thoughts on how you did it? > I only ask as I've written a patch and wanted to see if there was a > better way.
How are you doing your authentication? If you're using an SQL database, it would be simple to have a column for "paying customer" or "mooching leech". If paying customer != TRUE, then they wouldn't be given access. Fairly simple if you're using pam_mysql with saslauthd; the webmail would use a difference service name (i.e. http instead of imap) in order to have different SELECT criteria. > > Thanks, > David > _______________________________________________ > Dbmail mailing list > [email protected] > https://mailman.fastxs.nl/mailman/listinfo/dbmail >
