On Fri, Dec 08, 2006 at 06:10:52PM -0200, Eduardo Kienetz wrote: > Guys, the issue I'm having here is that I want to: > > Default -> allow only pop3 for all users > Exception -> some users will be able to use imap (webmail) > > I have tried using MYSQL_WHERE_CLAUSE imapok=1 (created it and set it > up in mysql) in authmysqlrc (courier-authlib), but I figured it would > block also pop3 (as I thought). So it means both pop3 and imap logins > are checked against that same CLAUSE. How could I separate it, so that > I have a separate flag for imap? > > Options I have so far: > 1) modify webmail's source (better than next option) > 2) modify courier's source (wouldn't like to but...) > 3) some other flag/option I missed?? (hopefully)
The general way one is the account 'options' setting. Set the option disableimap=0 on the special accounts. Then either set option disableimap=1 in authdaemonrc as a default, or set up your SQL so that everyone else gets disableimap=1. More specifically to mysql, I seem to remember there's an expansion variable which gives the protocol being used. Regards, Brian. ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Courier-imap mailing list [email protected] Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-imap
