28 Jun
2006
28 Jun
'06
4:14 p.m.
On Wed, 2006-06-28 at 18:30 +0800, Xueron Nee wrote:
Hi all,
I want restrict some user to use POP3 and some other to use SMTP. I consider to startup multi Auth daemond and each use a diffenent SQL. For example: for pop3: select .... where pop3_service=1 and ... for smtp: select .... where smtp_service=1 and ...
I don't know if this is a good idea and how to setup dovecot to do so.
Is there any suggest?
Use %s in the query which expands to IMAP or POP3. For example for your above selects you could use:
select .. where %Ls_service=1 and ..
See doc/variables.txt for more information about them.