Navigation

    Kopano
    • Register
    • Login
    • Search
    • Categories
    • Get Official Kopano Support
    • Recent
    Statement regarding the closure of the Kopano community forum and the end of the community edition

    Create server-based rules

    Kopano Groupware Core
    4
    5
    1080
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • John Carter
      John Carter last edited by

      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.

      1 Reply Last reply Reply Quote 0
      • fbartels
        fbartels Kopano last edited by

        Hi @John-Carter ,

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

        Regards Felix

        Resources:
        https://kopano.com/blog/how-to-get-kopano/
        https://documentation.kopano.io/
        https://kb.kopano.io/

        Support overview:
        https://kopano.com/support/

        1 Reply Last reply Reply Quote 0
        • John Carter
          John Carter last edited by

          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?

          umgfoin 1 Reply Last reply Reply Quote 0
          • umgfoin
            umgfoin @John Carter last edited by

            @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.

            1 Reply Last reply Reply Quote 0
            • Coffee_is_life
              Coffee_is_life last edited by Coffee_is_life

              @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

              1 Reply Last reply Reply Quote 0
              • First post
                Last post