[Dovecot] simultaneous scripts not running via sieve_before

Duane Hill duihi77 at gmail.com
Mon Dec 12 15:57:59 EET 2011


On Monday, December 12, 2011 at 13:02:05 UTC, scott_the_musician at yahoo.com.au confabulated:

> Hi again everyone,

> So I've finally got sieve integration happening on my  REHL
> Postfix/Dovecot server, with private user scripts happily running
> when users create them. (we user SquirrelMail, so the avelsieve
> plugin runs the sieve integration).

> Now I'd like to utilise additional per-user scripts (probably via
> sieve_before), but I've not been able to get my additional scripts to execute.

> I am doing the following:
> a) getting avelsieve to write my redirect script (ie. logging on as
> user, completing private script wizard, and activating it)
> b) compiling .dovecot.sieve with sievec
> c) copying the resultant .dovecot.svbin to sieve/ directory (and renaming it eg redirect.svbin

> still, it appears that each /home/%u/.dovecot.sieve file is the
> only one taking effect. Any thoughts on how to make the other ones
> active? (The idea behind this is to automatically forward all of
> joeuser at mydomain's incoming mail to somewhere like
> joeusersbackup at gmail.com, for backup reasons. One day, I'll work out
> how to configure postfix to do this for all outgoing email too, but that's for another day :)

> Below are what my .conf files look like. Thanks in advance,

> Scott

> /etc/dovecot.conf:
> [code]
> protocols = imap imaps managesieve
> listen = *

> protocol imap {
> #mail_plugins = sieve quota
> }

> ##
> ## ManageSieve specific settings
> ##

> protocol managesieve {

> # debugging

> mail_debug = yes
> #login_executable = /usr/libexec/dovecot/managesieve-login
>  #mail_executable = /usr/libexec/dovecot/managesieve
> #managesieve_max_line_length = 65536
> #managesieve_logout_format = bytes ( in=%i : out=%o )
> #managesieve_implementation_string = Cyrus timsieved v2.2.13
> }

> protocol lda {
> mail_plugins = sieve quota
> sieve=~/.dovecot.sieve
> sieve_extentions = +include
> sieve_dir=~/sieve
> sieve_before = /home/%u/sieve/redirect.svbin
> sieve_global_path = /etc/globalsieverc.svbin
> [/code]

sieve_before  and  sieve_after are directories where extra scripts are
run sequentially before user scripts and after user scripts. See:

http://wiki2.dovecot.org/Pigeonhole/Sieve/Configuration

-- 
If at first you don't succeed, so much for skydiving.




More information about the dovecot mailing list