Il 03/09/2012 10:41, Angel L. Mateo ha scritto:> Hello,
>
> Is there any command to be able to lock imap access to a specific
> user? With doveadm kick I could close his connections, but I want to
> avoid future ones too and just for imap.
>
> Any way to do it?
>
I can do it by disable specific user at backend level, for example
vpopmail can do it, but also with SQL can be simple. With specific query
you can disable only IMAP, only POP and so on.
In the password query you can insert something like this:
WHERE username = '%u' AND active = '1' AND ((IF( %a=110, pop, 0
)) =1 OR
(IF( %a=25, smtp , 0 )) =1 OR (IF(( %a = 143 ) AND '%l' =
'127.0.0.1',
webmail, 0 ) = 1 ) OR ( IF(( %a = 143 ) AND '%l' !='127.0.0.1',
imap, 0
) = 1))
Ciao
--
Alessio Cecchi is:
@ ILS -> http://www.linux.it/~alessice/
on LinkedIn -> http://www.linkedin.com/in/alessice
Assistenza Sistemi GNU/Linux -> http://www.cecchi.biz/
@ PLUG -> ex-Presidente, adesso senatore a vita, http://www.prato.linux.it