Zum Inhalt springen

Roundcube/Plugin/managesieve: Unterschied zwischen den Versionen

Aus Foxwiki
 
(2 dazwischenliegende Versionen desselben Benutzers werden nicht angezeigt)
Zeile 9: Zeile 9:


== Beschreibung ==
== Beschreibung ==
Writes sieve scripts to filter the incoming mails (reject, move to a specific folders und weitere). Note that to use this you must have ''Dovecot managesieve'' enabled.
Writes sieve scripts to filter the incoming mails (reject, move to a specific folders und weitere).  
 
* Plugin name: ''managesieve''
* Requires: Dovecot Pigeonhole
* Requires: Dovecot Pigeonhole
* Shipped with Roundcube
* Shipped with Roundcube
; Note
<blockquote>
„Dovecot [[managesieve]]“ must be enabled
</blockquote>


  cd /var/www/roundcube/plugins
  cd /var/www/roundcube/plugins
  cd managesieve
  cd managesieve
  cp -p config.inc.php.dist config.inc.php
  cp -p config.inc.php.dist config.inc.php
Modify in such a way the config file. Remember that the port of the dovecot-managesive service is now 4190 (2000 is obsolete).
Modify in such a way the config file. Remember that the port of the dovecot-managesive service is now 4190 (2000 is obsolete).
  $config['managesieve_port'] = 4190;
  $config['managesieve_port'] = 4190;
Zeile 25: Zeile 29:
  // Enables separate management interface for setting forwards (redirect to and copy to)  
  // Enables separate management interface for setting forwards (redirect to and copy to)  
  $config['managesieve_forward'] = 1;
  $config['managesieve_forward'] = 1;
NB: <mail-server-IP> is the IP address of your mail server (localhost if <code>qmail</code> and <code>sql</code> share the same IP).
NB: <mail-server-IP> is the IP address of your mail server (localhost if <code>qmail</code> and <code>sql</code> share the same IP).


And this is what you are going to see in the dovecot log simply setting a redirect filter
And this is what you are going to see in the Dovecot log simply by setting a redirect filter
  Oct 22 00:03:13 lda(test@yourdomain.net): Info: sieve: msgid=<c3445037f979a8cb793df1f858b7a4f9@somedomain.com>: forwarded to <someone@somewhere.net>
  Oct 22 00:03:13 lda(test@yourdomain.net): Info: sieve: msgid=<c3445037f979a8cb793df1f858b7a4f9@somedomain.com>: forwarded to <someone@somewhere.net>
Remember that, in order to the sieve rules to take place, you have to setup the <code>.qmail</code> file at least for that user or the entire domain as explained earlier in the sieve note about Dovecot, otherwise the LDA will be <code>vpopmail</code> instead of <code>Dovecot</code> and the sieve rules will be ignored.
Remember that, in order to the sieve rules to take place, you have to setup the <code>.qmail</code> file at least for that user or the entire domain as explained earlier in the sieve note about Dovecot, otherwise the LDA will be <code>vpopmail</code> instead of <code>Dovecot</code> and the sieve rules will be ignored.


After ages of RoundCube usage I finally became aware ofthe fact that this plugin has separate management interface for vacation responses and forwarding!
After ages of RoundCube usage, I finally became aware of the fact that this plugin has a separate management interface for vacation responses and forwarding!


It's worth to remember that using a sieve script for the forwarding breaks both <code>SPF</code> and <code>DKIM.</code>
It's worth remembering that using a sieve script for the forwarding breaks both <code>SPF</code> and <code>DKIM.</code>


<!--
== Installation ==
== Installation ==
<syntaxhighlight lang="bash" highlight="1" line copy>
<syntaxhighlight lang="bash" highlight="1" line copy>
< /syntaxhighlight>
</syntaxhighlight>
 
-->


<!--
<!--
== Anwendung ==
== Anwendung ==
<syntaxhighlight lang="bash" highlight="1" line copy>
<syntaxhighlight lang="bash" highlight="1" line copy>
< /syntaxhighlight>
</syntaxhighlight>
 
-->
<!-- output -->
<!-- output -->
<!--
<syntaxhighlight lang="bash" highlight="" line>
<syntaxhighlight lang="bash" highlight="" line>
< /syntaxhighlight>
</syntaxhighlight>
-->


<!--
=== Problembehebung ===
=== Problembehebung ===
-->
-->

Aktuelle Version vom 7. Juli 2026, 08:43 Uhr

Roundcube/Plugin/managesieve


Beschreibung

Writes sieve scripts to filter the incoming mails (reject, move to a specific folders und weitere).

  • Requires: Dovecot Pigeonhole
  • Shipped with Roundcube
Note

„Dovecot managesieve“ must be enabled

cd /var/www/roundcube/plugins
cd managesieve
cp -p config.inc.php.dist config.inc.php

Modify in such a way the config file. Remember that the port of the dovecot-managesive service is now 4190 (2000 is obsolete).

$config['managesieve_port'] = 4190;
$config['managesieve_host'] = '<mail-server-IP>';
// Enables separate management interface for vacation responses (out-of-office) 
$config['managesieve_vacation'] = 1; 
// Enables separate management interface for setting forwards (redirect to and copy to) 
$config['managesieve_forward'] = 1;

NB: <mail-server-IP> is the IP address of your mail server (localhost if qmail and sql share the same IP).

And this is what you are going to see in the Dovecot log simply by setting a redirect filter

Oct 22 00:03:13 lda(test@yourdomain.net): Info: sieve: msgid=<c3445037f979a8cb793df1f858b7a4f9@somedomain.com>: forwarded to <someone@somewhere.net>

Remember that, in order to the sieve rules to take place, you have to setup the .qmail file at least for that user or the entire domain as explained earlier in the sieve note about Dovecot, otherwise the LDA will be vpopmail instead of Dovecot and the sieve rules will be ignored.

After ages of RoundCube usage, I finally became aware of the fact that this plugin has a separate management interface for vacation responses and forwarding!

It's worth remembering that using a sieve script for the forwarding breaks both SPF and DKIM.



Konfiguration

Dateien

Datei Beschreibung


Anhang

Siehe auch



Dokumentation

Projekt

  1. https://github.com/roundcube/roundcubemail/tree/master/plugins/managesieve
  2. https://wiki.hostsharing.net/index.php/Managesieve