Package: dovecot-common
Severity: wishlist

Dovecot doesn't necessarily have to be run for imap/pop3, it can also be used only to provide the dovecot-auth service to external programs (like Postfix for SMTP Auth, or the LDA). This is done by specifying "protocols = none" in the conf file, but the init script doesn't recognize this configuration. Very simple patch for the init.d file is attached.

--
Seth Mattinen           [EMAIL PROTECTED]
Roller Network LLC
--- /etc/init.d/dovecot.orig    2008-01-14 20:43:04.000000000 -0800
+++ /etc/init.d/dovecot 2008-01-14 20:49:01.000000000 -0800
@@ -43,7 +43,7 @@
 case "$1" in
   start)
     if grep protocols /etc/dovecot/dovecot.conf | sed 's/#.*$//' | tr -d '"' | 
\
-    egrep -q '[^#]*(\bpop3s?\b|\bimaps?\b)';
+    egrep -q '[^#]*(\bpop3s?\b|\bimaps?\b|\bnone\b)';
     then
       if [ -x /usr/lib/dovecot/imap-login -a -x /usr/lib/dovecot/imap ] \
         || [ -x /usr/lib/dovecot/pop3-login -a -x /usr/lib/dovecot/pop3 ];

Reply via email to