No dia Tue, 21 May 2002 16:33:46 +0200
Roland Schneider <[EMAIL PROTECTED]> exp�s:

RS > --stefan radulian wrote on 21.05.2002 15:17 +0200:
RS > 
RS > > hello,
RS > > yet another question:
RS > > how can i set up my courier to handle pop3-only and imap-only
accounts. now i RS > > am using authdaemon/authmysql for
authentification, and every new user i RS > > create is able to use pop3
and imap. what i want is to give imap access only RS > > to certain
users, and pop3 to the rest. but i want to handle them all with RS > >
mysql,... RS > 
RS > Nope.
RS > 
RS > Only userdb can handle that, or two separate installations of
RS > courier compiled into different directories (big mess).
RS > A runtime-option for the path to the authsocket would help too,
RS > but you really dont want to know about that :)
RS > 
RS > I'd also like to use different databases: one for the delivery
RS > of incoming mail and another for authentification/retrival.
RS > 
RS > Without authdaemon pop3d and imapd could use authmysql, and esmtpd
RS > uses userdb. Bad thing is that esmtpd and webmail share the same
RS > setting (etc/authmodules).
RS > Maybe some day webmail gets his own dedicated config-file (instead
RS > of ~10 different files like now...) where the authmodule may be
RS > specified individually. Until then I have to compile sqwebmail
RS > separately, and play around with symlinks.
RS > 
RS > But back to your question:
RS > 
RS > Recompile --without-authdaemon, let pop3d and esmtp use authmysql
RS > only, and point imapd to "authcram authuserdb" (via AUTHMODULES).
RS > Then export the imap-capable users to authuserdb via cron.

How about creating a new field on auth database and make a little hack
on the sql query on source code? For exemple, 1=pop, 0=imap and even
2=both. Then on the auth query for imap you use a where clause like

select passwd from user where type = '0' or type = '2'

and the same for pop, just where type = '1' or type = '2'

I dont know the query or fields nor code rigth now, but I think it
should be easy to hack...

-- 

"I'm not afraid of dying, I just don't want to be there when it
happens."-- Woody Allen

============================
Marcio Merlone
Linux Registered User 104911

_______________________________________________________________

Don't miss the 2002 Sprint PCS Application Developer's Conference
August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm

_______________________________________________
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users

Reply via email to