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

    kopano autorespond not working

    Kopano Groupware Core
    3
    9
    426
    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.
    • f.pigliacelli
      f.pigliacelli last edited by fbartels

      hi i’m having problems with debian 10 with kopano-autorespond, i deactivated the apparmor service, from the logs everything is ok but the automatic reply oof does not work.

      2022-02-12T15:36:23.243863: [kopano-dagent|T3571] [debug  ] Initializing provider "Kopano Directory Service"
      2022-02-12T15:36:23.243912: [kopano-dagent|T3571] [debug  ] Initializing provider "Private Folders"
      2022-02-12T15:36:23.244631: [kopano-dagent|T3571] [debug  ] Initializing provider "Public Folders"
      2022-02-12T15:36:23.245384: [kopano-dagent|T3571] [debug  ] Target user has OOF active
      2022-02-12T15:36:23.246561: [kopano-dagent|T3571] [info   ] Starting autoresponder for out-of-office message
      2022-02-12T15:36:23.247260: [kopano-dagent|T3571] [debug  ] Running command: "/usr/sbin/kopano-autorespond" "test@cnet.ddns.net" "postmaster@cnet.ddns.net" "I am out of office" "test" "/tmp/autorespond.bDOB85"
      2022-02-12T15:36:23.766495: [kopano-dagent|T3571] [info   ] Command "/usr/sbin/kopano-autorespond" "test@cnet.ddns.net" "postmaster@cnet.ddns.net" "I am out of office" "test" "/tmp/autorespond.bDOB85" ran successfully
      2022-02-12T15:36:23.782164: [kopano-dagent|T3571] [debug  ] Send 'New Mail' notification
      2022-02-12T15:36:23.782243: [kopano-dagent|T3571] [info   ] Delivered message to "test", Subject: "nnnnnnnnnnnnnn", Message-Id: <kcEE.5KXUOPjAS+GbKsaj7SeaIg.gKAN5x0g2AE@mail.cnet.ddns.net>, size 2043
      2022-02-12T15:36:23.783128: [kopano-dagent|T3571] [info   ] Finished processing message
      2022-02-12T15:36:23.784360: [kopano-dagent|T3571] [debug  ] < 250 2.1.5 test@cnet.ddns.net Ok
      2022-02-12T15:36:23.784500: [kopano-dagent|T3571] [debug  ] > QUIT
      2022-02-12T15:36:23.784564: [kopano-dagent|T3571] [debug  ] < 221 2.0.0 Bye
      2022-02-12T15:36:23.784580: [kopano-dagent|T3571] [info   ] LMTP thread exiting
      
      f.pigliacelli 1 Reply Last reply Reply Quote 0
      • f.pigliacelli
        f.pigliacelli @f.pigliacelli last edited by

        @f-pigliacelli the version is kopano-dagent 11.0.2

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

          Hello hello

          How did you configure your

          /etc/kopano/autorespond

          f.pigliacelli 1 Reply Last reply Reply Quote 0
          • varkie
            varkie last edited by

            Hi,

            I had a similar issue, where I had to:

            edit /usr/sbin/kopano-autorespond

            Contents should be:

            #!/usr/bin/python3
            import sys
            from kopano_utils import autorespond
            from kopano_utils import version

            if name == ‘main’:
            sys.exit(autorespond.main())

            chmod 755 /usr/sbin/kopano-autorespond

            Regards,

            1 Reply Last reply Reply Quote 0
            • f.pigliacelli
              f.pigliacelli @JungleMarc last edited by fbartels

              @junglemarc

              # -*- Mode: sh -*-
              ###########################################
              # Autoresponder settings
              ###########################################
              
              # Autorespond if the recipient is in the Cc field
              AUTORESPOND_CC=0
              
              # Autorespond if the recipient is in the Bcc field
              AUTORESPOND_BCC=0
              
              # Autorespond if the recipient is not in any of To, Cc or Bcc
              # (i.e. received the message through a distribution list)
              AUTORESPOND_NORECIP=0
              
              # Only send reply to same e-mail address once per 24 hours
              #TIMELIMIT=$[24*60*60]
              #TIMELIMIT=86400
              TIMELIMIT=$((24*60*60))
              BASE_PATH=/var/lib/kopano/autorespond
              
              # File which contains where vacation message was sent
              #SENDDB=$BASE_PATH/vacation-$USER.db
              
              # Tempfile containing message that will be send
              #SENDDBTMP=$BASE_PATH/vacation-$USER-$$.tmp
              
              SENDDB=${TMP:-/tmp}/kopano-vacation-$USER.db
              SENDDBTMP=${TMP:-/tmp}/kopano-vacation-$USER-$$.tmp
              
              # Customize your actual mail command, normally sendmail
              # Input to this command is the message to send
              SENDMAILCMD=/usr/sbin/sendmail
              
              # Additional parameters for the $SENDMAILCMD
              # The last parameter added to the $SENDMAILCMD is $FROM,
              # so take that into account for the $SENDMAILPARAMS
              SENDMAILPARAMS="-t -f"
              
              1 Reply Last reply Reply Quote 0
              • JungleMarc
                JungleMarc last edited by JungleMarc

                I see you are using

                TIMELIMIT=$((246060))
                

                But it should be

                #TIMELIMIT=$((24*60*60))
                

                It is missing star symbols.

                Instead I use

                TIMELIMIT=84600
                

                Which is just the same but more direct.

                Once applied, restart your kopano-dagent service, and test again.

                Marc

                f.pigliacelli 1 Reply Last reply Reply Quote 0
                • f.pigliacelli
                  f.pigliacelli @JungleMarc last edited by

                  @junglemarc I tried but nothing has changed. i think the problem is the file /usr/ bin/kopano-autorespond. You can show the contents of your file

                  JungleMarc 1 Reply Last reply Reply Quote 0
                  • JungleMarc
                    JungleMarc @f.pigliacelli last edited by

                    @f-pigliacelli It was the only difference I had vs the file you posted.

                    I can look again tomorrow when I log back in my box.

                    Marc

                    JungleMarc 1 Reply Last reply Reply Quote 0
                    • JungleMarc
                      JungleMarc @JungleMarc last edited by JungleMarc

                      My config file looks identital except the difference I mentioned few days ago.

                      But what’s interesting here is that your dagent log is showing the autorespond is executing.

                      I wonder what else could be the issue. What about your kopano-dagent config file? Have you ever customized settings in there?

                      There has to be a way to debug this further.

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