It's a long standing bug. sieve-plugin library, ie lib90_sieve_plugin.so, has references on some symbols defined in libdovecot-lda.so but is not linked against this library: ldd -d -r /usr/lib64/dovecot/lib90_sieve_plugin.so linux-vdso.so.1 (0x00007fff3176b000) libdovecot-sieve.so.0 => /usr/lib64/dovecot/libdovecot-sieve.so.0 (0x00007f453948a000) libc.so.6 => /lib64/libc.so.6 (0x00007f45392b7000) libdovecot-storage.so.0 => /usr/lib64/dovecot/libdovecot-storage.so.0 (0x00007f4539141000) libdovecot.so.0 => /usr/lib64/dovecot/libdovecot.so.0 (0x00007f4538f67000) /lib64/ld-linux-x86-64.so.2 (0x00007f453956e000) undefined symbol: mail_deliver_ctx_get_log_var_expand_table (/usr/lib64/dovecot/lib90_sieve_plugin.so) undefined symbol: mail_deliver_get_return_address (/usr/lib64/dovecot/lib90_sieve_plugin.so) undefined symbol: mail_send_rejection (/usr/lib64/dovecot/lib90_sieve_plugin.so) undefined symbol: mail_deliver_hook_set (/usr/lib64/dovecot/lib90_sieve_plugin.so) Reproducible: Always Steps to Reproduce: 1. Build dovecot with sieve support activated 2. Check the sieve-plugin library 3. Actual Results: the sieve-plugin library have missing symbols which make use of this plugin fail Expected Results: Sieve plugin is to be usable A quiet simple patch can solve this issue
Created attachment 825179 [details] output from emerge --info =net-mail/dovecot-2.3.19.1-r1
Created attachment 825181 [details, diff] Patch to dovecot sieve plugin build system to link it against libdovecot-lda Linking sieve plugin library against libdovecot-lda library fixes the issue
Created attachment 825183 [details, diff] Patch proposal to dovecot ebuild to apply dovecot sieve plugin patch