• Plesk Uservoice will be deprecated by October. Moving forward, all product feature requests and improvement suggestions will be managed through our new platform Plesk Productboard.
    To continue sharing your ideas and feedback, please visit features.plesk.com

Resolved Pigeonhole Sieve

RaHa

Basic Pleskian
Is Pigeonhole Sieve in Plesk?

If so, how to use Pipe Plugin?

#---------------------------------------------------------
plugin {
sieve_plugins = sieve_pipe
sieve_pipe_bin_dir = /etc/dovecot/conf.d/custom-pipe
}
#---------------------------------------------------------

Deliver this error:

managesieve: Fatal: Plugin 'sieve_pipe' not found from directory /usr/lib/dovecot/modules/sieve
dovecot: config: Error: managesieve-login: dump-capability process returned 89

If not, how to install?

Thanks.
 
As far as I know, the sieve_pipe plugin is very old. If I'm not mistaken, these days, that functionality is included in the sieve_extprograms plugin.
Plesk is shipped with package plesk-dovecot-pigeonhole. Make sure that it is installed on your server and try to use it for your purposes.
 
Thanks! That works:

#---------------------------------------------------------
plugin {
sieve_plugins = sieve_extprograms
sieve_global_extensions = +vnd.dovecot.pipe
sieve_pipe_bin_dir = /etc/dovecot/conf.d/custom-pipe

#
# Make sure to run "sievec" on this:
sieve_before = /etc/dovecot/conf.d/custom-sieve/global-before.sieve
sieve_after = /etc/dovecot/conf.d/custom-sieve/global-after.sieve
#
}
#---------------------------------------------------------

Pigeonhole/Sieve/Plugins/Extprograms - Dovecot Wiki
Resolved - Global Dovecot Sieve Rule?

#/etc/dovecot/conf.d/custom-sieve/global-before.sieve
require ["vnd.dovecot.pipe"];

#pipe---------------------------------------------------------
if header :contains "Subject" "TESTPIPE" {
pipe "sievefilter.sh";
stop;
}

#!/bin/sh
#/etc/dovecot/conf.d/custom-pipe/sievefilter.sh
pre="/var/qmail/mailnames/domain.tld/webmaster/Maildir/.sievefilter/new/"
suf="_SIEVEFILTER"
file_name=$pre$(date "+%Y%m%d%H%M%S%N")$suf
cat >$file_name
exit 0
 
Last edited:
Back
Top