[Dovecot] Sieve was installed but doesn't work or log

Jim McNamara jim at packetalk.net
Tue May 14 19:49:34 EEST 2013


Hello everyone.

I have dovecot version 1.2.8 installed from source. This morning I 
installed the sieve plugin to sort emails, and though the install 
reported no errors, the plugin doesn't seem to function, and no mention 
of it is made in the logs when I turn on verbose logging.

dovecot --version
1.2.8

dovecot -n

# 1.2.8: /usr/local/etc/dovecot.conf
# OS: Linux 3.2.0-4-amd64 x86_64 Debian 7.0
base_dir: /usr/local/var/run/dovecot/
log_path: /dev/stderr
info_log_path: /dev/stderr
log_timestamp:
protocols: imap imaps pop3s
listen(default): 127.0.0.1:143
listen(imap): 127.0.0.1:143
listen(pop3): *
ssl_listen(default): 192.168.1.1:993
ssl_listen(imap): 192.168.1.1:993
ssl_listen(pop3): 192.168.1.1:995
ssl_cert_file: /var/qmail/control/servercert.pem
ssl_key_file: /var/qmail/control/servercert.pem
ssl_cipher_list: ALL:!LOW
verbose_ssl: yes
login_dir: /usr/local/var/run/dovecot/login
login_executable(default): /usr/local/libexec/dovecot/imap-login
login_executable(imap): /usr/local/libexec/dovecot/imap-login
login_executable(pop3): /usr/local/libexec/dovecot/pop3-login
verbose_proctitle: yes
first_valid_uid: 89
last_valid_uid: 89
mail_location: maildir:~/Maildir
mail_debug: yes
mail_executable(default): /usr/local/libexec/dovecot/imap
mail_executable(imap): /usr/local/libexec/dovecot/imap
mail_executable(pop3): /usr/local/libexec/dovecot/pop3
mail_plugins(default): quota imap_quota
mail_plugins(imap): quota imap_quota
mail_plugins(pop3): quota
mail_plugin_dir(default): /usr/local/lib/dovecot/imap
mail_plugin_dir(imap): /usr/local/lib/dovecot/imap
mail_plugin_dir(pop3): /usr/local/lib/dovecot/pop3
pop3_uidl_format(default): %08Xu%08Xv
pop3_uidl_format(imap): %08Xu%08Xv
pop3_uidl_format(pop3): %v-%u
namespace:
   type: private
   separator: .
   prefix: INBOX.
   inbox: yes
   list: yes
   subscriptions: yes
lda:
   postmaster_address: postmaster at mail.domain.com
   hostname: mail.domain.com
   mail_plugins: sieve
   mail_plugin_dir: /usr/local/lib/dovecot/lda
   deliver_log_format: msgid=%m: %$
   sieve: /home/vpopmail/domains/%d/%n/sieve
   sieve_global_path: /usr/local/etc/default.sieve
   log_path: /var/log/qmail/sieve/dovecot.log
   info_log_path: /var/log/qmail/sieve/dovecot.log
auth default:
   user: vpopmail
   passdb:
     driver: vpopmail
   userdb:
     driver: vpopmail
plugin:
   quota: maildir

Here is the config.log from sieve

root at myplace:/usr/local# head dovecot-1.2-sieve-0.1.19/config.log
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

It was created by Dovecot Sieve configure 0.1.19, which was
generated by GNU Autoconf 2.67.  Invocation command line was

   $ ./configure --with-dovecot=../dovecot-1.2.8/

That compiled cleanly, then make and make install also proceeded without 
error.

With verbose logging enabled, the only times "sieve" appeared in the 
logs was when I tried to load it as a plugin for imap -

grep sieve /var/log/qmail/qmail-dovecot/current |tai64nlocal
2013-05-14 09:20:05.091635500 FPlugin sieve not found from directory 
/usr/local/lib/dovecot/imap
2013-05-14 09:20:06.120848500 FPlugin sieve not found from directory 
/usr/local/lib/dovecot/imap
2013-05-14 09:20:07.142465500 FPlugin sieve not found from directory 
/usr/local/lib/dovecot/imap
2013-05-14 09:20:08.164247500 FPlugin sieve not found from directory 
/usr/local/lib/dovecot/imap

Once I removed it from being loaded as an imap plugin and used it only 
as an lda plugin, it hasn't appeared in the dovecot logs. It also isn't 
logging where I asked it to in the config file (log_path: 
/var/log/qmail/sieve/dovecot.log, or info_log_path: 
/var/log/qmail/sieve/dovecot.log), but that files was touched and all 
directories below /var/log/qmail/sieve have the correct permissions for 
dovecot to write there:

ls -al /var/log/qmail/sieve/
total 16
drwxr-xr-x 2 dovecot dovecot  4096 May 14 11:04 .
drwxr-xr-x 7 qmaill  root    12288 May 14 11:04 ..
-rw-r--r-- 1 dovecot dovecot     0 May 14 11:04 dovecot.log

Can anyone suggest an error they see or what I can do to get my errors 
with the sieve config logged somewhere?

Thanks for your help and insight.




More information about the dovecot mailing list