• We value your experience with Plesk during 2024
    Plesk strives to perform even better in 2025. To help us improve further, please answer a few questions about your experience with Plesk Obsidian 2024.
    Please take this short survey:

    https://pt-research.typeform.com/to/AmZvSXkx
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

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