pkg install dovecot-pigeonhole
# Dovecot LDA for delivery
dovecot unix - n n - - pipe
flags=DRhu user=vmail:vmail argv=/usr/local/libexec/dovecot/dovecot-lda -f ${sender} -d ${recipient}
#
dovecot_destination_recipient_limit = 1
virtual_transport = dovecot
mkdir -p /usr/local/etc/dovecot/sieve/global
mail_home = /var/mail/virtual/%u/sieve
mail_location = maildir:/var/mail/virtual/%u
protocol lda {
mail_plugins = $mail_plugins sieve
}
protocols = $protocols sieve
plugin {
sieve = /var/mail/virtual/%u/sieve/dovecot.sieve
sieve_global_path = /usr/local/etc/dovecot/sieve/default.sieve
sieve_dir = /var/mail/virtual/%u/sieve
sieve_global_dir = /usr/local/etc/dovecot/sieve/global/
}
$config['plugins'] = array(
'archive',
'zipdownload',
'managesieve',
);
$config['managesieve_host'] = '<mail server>';
$config['managesieve_usetls'] = true;
$config['managesieve_default'] = '/usr/local/etc/dovecot/sieve/global';