Sieve_before

@lbutlr kremels at kreme.com
Wed Oct 21 23:10:02 EEST 2020


On 21 Oct 2020, at 13:08, @lbutlr <kremels at kreme.com> wrote:
> # cat /usr/lib/dovecot/sieve/bcc.sieve
> require ["variables", "copy"];
> 
> if address :matches ["To", "Cc"] ["*@*."] {
>   redirect :copy "backup+295.${1}.${2}@. . .";
> }

… 

> So far, I think it's working. 🤞

Welp, spoke to soon. I rebooted because of an update to FreeBSD p10 and now the bcc.sieve doesn’t appear to be doing anything, but I am not seeing any errors logged either.

I am wondering about doing something like

If header :matches ["received"] ["for <*@*>"]

To account for list mail properly, but until I know why this is now failing, I feel like I can't do that.

I have trace logs enabled for user scripts, but I think only error get logged for upper level, and only along the lines of "could not compile <name of sieve>".

-- 
"Some cause happiness wherever they go; others, whenever they go.." -
	Oscar Wilde



More information about the dovecot mailing list