Próxima revisión | Revisión previaPróxima revisiónAmbos lados, revisión siguiente |
es:howtos:network_services:dovecot_with_sieve [2019/02/11 12:10 (UTC)] – creado slackwarespanol | es:howtos:network_services:dovecot_with_sieve [2019/02/14 15:26 (UTC)] – [Instalación del software] slackwarespanol |
---|
| <note warning>En proceso de traducción. Victor</note> |
<!-- Add your text below. We strongly advise to start with a Headline (see button bar above). --> | <!-- Add your text below. We strongly advise to start with a Headline (see button bar above). --> |
====== Adding Sieve and ManageSieve support to dovecot ====== | ====== Adición de la compatibilidad con Sieve y ManageSieve a dovecot ====== |
| |
===== Installing the Software ===== | ===== Instalación del software ===== |
| |
Assuming you have set up Dovecot and Postfix as per [[howtos:network_services:postfix_dovecot_mysql|Creating a Virtual Mail Server with Postfix, Dovecot and MySQL]] you may want some server-side filtering, and vacation response capabilities. This can be done using the sieve filter language, and edited by your virtual mail users using managesieve. | Suponiendo que haya configurado Dovecot y Postfix según [[:es:howtos:network_services:postfix_dovecot_mysql | Creación de un servidor de correo virtual con Postfix, Dovecot y MySQL]] es posible que desee un filtrado del lado del servidor y capacidades de respuesta de vacaciones //(and vacation response capabilities?)//. Esto se puede hacer usando el idioma del filtro de tamiz, y sus usuarios de correo virtual pueden editarlo utilizando administrar. |
| |
There is a slackbuild for dovecot that provides the sieve and managesieve functionality called [[http://slackbuilds.org/repository/14.1/network/dovecot-pigeonhole/?search=pigeonhole|pigeonhole]]. | Hay un slackbuild para dovecot que proporciona la funcionalidad de tamiz y administración llamada [[http://slackbuilds.org/repository/14.1/network/dovecot-pigeonhole/?search=pigeonhole|pigeonhole]]. |
<note important>You must use the version of pigeonhole designed for the version of dovecot you are using as the abi changes from version to version.</note> | |
Once you have installed pigeonhole using the slackbuild, for example, using [[https://github.com/sbopkg/sbopkg/releases/download/0.37.0/sbopkg-0.37.0-noarch-1_cng.tgz|sbopkg]] you can then configure it. | |
| |
===== Configuring Pigeonhole ===== | <note important>Debes usar la versión de casillero diseñada para la versión de dovecot que estás usando a medida que el abi cambia de versión a versión.</note> |
| Una vez que haya instalado un casillero usando slackbuild, por ejemplo, usando [[https://github.com/sbopkg/sbopkg/releases/download/0.37.0/sbopkg-0.37.0-noarch-1_cng.tgz|sbopkg]] A continuación, puede configurarlo. |
| |
We will use a basic configuration, which can be expanded later if needed. | ===== Configurando el casillero ===== |
copy the following 3 files from /usr/doc/dovecot-2.your.version/example-config/conf.d/ to /etc/dovecot/conf.d | |
| Usaremos una configuración básica, que puede ampliarse más adelante si es necesario. Copie los 3 archivos siguientes de /usr/doc/dovecot-2.your.version/example-config/conf.d/ a /etc/dovecot/conf.d |
| |
20-managesieve.conf | 20-managesieve.conf |
| |
20-lmtp.conf | 20-lmtp.conf |
| Edite /etc/dovecot/conf.d/20-managesieve.conf y elimine el comentario de la línea de protocolos, la línea de inicio de sesión del administrador de servicios, las líneas de puerto y de inet_listener y las dos líneas de llaves cerradas. |
| Esto te dejará con las siguientes líneas sin comentarios en el archivo. |
| |
| |
Edit /etc/dovecot/conf.d/20-managesieve.conf and uncomment the protocols line, service managesieve-login line, the inet_listener and port lines, and the two close braces lines. | |
this will leave you with the following uncommented lines in the file | |
<code>protocols = $protocols sieve | <code>protocols = $protocols sieve |
service managesieve-login { | service managesieve-login { |
protocol sieve { | protocol sieve { |
}</code> | }</code> |
that is managesieve enabled. now to configure sieve itself. | eso es gestionado habilitado. Ahora para configurar el propio sieve. |
| |
Edit /etc/dovecot/conf.d/90-sieve.conf | Edite /etc/dovecot/conf.d/90-sieve.conf |
in the plugin section make the sieve line read | en la sección de complementos haz que la línea de sieve lea |
<code>sieve=file:/var/vmail/vhosts/%d/%n/sieve/scripts;active=/var/vmail/vhosts/%d/%n/sieve/.dovecot.sieve</code> | <code>sieve=file:/var/vmail/vhosts/%d/%n/sieve/scripts;active=/var/vmail/vhosts/%d/%n/sieve/.dovecot.sieve</code> |
this specifies where the user sieve scripts will be stored. (We do not use the default location of the virtual users email folder, as it is not recommended [[http://wiki2.dovecot.org/Pigeonhole/ManageSieve/Configuration|see]], as it shows up as a directory in email clients.) | |
| |
we also might as well configure an error log file for each user's scripts, so after that line, add a new line | esto especifica dónde se almacenarán los scripts de sieve de usuario. (No utilizamos la ubicación predeterminada de la carpeta de correo electrónico de los usuarios virtuales, ya que no se recomienda [[http://wiki2.dovecot.org/Pigeonhole/ManageSieve/Configuration|see]], ya que aparece como un directorio en clientes de correo electrónico.) |
| |
| También podríamos configurar un archivo de registro de errores para los scripts de cada usuario, así que después de esa línea, agregue una nueva línea |
<code>sieve_user_log = file:/var/vmail/vhosts/%d/%n/sieve/sieve_error.log</code> | <code>sieve_user_log = file:/var/vmail/vhosts/%d/%n/sieve/sieve_error.log</code> |
Now edit /etc/dovecot/conf.d/20-lmtp.conf and uncomment the mail_plugins line in the protocol lmtp section and modify it to read <code>mail_plugins = $mail_plugins sieve</code> | Ahora edite /etc/dovecot/conf.d/20-lmtp.conf y descomente la línea mail_plugins en la sección lmtp del protocolo y modifíquela para que lea <code>mail_plugins = $mail_plugins sieve</code> |
===== Open the firewall for ManageSieve ===== | |
| ===== Abra el firewall para ManageSieve ===== |
| |
that is it for basic installation, although if you were following [[howtos:network_services:postfix_dovecot_mysql|Creating a Virtual Mail Server with Postfix, Dovecot and MySQL]] you will also need to add port 4190 to the firewall with something like | Eso es todo para la instalación básica, aunque si siguieras [[:es:howtos:network_services:postfix_dovecot_mysql | Creando un servidor de correo virtual con Postfix, Dovecot y MySQL]] también necesitarás agregar el puerto 4190 al firewall con algo como |
<code>iptables -A INPUT -p tcp --dport 4190 -m state --state NEW -j ACCEPT</code> | <code>iptables -A INPUT -p tcp --dport 4190 -m state --state NEW -j ACCEPT</code> |
| |
You may also want to restart dovecot to make sure it sees your newly added plugins | También es posible que desee reiniciar dovecot para asegurarse de que vea sus complementos recién agregados |
<code>/etc/rc.d/rc.dovecot restart</code> | <code>/etc/rc.d/rc.dovecot restart</code> |
| |
===== Configuring Thunderbird for Sieve ===== | ===== Configurando Thunderbird para Sieve ===== |
ManageSieve as a tool to allow (virtual) users to create their own filters is not much use without a client. Fortunately there is one available for mozilla thunderbird. Unfortunately, the one available on the mozilla addons/extentions site does not work with any current version of thunderbird. Fortunately, to cut a long story short, the author has a more recent version which does work. | ManageSieve como una herramienta para permitir que los usuarios (virtuales) creen sus propios filtros no es de mucha utilidad sin un cliente. Afortunadamente hay uno disponible para mozilla thunderbird. Desafortunadamente, el que está disponible en el sitio de the_mozilla_addons/extentions no funciona con ninguna versión actual de thunderbird. Afortunadamente, para acortar una larga historia, el autor tiene una versión más reciente que sí funciona. |
| |
It can be downloaded [[https://github.com/thsmi/sieve/blob/master/nightly/0.2.3/sieve-0.2.3h.xpi?raw=true|here]] and should newer versions come out, they should be available from the [[https://github.com/thsmi/sieve/blob/master/nightly/|nightly]] folder on the project's github site. Download this file to your computer, and manually install it into thunderbird. | |
| |
Once this is installed, select the sieve-enabled mail account in thunderbird, then select tools - sieve message filters. Allow autodetect, and approve the certificate warning message (assuming you chose self-certified certificate in the howto). | Puede descargarse [[https://github.com/thsmi/sieve/blob/master/nightly/0.2.3/sieve-0.2.3h.xpi?raw=true|acá]] y, en caso de que salgan versiones más recientes, deberían estar disponibles en la carpeta [[https://github.com/thsmi/sieve/blob/master/nightly/|nightly]] en el sitio de github del proyecto. Descargue este archivo a su computadora e instálelo manualmente en thunderbird. |
Now you can create sieve filters, which will act on your mail at the server. The plugin has some help for syntax and keywords, and there are plenty of examples on the internet for different tasks. | |
| |
====== Sources ====== | Una vez que esté instalado, seleccione la cuenta de correo con sieve habilitado en thunderbird, luego seleccione herramientas - filtros de mensajes de sieve. Permita la detección automática y apruebe el mensaje de advertencia del certificado (suponiendo que eligió el certificado auto certificado en el howto). |
| Ahora puede crear filtros de sieve, que actuarán en su correo en el servidor. El complemento tiene alguna ayuda para la sintaxis y las palabras clave, y hay muchos ejemplos en Internet para diferentes tareas. |
| ====== Fuentes ====== |
<!-- If you are copying information from another source, then specify that source --> | <!-- If you are copying information from another source, then specify that source --> |
<!-- * Original source: [[http://some.website.org/some/page.html]] --> | <!-- * Original source: [[http://some.website.org/some/page.html]] --> |
<!-- Authors are allowed to give credit to themselves! --> | <!-- Authors are allowed to give credit to themselves! --> |
* Originally written by [[wiki:user:tim | User tim]] | * Escrito originalmente por[[wiki:user:tim | User tim]] |
| * Traducido por: [[wiki:user: slackwarespanol | Victor]] 2019/02/14 15:23 (UTC) |
<!-- * Contributions by [[wiki:user:yyy | User Y]] --> | <!-- * Contributions by [[wiki:user:yyy | User Y]] --> |
| |