The authentication is from the dbmail_users table. Currently I've added a column to that and modified that authentication portion of imapcommands.c and pop3.c.
How do you go about using dbmail with pam? I didn't even know that was an option. As for the webmail, I know what IP that will come from (IMAP from localhost), so I just check for that IP in my modified auth. I have a solution, I was just wondering how others dealt with it. The PAM idea is interesting, as I could just do everything in PAM, but I need virtual IP support to deal with non-fully qualified names. Not sure that I could get PAM to deal with that. -- David -----Original Message----- From: Mark J. Nernberg To: DBMail mailinglist Sent: 6/3/2005 2:55 PM Subject: Re: [Dbmail] Restricting Access > 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 > _______________________________________________ Dbmail mailing list [email protected] https://mailman.fastxs.nl/mailman/listinfo/dbmail
