Victor Oñate
2012-May-02 21:54 UTC
[Dovecot] Sieve script does not run in dovecot 2.0 on squeeze
Hi, I want to use Sieve filtering with my Dovecot 2.0.20 installation on Debian squeeze. ManageSieve works fine so far, I can edit and activate/deactive scripts (using Thunderbird + Plugin) and they show up in the filesystem where I expect them to be, see below. # ls -la /home/k2009999/ total 16 drwxr-xr-x 4 k2009999 mail 4096 Apr 30 10:46 . drwxr-xr-x 4 root root 4096 Apr 24 17:04 .. drwx------ 7 k2009999 Domain Users 4096 Apr 30 10:56 Maildir lrwxrwxrwx 1 k2009999 Domain Users 21 Apr 30 10:46 currently-active-script.sieve -> sieve/outoffice.sieve drwxr-xr-x 3 k2009999 mail 4096 May 2 16:44 sieve ls -la /home/k2009999/sieve/ total 16 drwxr-xr-x 3 k2009999 mail 4096 May 2 16:44 . drwxr-xr-x 4 k2009999 mail 4096 Apr 30 10:46 .. -rw-r--r-- 1 k2009999 mail 36 Apr 26 17:21 outoffice.sieve drwxr-xr-x 2 k2009999 Domain Users 4096 May 2 16:44 tmp #less outoffice.sieve redirect "user at dominio.uk"; In dovecot.conf I have mail_location = maildir:~/Maildir plugin { quota = dirsize sieve=~/currently-active-script.sieve sieve_dir=~/sieve sieve_storage=~/sieve } protocols = imap sieve protocol sieve { managesieve_logout_format = bytes ( in=%i : out=%o ) } service managesieve-login { user = dovecot inet_listener sieve { port = 4190 } process_limit = 2000 } userdb { args = /etc/dovecot/dovecot-ldap.conf driver = ldap } In postfix I have home_mailbox = Maildir/ the problem is that the script does not run and so the mail is delivered the initial recipient. I use LDAP to delivery the mail. any idea. Thank you. Th. Victor O?ate
Janne Snabb
2012-May-03 07:42 UTC
[Dovecot] Sieve script does not run in dovecot 2.0 on squeeze
On 05/03/2012 04:54 AM, Victor O?ate wrote:> In dovecot.conf I have > > > mail_location = maildir:~/Maildir > > plugin { > quota = dirsize > sieve=~/currently-active-script.sieve > sieve_dir=~/sieve > sieve_storage=~/sieve > } > > protocols = imap sieve > > protocol sieve { > managesieve_logout_format = bytes ( in=%i : out=%o ) > } > > service managesieve-login { > user = dovecot > inet_listener sieve { > port = 4190 > } > process_limit = 2000 > } > > > userdb { > args = /etc/dovecot/dovecot-ldap.conf > driver = ldap > }After you have fixed your Postfix configuration (see below), you probably need to add: protocol lda { mail_plugins = $mail_plugins sieve }> In postfix I have > > > home_mailbox = Maildir/You need to configure Postfix to use local delivery agent (LDA) which supports sieve, such as Dovecot's LDA with sieve plugin. Have a look at: http://wiki.dovecot.org/LDA/Postfix> the problem is that the script does not run and so the mail is delivered > the initial recipient. > > I use LDAP to delivery the mail. > > any idea. Thank you.Hope this helps. -- Janne Snabb / EPIPE Communications snabb at epipe.com - http://epipe.com/