Create server-based rules

Hi @ all,

first I want to apologize for my bad English…
Now to my question. Is it possible to create server-based rules?

If an e-mail from the domain „test.eu“ is sent to anyone in the organization, this mail should be sent CC to (for example) „paul@help.eu“.

I am thankful for every help.

Hi @John-Carter ,

actually Kopano only supports server side rules. All the rules you create in WebApp are automatically server side.

Hi Felix,

Thank you for your answer.

The rules I create in the WebApp apply only to the user and not Global for the entire company. or?

@john-carter said in Create server-based rules:

The rules I create in the WebApp apply only to the user and not Global for the entire company. or?

The rules are applied individually for each mailbox.
Given, a user owns necessary privileges, Webapp allows to create/edit rules for other mailboxes, too.

++umgfoin.

@John-Carter,

there is a script called kopano-rules.py (https://stash.kopano.io/projects/KSC/repos/core-tools/browse)

you can create a little script like

for e in $(kopano-admin -l | | tail -n+5 | head -n-1 |awk -F" " '{print $1}'| grep -v <paul's username>); do
echo "create rule for $e"
kopano-rules.py --user=$e --create "<rulename>" --conditions "contain-word-in-header:@test.eu" --actions "copy-to:Inbox,<paul's username>"
if [ $? = 0 ]; then
 echo "success for $e"
else
 echo "failed for $e"
fi
done

this should create a rule for every user (except paul) to copy an incomeing mail, containing the domain in the header, to pauls inbox

if someone knows a cleaner rule (like a working “received-from:*@test.eu”), please share :)

regards
coffee_is_life