Hello Multiple answers, see inline below.
Am 04.03.25 um 12:17 schrieb International Security Providers ([email protected]):
Thank you a lot. reading works but smh writign the values doesn't: /usr/sbin/sogo-tool user-preferences set defaults "[email protected]" Vacation '{"enabled":1,"autoReplyText":"Testing direct value","daysBetweenResponse":3}' -p /etc/sogo/sieve.creds -F
First: There is no "-F" option for user-preferences. Second: "-p /etc/sogo/sieve.creds" has to be provided after the user name. Third: You have to provide valid json as input value! I myself had an copy and paste error there :-) The correct example from above would be:/usr/sbin/sogo-tool user-preferences set defaults "[email protected]" -p /etc/sogo/sieve.creds Vacation '{"Vacation": {"enabled":1,"autoReplyText":"Testing direct value","daysBetweenResponse":3}}'
2025-03-04 11:59:53.612 sogo-tool[35744:35744] ERROR(+[GCSFolderManager defaultFolderManager]): default 'OCSFolderInfoURL' is not configured. <0x0x5620222ac670[SOGoCache]> Cache cleanup interval set every 43200.000000 seconds <0x0x5620222ac670[SOGoCache]> Using host(s) 'memcached' as server(s) <0x0x562022274980[SOGoUserManager]> No authentication sources defined - nobody will be able to login. Check your defaults.
Fourth: Check your /etc/sogo/sogo.conf It has to contain the SOGoUserSources entry./usr/sbin/sogo-tool will use that in order to find the user specified on the command line.
2025-03-04 11:59:53.641 sogo-tool[35744:35744] ERROR(-[NSException(NGMiscellaneous) initWithFormat:]): missing format! <0x0x562022410740[SOGoSieveManager]> Could not delete Sieve script: Sieve script `sogo' not found
This only means, there was no SIEVE script before for that user. Which is harmless.
<0x0x562022410740[SOGoSieveManager]> Could not upload Sieve script: sogo: line
5: error: expecting ',' or end of string list ']', but found ';'.
sogo: error: parse failed.
2025-03-04 11:59:53.654 sogo-tool[35744:35744] Error updating sieve script, not
updating database
user-preferences get|set|unset defaults|settings user [-p credentialFile] key
[value|-f filename]
user the user of whom to set the defaults/settings key/value
value the JSON-formatted value of the key
-p credentialFile Specify the file containing the sieve admin credentials
The file should contain a single line:
username:password
-F force the activation of the sieve script in case
external scripts. Must be the las targument after -p credentialsFile Examples:
sogo-tool user-preferences get defaults janedoe SOGoLanguage
sogo-tool user-preferences unset settings janedoe Mail
sogo-tool user-preferences set defaults janedoe SOGoTimeFormat
'{"SOGoTimeFormat":"%I:%M %p"}'
Those show the syntax wasn't correct and the provided value could not be parsed (== first till third errors).
Hope that helps. Kind regards, Christian Mack
Christian Mack <[email protected]> schrieb am Donnerstag, 27. Februar 2025 um 11:02:Hello Am 26.02.25 um 17:28 schrieb International Security Providers ([email protected]):is it smh possible to change "out of office" for another account? I have some accounts which are not users but are only used as group-accounts.You only can set this via console on the SOGo server. Get the current one with: /usr/sbin/sogo-tool user-preferences get defaults $USER Vacation And set a new one with: /usr/sbin/sogo-tool user-preferences set defaults $USER Vacation '"Vacation": {"daysBetweenResponse":"2","autoReplyEmailAddresses":["[email protected]", "[email protected]"],"enabled":1,"endDate":1761136200,"autoReplyText":"This is an automatic reply text.\n--------------------------------------------------------------------\n\nThis is an group address which is not read at all.\nAll emails to it are discarted!!!\n\n--------------------------------------------------------------------\n","alwaysSend":0,"days":[],"ignoreLists":1,"endDateEnabled":1}' Of course you should replace the content with your own :-) All dates are in Unix Timestamp format. You get it with: date -d '2025-10-22 14:30:00' "+%s" Kind regards, Christian Mack -- Christian Mack Universität Konstanz Kommunikations-, Informations-, Medienzentrum (KIM) Abteilung IT-Dienste Forschung, Lehre, Infrastruktur 78457 Konstanz +49 7531 88-4416
-- Christian Mack Universität Konstanz Kommunikations-, Informations-, Medienzentrum (KIM) Abteilung IT-Dienste Forschung, Lehre, Infrastruktur 78457 Konstanz +49 7531 88-4416
smime.p7s
Description: Kryptografische S/MIME-Signatur
