Re: [Dovecot] doveadm command to block a user?

2012-09-04 Thread Alessio Cecchi

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



[Dovecot] doveadm command to block a user?

2012-09-03 Thread Angel L. Mateo

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?

--
Angel L. Mateo Martínez
Sección de Telemática
Área de Tecnologías de la Información
y las Comunicaciones Aplicadas (ATICA)
http://www.um.es/atica
Tfo: 868887590
Fax: 86337