Hi,

I attached a simple template for cyrus.conf, which allows
enabling/disabling imap(s)/pop3(s)/sieve services in cyrus. I made a
trivial change to the Conf.pm module to trigger a kolab-cyrus restart, when
cyrus.conf has been modified. This could also be achieved by a RUNONCHANGE
statement in the template, but this way a double restart in some cases can
be avoided.

Regards,
Matthias

P.S.: This bug also appears upstream it seems:
https://issues.kolab.org/issue4374

Attachment: cyrus.conf.template
Description: Binary data

--- Conf.pm	2010-01-04 22:27:52.000000000 +0100
+++ Conf.pm.new	2010-06-23 13:11:34.000000000 +0200
@@ -297,7 +297,7 @@
                 $haschanged{'apache'} = 1;
             } elsif ($cfg =~ /openldap/) {
                 $haschanged{'slapd'} = 1;
-            } elsif ($cfg =~ /imapd/) {
+            } elsif ($cfg =~ /(imapd|cyrus)/) {
                 $haschanged{'imapd'} = 1;
 	    } elsif ($cfg =~ /amavisd/) {
                 $haschanged{'amavisd'} = 1;

Reply via email to