I am trying to use Dovecot Sieve after upgrading Dovecot from 1.0.15 to 1.2.17. I used the same config file from the old version but I added some entries to make sieve work. In my initial tests, sieve works and is able to do the actions that I set it to do. However, I get 2 copies of incoming emails. The inbox would always preserve a copy even if the sieve filter is set to transfer emails to another folder or redirect it to another address. The logs do not seem to report any issues. I don't know what causes the problem and I would appreciate some pointers.
Here are some more details of my setup:
OS: Linux 2.6.24.2 Dovecot: 1.2.17 Dovecot Sieve:0.1.19 Manage Sieve:0.11.13 MTA: Qmail 1.03
dovecot -n
# 1.2.17: /usr/local/etc/dovecot.conf # OS: Linux 2.6.24.2 i686 Debian lenny/sid log_path: /var/log/dovecot.log log_timestamp: protocols: imap pop3 imaps pop3s managesieve ssl_cert_file: /var/dir/etc/certificates/server.crt ssl_key_file: /var/dir/etc/certificates/server.key disable_plaintext_auth: no 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 login_executable(managesieve): /usr/local/libexec/dovecot/managesieve-login login_greeting: Welcome login_process_size: 32 verbose_proctitle: yes first_valid_uid: 1000 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_executable(managesieve): /usr/local/libexec/dovecot/managesieve mail_plugins(default): quota imap_quota mail_plugins(imap): quota imap_quota mail_plugins(pop3): quota mail_plugins(managesieve): 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 mail_plugin_dir(managesieve): /usr/local/lib/dovecot/managesieve imap_client_workarounds(default): outlook-idle imap_client_workarounds(imap): outlook-idle imap_client_workarounds(pop3): imap_client_workarounds(managesieve): pop3_uidl_format(default): %08Xu%08Xv pop3_uidl_format(imap): %08Xu%08Xv pop3_uidl_format(pop3): UID%u-%v pop3_uidl_format(managesieve): %08Xu%08Xv managesieve_logout_format(default): bytes=%i/%o managesieve_logout_format(imap): bytes=%i/%o managesieve_logout_format(pop3): bytes=%i/%o managesieve_logout_format(managesieve): bytes ( in=%i : out=%o ) namespace: type: private separator: . prefix: INBOX. location: maildir:~/Maildir inbox: yes list: yes subscriptions: yes lda: postmaster_address: postmaster@xxxxxxxxxx.org mail_plugin_dir: /usr/local/lib/dovecot/lda mail_plugins: quota sieve sendmail_path: /var/qmail/bin/sendmail log_path: /var/log/dovecot-deliver-errors.log info_log_path: /var/log/dovecot-deliver.log auth default: verbose: yes passdb: driver: checkpassword args: /var/qmail/bin/auth_pop userdb: driver: prefetch plugin: quota: maildir sieve: ~/.dovecot.sieve sieve_dir: ~/sieve
from: dovecot-deliver.log
deliver(user): Info: Loading modules from directory: /usr/local/lib/dovecot/lda deliver(user): Info: Module loaded: /usr/local/lib/dovecot/lda/lib10_quota_plugin.so deliver(user): Info: Module loaded: /usr/local/lib/dovecot/lda/lib90_sieve_plugin.so deliver(user): Info: Quota root: name= backend=maildir args= deliver(user): Info: Namespace: type=private, prefix=INBOX., sep=., inbox=yes, hidden=no, list=1, subscriptions=yes deliver(user): Info: maildir: data=/home/user/Maildir deliver(user): Info: maildir++: root=/home/user/Maildir, index=, control=, inbox=/home/user/Maildir deliver(user): Info: sieve: using sieve path for user's script: /home/user/.dovecot.sieve deliver(user): Info: sieve: opening script /home/user/.dovecot.sieve deliver(user): Info: sieve: executing compiled script /home/user/.dovecot.sieve deliver(user): Info: sieve: msgid=< CAJNnNYmQpmEopFfT3+_qHvXYxf3v-4bzv9ojJqGfRtcddnTg8g@mail.gmail.com>: stored mail into mailbox 'Inbox.Test'
Thanks in advance for your replies.
Holden