Esto es para manejar reglas de filtrado de mensajes hechas en sieve  
vía la interfaz de IMP. Muy cómodo pués teniendo las reglas en el  
servidor, puedo usar/probar cualquier MUA :) + las comodidades que  
ofrece el filtrado.
Ingo es el módulo de horde que maneja/traduce a las reglas en sieve

$ sudo adduser www-data mail
$ sudo vim /etc/dovecot/dovecot.conf

protocols = imap pop3 imaps managesieve

protocol managesieve {

     # IP or host address where to listen in for connections.
     listen = 127.0.0.1:2000

     # Login executable location.
     login_executable = /usr/lib/dovecot/managesieve-login

     # managesieve executable location. See mail_executable for IMAP  
for examples how this could be changed.
     mail_executable = /usr/lib/dovecot/managesieve

     # Maximum managesieve command line length in bytes. This setting  
is directly borrowed from IMAP. But, since
     # long command lines are very unlikely with ManageSieve, changing  
this will not be very useful.
     managesieve_max_line_length = 65536

     # Specifies the location of the symbolic link pointing to the  
active script in the sieve storage directory.
     # This must match the sieve setting used by deliver. Variable  
substitution with % is recognized. If a regular
     # file exists at this location, it is moved to the sieve_storage  
location before the symbolic link is installed.
     # It is renamed to dovecot.orig.sieve and therefore listed as  
dovecot.orig by a ManageSieve client.
     sieve = ~/.dovecot.sieve

     # To fool ManageSieve clients that are focused on CMU's  
timesieved you can specify the IMPLEMENTATION capability
     # that the dovecot reports to clients (e.g. 'Cyrus timsieved v2.2.13').
     managesieve_implementation_string = dovecot

}

$ sudo /etc/init.d/dovecot restart

Verificar que esté el puerto 2000 escuchando por localhost

$ sudo vim /srv/www/horde/ingo/config/backends.php

Comentar todo y poner:

$backends['sieve'] = array(
        'driver' => 'timsieved',
        'preferred' => 'localhost',
        'hordeauth' => full,
        'params' => array(
        'hostspec' => 'localhost',
        'logintype' => 'PLAIN',
        'usetls' => false,
        'port' => 2000,
        'scriptname' => 'ingo',
),
'script' => 'sieve',
'scriptparams' => array(),
'shares' => false
);

$ sudo /etc/init.d/apache2 reload

Entrar a http://webmail.foobar.cu  y en la sección filtros empezar a  
crear reglas.

Para ver si se están creando las reglas correctamente, ir al Maildir  
del usuario y hacer un cat .dovecot.sieve ... allí estarán las reglas.

FIN

----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.
_______________________________________________
Cancelar suscripción
https://listas.softwarelibre.cu/mailman/listinfo/linux-l
Buscar en el archivo
http://listas.softwarelibre.cu/buscar/linux-l

Responder a