qmail

installation of lda and configuration for the sieve with QMT

install dovecot-pigeonhole in qmt repository which provides Sieve.
2) You must use dovecot LDA the configuration of which is shown at the bottom of this page, http://www.qmailtoaster.org/notes.html

go into the /etc/dovecot/config.d and configure 15-lda
like this

# Default is postmaster@<your domain>. %d expands to recipient domain.
postmaster_address = postmaster@%d

# in LMTP replies. Default is the system’s real hostname@domain.
hostname = qmail7.italy1.com

 

# Binary to use for sending mails.
sendmail_path = /var/qmail/bin/sendmail

protocol lda {
# Space separated list of plugins to load (default is global mail_plugins).
mail_plugins = $mail_plugins sieve
# mail_plugins = $mail_plugins sieve # if you want to use sieve put sieve here
}

configure 20-managesieve.conf
like this

 

service managesieve-login {
inet_listener sieve {
port = 4190
}

change 90-sieve

sieve=~/.sieve/dovecot.sieve
sieve_dir = ~/.sieve
sieve_extensions = +notify +imapflags +vnd.dovecot.duplicate +spamtest +spamtestplus +relational +comparator-i;ascii-numeric

change dovecot.conf to be like this:

!include conf.d/90-sieve.conf
!include conf.d/20-managesieve.conf
!include conf.d/15-lda.conf

Install roundcubemail and install sieve related plugins I have sauserprefs super easy to create new rules..

change your .qmail-default for your domain to use the new delivery services

| /usr/bin/dspam –user “$EXT@$HOST” –deliver=stdout |/var/qmail/bin/preline -f /usr/libexec/dovecot/deliver -d $EXT@$USER -o postmaster_address=postmaster@italy1.com

without dspam it will look like this

|/var/qmail/bin/preline -f /usr/libexec/dovecot/deliver -d $EXT@$USER -o postmaster_address=postmaster@italy1.com