Problem to catchall mails with "Always send a copy (BCC)" on NethServer 7.3

Thanks Mario!
Now log says:

Error: sieve: before: line 21: unknown tagged argument ‘:copy’ for the redirect command (reported only once at first occurence)
Sep 13 14:55:13 posta dovecot: lda(assistenza@studiolegalereggianini.it): Error: sieve: before: validation failed
Sep 13 14:55:13 posta dovecot: lda(assistenza@studiolegalereggianini.it): Error: sieve: failed to compile script /var/lib/nethserver/sieve-scripts/before.sieve

probably miss something …
other questions: the file says not to edit it but to change the custom template, can you tell me where the template is to be permanently modified?
As always thank you!

The template I have edited at following location:
\etc\e-smith\templates-custom\var\lib\nethserver\sieve-scripts\before.sieve
Inside this directory there is a file “10junkmail” which you can edit.

#
# 10junkmail 
#
{
     if($dovecot{SpamFolder} ne '') {
        $OUT = <<EOF
# -- enabled (move marked SPAM messages into junkmail folder)
require ["fileinto", "mailbox", "copy"];
if header :contains "X-Spam-Flag" "YES" {
    fileinto :create "$dovecot{SpamFolder}";
    stop;
}
else  {
    redirect: copy "nuovoarchivio@xxxxxxxx.it";
    stop;
}
EOF
     } else {
        $OUT = "# -- disabled (Spam is delivered to INBOX)\n";
     }
}

Pay attention to the content, it has different syntax from your original (some variables and EOF)!
:wink:

Thanks Mario!!!
:relaxed:
… and thanks for your patience!! :innocent:

You are welcome