[Dovecot] IMAP and sieve

moozer bigmoozer at gmail.com
Mon Dec 19 11:27:18 EET 2011


I am currently setting up an IMAP server for archiving purposes. The
goal is to drag an email to the IMAP folder, and then have a server-side
sieve script to put it in the right folder.

One of the sources used was this wiki entry
http://wiki.dovecot.org/LDA/Sieve/Dovecot

I added the
mail_plugins = sieve
to /etc/dovecot/15-lda.conf

and after some exim4 fiddling, mails delivered are filtered by my sieve
script.

Doing the same for imap delivery (in /etc/dovecot/20-imap.conf) give the
following error
Dec 19 10:22:09 leon dovecot: imap: Error:
dlopen(/usr/lib/dovecot/modules/lib90_sieve_plugin.so) failed:
/usr/lib/dovecot/libdovecot-sieve.so.0: undefined symbol:
mail_deliver_save_open
Dec 19 10:22:09 leon dovecot: imap: Error: Can't load plugin
sieve_plugin: Plugin is intended to be used only by binaries: lda lmtp
(we're imap)
Dec 19 10:22:09 leon dovecot: imap: Fatal: Couldn't load required plugins
Dec 19 10:22:10 leon dovecot: imap: Error:
dlopen(/usr/lib/dovecot/modules/lib90_sieve_plugin.so) failed:
/usr/lib/dovecot/libdovecot-sieve.so.0: undefined symbol:
mail_deliver_save_open
Dec 19 10:22:10 leon dovecot: imap: Error: Can't load plugin
sieve_plugin: Plugin is intended to be used only by binaries: lda lmtp
(we're imap)
Dec 19 10:22:10 leon dovecot: imap: Fatal: Couldn't load required plugins


I notice this part:
"plugin is intended to be used only by binaries: lda lmtp (we're imap)"

So the question is if it is possible to run sieve server-side sieve
scripts on emails copied using IMAP.

Suggestions are most welcome.

Moozer

--
I am running debian testing
# dovecot --version
2.0.15


More information about the dovecot mailing list