On 2021-06-19, Samuel Banya <sba...@fastmail.com> wrote:
> Hello everyone,
>
> I've been following the "poolp" guide on how to deploy an email server on 
> OpenBSD:
> - 
> https://poolp.org/posts/2019-09-14/setting-up-a-mail-server-with-opensmtpd-dovecot-and-rspamd/
>
> I'm currently at the very end of the guide in which he is using sieve with 
> Dovecot to do some final filtering.
>
> The unfortunate thing is that when I run these two commands in the 
> '/usr/local/lib/dovecot/sieve' directory:
> sievec report-ham.sieve
> sievec report-spam.sieve
>
> I'm getting the following error:
> # sievec report-ham.sieve
> report-ham: line 1: error: require command: unknown Sieve capability 
> `vnd.dovecot.pipe'.
> report-ham: line 1: error: require command: unknown Sieve capability 
> `imapsieve'.
> report-ham: line 15: error: unknown command 'pipe' (only reported once at 
> first occurrence).
> report-ham: error: validation failed.
> sievec(root): Fatal: failed to compile sieve script 'report-ham.sieve'
> # sievec report-spam.sieve
> report-spam: line 1: error: require command: unknown Sieve capability 
> `vnd.dovecot.pipe'.
> report-spam: line 1: error: require command: unknown Sieve capability 
> `imapsieve'.
> report-spam: line 7: error: unknown command 'pipe' (only reported once at 
> first occurrence).
> report-spam: error: validation failed.
> sievec(root): Fatal: failed to compile sieve script 'report-spam.sieve'

Do you have

mail_plugins = $mail_plugins imap_sieve

in the "protocol imap { ... }" block?

> What's interesting is that this same post has the same exact error, and I 
> tried his workaround which did NOT work unfortunately:
> - http://dovecot.2317879.n4.nabble.com/sieve-compile-error-td70414.html

If that doesn't help, rather than looking at forum posts, try the documentation

https://wiki.dovecot.org/Pigeonhole/Sieve/Plugins/IMAPSieve
https://doc.dovecot.org/configuration_manual/howto/antispam_with_sieve/


Reply via email to