Scott Lewis
2011-Dec-12 13:02 UTC
[Dovecot] simultaneous scripts not running via sieve_before
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]
Duane Hill
2011-Dec-12 13:57 UTC
[Dovecot] simultaneous scripts not running via sieve_before
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.
Stephan Bosch
2011-Dec-12 16:25 UTC
[Dovecot] simultaneous scripts not running via sieve_before
Op 12/12/2011 2:57 PM, Duane Hill schreef:> On Monday, December 12, 2011 at 13:02:05 UTC, scott_the_musician at yahoo.com.au confabulated: >> 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/ConfigurationIt can be a file, but then it must point to the sieve script (in this case redirect.sieve) and not to the compiled binary (redirect.svbin in this case). Regards, Stephan.
Scott Lewis
2011-Dec-16 13:24 UTC
[Dovecot] simultaneous scripts not running via sieve_before
Thanks for the advise - it worked a treat! Glad to finally have this sieve stuff under control, after weeks of trying to get it working :) ________________________________ From: Stephan Bosch <stephan at rename-it.nl> To: Duane Hill <duihi77 at gmail.com> Cc: dovecot at dovecot.org Sent: Tuesday, 13 December 2011 3:25 AM Subject: Re: [Dovecot] simultaneous scripts not running via sieve_before Op 12/12/2011 2:57 PM, Duane Hill schreef:> On Monday, December 12, 2011 at 13:02:05 UTC, scott_the_musician at yahoo.com.au confabulated: >> 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/ConfigurationIt can be a file, but then it must point to the sieve script (in this case redirect.sieve) and not to the compiled binary (redirect.svbin in this case). Regards, Stephan.