<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
On 12/15/2017 07:38 AM, Vladislav Kurz wrote:<br>
<blockquote type="cite"
cite="mid:e73548f2-b289-4abe-4de8-0d7f9f045b1a@webstep.net">
<pre wrap="">On 12/15/17 12:57, Patrick Goetz wrote:
</pre>
<blockquote type="cite">
<pre wrap="">Many thanks to Vladislav and Merlin for setting me in the right
direction for setting up user-activated vacation notifications. A
couple of follow up questions:
On 12/14/2017 03:31 AM, Vladislav Kurz wrote:
</pre>
<blockquote type="cite">
<blockquote type="cite">
<pre wrap="">Also, is there anything special I need to do with my cyrus configuration
to allow for roundcube to notify imapd about sieve rules being
activated/deactivated?
</pre>
</blockquote>
<pre wrap="">Just uncomment the sieve line in cyrus.conf
</pre>
</blockquote>
<pre wrap="">Following the documentation here:
<a class="moz-txt-link-freetext" href="https://www.cyrusimap.org/imap/reference/admin/sieve.html">https://www.cyrusimap.org/imap/reference/admin/sieve.html</a>
it looks like I also need to add a managesieve line to
/etc/cyrus/cyrus.conf?
sieve cmd="timsieved" listen="servername:sieve" prefork=0
managesieve cmd="timsieved" listen="servername:4190" prefork=0
Is this correct, or am I doing some superfluous? I enabled managesieve
and roundcube is talking to the sieve server, but didn't test without.
</pre>
</blockquote>
<pre wrap="">Hello Patrick,
these lines look like the same. Sieve port is 4190, and the first item
is IMHO just a name. Just keep the first one.</pre>
</blockquote>
<br>
Actually, these may not be the same, depending on the contents of
/etc/services for the "sieve" service. This used to be 2000, prior
to standardization in RFC5804. So, if your /etc/services lists
4190, then get rid of the duplicate line. The fact that Cyrus
starts with both lines defined makes me think that either sieve
isn't listed in /etc/services (which should have resulted in an
error) or that it isn't 4190, since one cannot have two services
defined for the same listen port.<br>
<br>
<blockquote type="cite"
cite="mid:e73548f2-b289-4abe-4de8-0d7f9f045b1a@webstep.net"><br>
<blockquote type="cite">
<pre wrap="">Since this is our first time using sieve, I haven't worried about this
too much until now, but roundcube+managesieve seems to be concerned
about the location of global sieve scripts:
// default contents of filters script (eg. default spam filter)
// $config['managesieve_default'] = '/etc/dovecot/sieve/global';
$config['managesieve_default'] = '/var/imap/sieve';
</pre>
</blockquote>
<pre wrap="">There is nothing like global sieve script in cyrus (at least I did not
find a way how to do it.)</pre>
</blockquote>
<br>
There is. Please see the documentation here:<br>
<a class="moz-txt-link-freetext"
href="https://www.cyrusimap.org/imap/reference/admin/sieve.html#sieve-scripts-in-shared-folders">https://www.cyrusimap.org/imap/reference/admin/sieve.html#sieve-scripts-in-shared-folders</a><br>
<br>
Quoting:<br>
<blockquote type="cite">
<p>Cyrus has two types of repositories where Sieve scripts can
live:</p>
<ol class="arabic">
<li>
<p class="first"><strong>Personal</strong> is per user and</p>
</li>
<li>
<dl class="first docutils">
<dt><strong>Global</strong> is for every user. Global
scripts aren’t applied on incoming messages by default:
users must include them in their scripts.</dt>
<dd>
<ul class="first last simple">
<li>Note that there are two types of Global scripts: <strong>global</strong>
and <strong>global per domain</strong>.</li>
</ul>
</dd>
</dl>
</li>
</ol>
</blockquote>
Cheers,<br>
-nic<br>
<br>
<br>
<blockquote type="cite"
cite="mid:e73548f2-b289-4abe-4de8-0d7f9f045b1a@webstep.net">
<pre wrap="">
The option above is path to a default script (file, not folder) that
will be applied to the user upon first login to roundcube. I use it as a
template for users with some recommended settings or disabled examples.
I usually put it into /etc/roundcube/roundcube.script, but you can put
it almost anywhere. (perhaps somewhere in document_root for roundcube is
also fine).
Do not rely on it as default. It is applied only if the user does not
have a sieve script yet. After that users are free to modify it. If
someone does not use roundcube at all, he will not get that script applied.
</pre>
</blockquote>
<br>
<pre class="moz-signature" cols="72">--
Nic Bernstein <a class="moz-txt-link-abbreviated" href="mailto:nic@onlight.com">nic@onlight.com</a>
Onlight Inc. <a class="moz-txt-link-abbreviated" href="http://www.onlight.com">www.onlight.com</a>
6525 W Bluemound Rd., Ste 24 v. 414.272.4477
Milwaukee, Wisconsin 53213-4073 f. 414.290.0335
</pre>
</body>
</html>