GFI Software

Welcome to the GFI Software community forum! For support please open a ticket from https://support.gfi.com.

Home » GFI User Forums » Kerio Connect » Set Out-Of-Office for user by admin-API
icon5.gif  Set Out-Of-Office for user by admin-API [message #133633] Mon, 09 January 2017 11:59 Go to next message
carikira
Messages: 4
Registered: January 2017
We have an own Office Backend software, thats responsible for many things (time tracking, project administrative tasks, holiday requests, etc)
With exchange we automatically configured an out-of-office message for the user, when out-of-office time (like holidays) was granted.
We want to keep it that way, because users tend to forget to set it or choose the wrong text.

But I only found a way to set the out-of-office settings as user for myself. i dont want to store all passwords for all users to impersonate them and set OOO settings for them. and even if i would, it would break if they change their password. Rolling Eyes


Is there a way to set OOO settings as admin for a different user by api?
Re: Set Out-Of-Office for user by admin-API [message #133694 is a reply to message #133633] Wed, 11 January 2017 21:21 Go to previous messageGo to next message
Ernesto (Kerio) is currently offline  Ernesto (Kerio)
Messages: 77
Registered: August 2012
Location: San Jose, CA
Unfortunately no, it is not possible via the admin console nor via the API, to set the OOO auto-replay for other users

The only suggestion I can give you is to do it at the OS level by editing the file filter.siv that resides in each mailbox and adding something like this:

------------------------------------------------------------ ---
#!1 __WebmailAutoreply__
if true {
vacation :days 7 :rangeEnabled 1 :rangeStart 1484164800 :rangeEnd 1484251200 "I\'m not in the office...will be
back soon.\n";
}
------------------------------------------------------------ ---

The dates in the script above are in Linux time-stamp format (use date -d <_at_>1484164800 to convert to human-readable format).

Editing the filter.siv file in one or more mailboxes to add a predefined OOO section could be scripted. However, after modifying the .siv files you would need to restart the Kerio Connect service.

So, no, this is not a very nice solution that I would recommend.


Sales Engineer | Kerio
Stay Connected Anytime, Anywhere. Discover Kerio Cloud!
Re: Set Out-Of-Office for user by admin-API [message #145839 is a reply to message #133633] Wed, 22 May 2019 19:22 Go to previous messageGo to next message
xtenz is currently offline  xtenz
Messages: 9
Registered: May 2017
Hi,

I have the same need.
Did you find a solution ?

Thanks
Re: Set Out-Of-Office for user by admin-API [message #145858 is a reply to message #133633] Mon, 27 May 2019 12:11 Go to previous message
Maerad is currently offline  Maerad
Messages: 275
Registered: August 2013
carikira wrote on Mon, 09 January 2017 11:59
i dont want to store all passwords for all users to impersonate them and set OOO settings for them.
Yeah, no. Don't even think of that as an solution or mention it. This would break so many laws at once, at least in the EU.
The only way to do this right now is manually with the filter.siv as someone else already said. This can also be scripted with powershell etc.

Sadly this is one of the few things kerio is bad with.
Previous Topic: Auto-remove accounts
Next Topic: Reminders in public calendars?
Goto Forum:
  


Current Time: Fri Mar 31 01:49:16 CEST 2023

Total time taken to generate the page: 0.03907 seconds