• The APS Catalog has been deprecated and removed from all Plesk Obsidian versions.
    Applications already installed from the APS Catalog will continue working. However, Plesk will no longer provide support for APS applications.
  • Please be aware: with the Plesk Obsidian 18.0.78 release, the support for the ngx_pagespeed.so module will be deprecated and removed from the sw-nginx package.

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