Re: [SOGo] not sure how to add values to /etc/sogo/sogo.conf

2013-04-16 Thread Igor Vitorac

Jean Raby wrote, On 15/04/2013 21:32:

On 13-04-15 3:23 PM, Szládovics Péter wrote:

I'm not sure it's working as well, but try free this bash script to
convert GNUstep defaults (created by defaults write sogod) to
/etc/sogo/sogo.conf format.

This script only reads the XML file and displays the .conf format to the
screen (can be redirect to file).

wait wait wait

do this:
  sudo -u sogo sogo-tool dump-defaults




As part of my SOGo backup, I am using the following as well ( I still 
have the old Defaults config file):

/usr/bin/defaults read sogod  sogo_conf_text.backup
(above line executed in cron job under sogo user)

Regards,
Igor


--
users@sogo.nu
https://inverse.ca/sogo/lists


[SOGo] not sure how to add values to /etc/sogo/sogo.conf

2013-04-15 Thread Wesley Sangster
Hi Guys

I am busy with a fresh installation of SOGo 2.0.5-1, I am struggling with
the new conf file, the old versions used GNUStep, now you can't even log
into the sogo user. I have tried adding the values manually but I get the
following error restarting the sogo service;

0x0x7f38e4572070[SOGoStartupLogger] Cannot read configuration from
'/etc/sogo/sogo.conf'. Aborting

My config is below;

{
SOGoTimeZone = Africa/Johannesburg;
SOGoMailDomain = macrobert.co.za;
SOGoLanguage = English;
SOGoAppointmentSendEMailNotifications = YES;
SOGoFoldersSendEMailNotifications = YES;
SOGoACLsSendEMailNotifications = YES;
SOGoLoginModule = mail;
SOGoSieveScriptsEnabled = YES;
SOGoSieveServer = sieve://127.0.0.1:4190;
SOGoVactionEnabled = YES;
SOGoMailMessageCheck = every_1_minutes;
SOGoFirstDayOfWeek = 1;
SOGoSuperUsernames = (administrator);
OCSFolderInfoURL = mysql://
sogo:password@127.0.0.1:3306/sogo/sogo_folder_info;
SOGoProfileURL = mysql://
sogo:password@127.0.0.1:3306/sogo/sogo_user_profile;
OCSSessionsFolderURL = mysql://
sogo:password@127.0.0.1:3306/sogo/sogo_sessions_folder;
SOGoUserSources = (
{
canAuthenticate = YES;
isAddressBook = YES;
type = sql;
id = users
displayName = SOGo Users;
userPasswordAlgorithm = md5;
viewURL = mysql://sogo:password@127.0.0.1:3306/sogo/sogo_users;

}
);
SOGoMailingMechanism = smtp;
SOGoSMTPServer = 127.0.0.1;
SOGoDraftsFolderName = Drafts;
SOGoSentFolderName = Sent;
SOGoTrashFolderName = Trash;
SOGoIMAPServer = 127.0.0.1;
}

Is there a command for sogo-tool to insert the values into the conf file
like the defaults write used to? If so can someone provide an example with
the SOGoDraftsFolderName key.

Any help would be greatly appreciated!

Wesley
-- 
users@sogo.nu
https://inverse.ca/sogo/lists

Re: [SOGo] not sure how to add values to /etc/sogo/sogo.conf

2013-04-15 Thread Jean Raby

On 13-04-15 4:42 AM, Wesley Sangster wrote:

Hi Guys

I am busy with a fresh installation of SOGo 2.0.5-1, I am struggling with the
new conf file, the old versions used GNUStep, now you can't even log into the
sogo user. I have tried adding the values manually but I get the following error
restarting the sogo service;
the sogo user is now a 'system' user, with 'nologin' as a shell, so this is 
expected.


0x0x7f38e4572070[SOGoStartupLogger] Cannot read configuration from
'/etc/sogo/sogo.conf'. Aborting

My config is below;

{
SOGoTimeZone = Africa/Johannesburg;
SOGoMailDomain = macrobert.co.za;
SOGoLanguage = English;
SOGoAppointmentSendEMailNotifications = YES;
SOGoFoldersSendEMailNotifications = YES;
SOGoACLsSendEMailNotifications = YES;
SOGoLoginModule = mail;
SOGoSieveScriptsEnabled = YES;
SOGoSieveServer = sieve://127.0.0.1:4190;
SOGoVactionEnabled = YES;
SOGoMailMessageCheck = every_1_minutes;
SOGoFirstDayOfWeek = 1;
SOGoSuperUsernames = (administrator);
OCSFolderInfoURL = mysql://sogo:password@127.0.0.1:3306/sogo/sogo_folder_info
http://sogo:password@127.0.0.1:3306/sogo/sogo_folder_info;
SOGoProfileURL = mysql://sogo:password@127.0.0.1:3306/sogo/sogo_user_profile
http://sogo:password@127.0.0.1:3306/sogo/sogo_user_profile;
OCSSessionsFolderURL =
mysql://sogo:password@127.0.0.1:3306/sogo/sogo_sessions_folder
http://sogo:password@127.0.0.1:3306/sogo/sogo_sessions_folder;
SOGoUserSources = (
 {
canAuthenticate = YES;
isAddressBook = YES;
type = sql;
id = users  

There's a ';' missing here.

displayName = SOGo Users;
userPasswordAlgorithm = md5;
viewURL = mysql://sogo:password@127.0.0.1:3306/sogo/sogo_users
http://sogo:password@127.0.0.1:3306/sogo/sogo_users;

 }
);
SOGoMailingMechanism = smtp;
SOGoSMTPServer = 127.0.0.1;
SOGoDraftsFolderName = Drafts;
SOGoSentFolderName = Sent;
SOGoTrashFolderName = Trash;
SOGoIMAPServer = 127.0.0.1;
}

Is there a command for sogo-tool to insert the values into the conf file like
the defaults write used to? If so can someone provide an example with the
SOGoDraftsFolderName key.
No, sogo-tool is not designed for that. If you really want to keep the old 
behavior, leave your defaults  into ~sogo/GNUstep/Defaults/.GNUstepDefaults and 
continue to use 'defaults' to mangle^Wmanage your config. It will work as it 
used to.


As for the SOGoDraftFolderName key, the syntax in the config file above is just 
fine, so it should work once you add a semi-colon at the end of the 'id' line.


Any help would be greatly appreciated!

Wesley



--
Jean Raby
jr...@inverse.ca  ::  +1.514.447.4918 (x120) ::  www.inverse.ca
Inverse inc. :: Leaders behind SOGo (www.sogo.nu) and PacketFence 
(www.packetfence.org)

--
users@sogo.nu
https://inverse.ca/sogo/lists


Re: [SOGo] not sure how to add values to /etc/sogo/sogo.conf

2013-04-15 Thread Wesley Sangster
Thanks very much Jean, added the ';' and I was good to go. Feel embarrassed.


On Mon, Apr 15, 2013 at 2:56 PM, Jean Raby jr...@inverse.ca wrote:

 On 13-04-15 4:42 AM, Wesley Sangster wrote:

 Hi Guys

 I am busy with a fresh installation of SOGo 2.0.5-1, I am struggling with
 the
 new conf file, the old versions used GNUStep, now you can't even log into
 the
 sogo user. I have tried adding the values manually but I get the
 following error
 restarting the sogo service;

 the sogo user is now a 'system' user, with 'nologin' as a shell, so this
 is expected.


 0x0x7f38e4572070[**SOGoStartupLogger] Cannot read configuration from
 '/etc/sogo/sogo.conf'. Aborting

 My config is below;

 {
 SOGoTimeZone = Africa/Johannesburg;
 SOGoMailDomain = macrobert.co.za;
 SOGoLanguage = English;
 SOGoAppointmentSendEMailNotifi**cations = YES;
 SOGoFoldersSendEMailNotificati**ons = YES;
 SOGoACLsSendEMailNotifications = YES;
 SOGoLoginModule = mail;
 SOGoSieveScriptsEnabled = YES;
 SOGoSieveServer = sieve://127.0.0.1:4190;
 SOGoVactionEnabled = YES;
 SOGoMailMessageCheck = every_1_minutes;
 SOGoFirstDayOfWeek = 1;
 SOGoSuperUsernames = (administrator);
 OCSFolderInfoURL = mysql://sogo:password@127.0.**
 0.1:3306/sogo/sogo_folder_infohttp://sogo:password@127.0.0.1:3306/sogo/sogo_folder_info
 http://sogo:password@127.0.0.**1:3306/sogo/sogo_folder_infohttp://sogo:password@127.0.0.1:3306/sogo/sogo_folder_info
 **;

 SOGoProfileURL = mysql://sogo:password@127.0.**0.1:3306/sogo/sogo_user_*
 *profile http://sogo:password@127.0.0.1:3306/sogo/sogo_user_profile
 http://sogo:password@127.0.0.**1:3306/sogo/sogo_user_profilehttp://sogo:password@127.0.0.1:3306/sogo/sogo_user_profile
 **;

 OCSSessionsFolderURL =
 mysql://sogo:password@127.0.**0.1:3306/sogo/sogo_sessions_**folderhttp://sogo:password@127.0.0.1:3306/sogo/sogo_sessions_folder
 http://sogo:password@127.0.0.**1:3306/sogo/sogo_sessions_**folderhttp://sogo:password@127.0.0.1:3306/sogo/sogo_sessions_folder
 ;

 SOGoUserSources = (
  {
 canAuthenticate = YES;
 isAddressBook = YES;
 type = sql;
 id = users

 There's a ';' missing here.

 displayName = SOGo Users;
 userPasswordAlgorithm = md5;
 viewURL = 
 mysql://sogo:password@127.0.**0.1:3306/sogo/sogo_usershttp://sogo:password@127.0.0.1:3306/sogo/sogo_users
 http://sogo:password@127.0.0.**1:3306/sogo/sogo_usershttp://sogo:password@127.0.0.1:3306/sogo/sogo_users
 ;


  }
 );
 SOGoMailingMechanism = smtp;
 SOGoSMTPServer = 127.0.0.1;
 SOGoDraftsFolderName = Drafts;
 SOGoSentFolderName = Sent;
 SOGoTrashFolderName = Trash;
 SOGoIMAPServer = 127.0.0.1;
 }

 Is there a command for sogo-tool to insert the values into the conf file
 like
 the defaults write used to? If so can someone provide an example with the
 SOGoDraftsFolderName key.

 No, sogo-tool is not designed for that. If you really want to keep the old
 behavior, leave your defaults  into ~sogo/GNUstep/Defaults/.**GNUstepDefaults
 and continue to use 'defaults' to mangle^Wmanage your config. It will work
 as it used to.

 As for the SOGoDraftFolderName key, the syntax in the config file above is
 just fine, so it should work once you add a semi-colon at the end of the
 'id' line.


 Any help would be greatly appreciated!

 Wesley



 --
 Jean Raby
 jr...@inverse.ca  ::  +1.514.447.4918 (x120) ::  www.inverse.ca
 Inverse inc. :: Leaders behind SOGo (www.sogo.nu) and PacketFence (
 www.packetfence.org)
 --
 users@sogo.nu
 https://inverse.ca/sogo/lists




-- 
Wesley Sangster
Cell: +2783 412 2248
Email: big.mac.wes...@gmail.com
-- 
users@sogo.nu
https://inverse.ca/sogo/lists

Re: [SOGo] not sure how to add values to /etc/sogo/sogo.conf

2013-04-15 Thread Marcio Merlone

Em 15-04-2013 09:56, Jean Raby escreveu:

On 13-04-15 4:42 AM, Wesley Sangster wrote:

Hi Guys

I am busy with a fresh installation of SOGo 2.0.5-1, I am struggling 
with the
new conf file, the old versions used GNUStep, now you can't even log 
into the
sogo user. I have tried adding the values manually but I get the 
following error

restarting the sogo service;
the sogo user is now a 'system' user, with 'nologin' as a shell, so 
this is expected.


But you can still login as that user issuing 'sudo - sogo -s /bin/bash'.

[ ]'s.

--
*Marcio Merlone*
TI - Administrador de redes

*A1 Engenharia - Unidade Corporativa*
Fone:   +55 41 3616-3797
Cel:+55 41 9689-0036

http://www.a1.ind.br/ http://www.a1.ind.br
--
users@sogo.nu
https://inverse.ca/sogo/lists

Re: [SOGo] not sure how to add values to /etc/sogo/sogo.conf

2013-04-15 Thread Wesley Sangster
Thanks, Marcio, I will try that tomorrow and give you feedback, great bunch
of guys here

Wesley Sangster
Email: big.mac.wes...@gmail.com
Mobile: +2783 412 2248
On 15 Apr 2013 4:54 PM, Marcio Merlone marcio.merl...@a1.ind.br wrote:

  Em 15-04-2013 09:56, Jean Raby escreveu:

 On 13-04-15 4:42 AM, Wesley Sangster wrote:

 Hi Guys

 I am busy with a fresh installation of SOGo 2.0.5-1, I am struggling with
 the
 new conf file, the old versions used GNUStep, now you can't even log into
 the
 sogo user. I have tried adding the values manually but I get the following
 error
 restarting the sogo service;

 the sogo user is now a 'system' user, with 'nologin' as a shell, so this
 is expected.


 But you can still login as that user issuing 'sudo - sogo -s /bin/bash'.

 [ ]'s.

 --
  *Marcio Merlone*
 TI - Administrador de redes

 *A1 Engenharia - Unidade Corporativa*
   Fone: +55 41 3616-3797  Cel: +55 41 9689-0036  http://www.a1.ind.br/

-- 
users@sogo.nu
https://inverse.ca/sogo/lists

Re: [SOGo] not sure how to add values to /etc/sogo/sogo.conf

2013-04-15 Thread Szládovics Péter
2013-04-15 10:42 keltezéssel, Wesley Sangster írta:
 Is there a command for sogo-tool to insert the values into the conf
 file like the defaults write used to?

I'm not sure it's working as well, but try free this bash script to
convert GNUstep defaults (created by defaults write sogod) to
/etc/sogo/sogo.conf format.

This script only reads the XML file and displays the .conf format to the
screen (can be redirect to file).

# sogoconvert.sh -
#!/bin/bash
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games

OLD=`nl -w 1 ~sogo/GNUstep/Defaults/.GNUstepDefaults | sed
s/^\([0-9]\+\)\t\s*/\1|/`
MAX=$(echo $OLD | tail -1 | cut -d'|' -f1)
HOOK=1
unset HC
unset inarray

for LN in $(seq 1 $MAX); do
  LINE=$(echo $OLD | egrep ^$LN\| | cut -d'|' -f2-)
  TAG=`echo $LINE | sed s/^\([^]\+\).*/\1/ | tr A-Z a-z`
  VAL=`echo $LINE | sed s/^.*\([^]\+\).*/\1/`
  case $TAG in
dict)
echo $HC{
HOOK=$(expr $HOOK + 2)
HC=$(echo  | colrm $HOOK)
unset inarray
;;
/dict)
echo $HC}
HOOK=$(expr $HOOK \- 2)
HC=$(echo  | colrm $HOOK)
;;
key)
echo -n $HC$VAL = 
;;
array)
echo -e (
inarray=1
;;
/array)
[ $inarray ]  echo
echo $HC);
unset inarray
;;
string)
if [ -z $inarray ]; then
  echo $VAL;
elif [ $inarray -eq 1 ]; then
  echo -n $HC  $VAL
  inarray=2
else
  echo -ne ,\n$HC  $VAL
fi
;;
esac
done
echo }

# End of script

Maybe some lines can be remove from the output. Could someone try it?
Thanks,

Peti
-- 
users@sogo.nu
https://inverse.ca/sogo/lists


Re: [SOGo] not sure how to add values to /etc/sogo/sogo.conf

2013-04-15 Thread Jean Raby

On 13-04-15 3:23 PM, Szládovics Péter wrote:

I'm not sure it's working as well, but try free this bash script to
convert GNUstep defaults (created by defaults write sogod) to
/etc/sogo/sogo.conf format.

This script only reads the XML file and displays the .conf format to the
screen (can be redirect to file).

wait wait wait

do this:
  sudo -u sogo sogo-tool dump-defaults


--
Jean Raby
jr...@inverse.ca  ::  +1.514.447.4918 (x120) ::  www.inverse.ca
Inverse inc. :: Leaders behind SOGo (www.sogo.nu) and PacketFence 
(www.packetfence.org)

--
users@sogo.nu
https://inverse.ca/sogo/lists


Re: [SOGo] not sure how to add values to /etc/sogo/sogo.conf

2013-04-15 Thread Szládovics Péter
2013-04-15 21:32 keltezéssel, Jean Raby írta:
 On 13-04-15 3:23 PM, Szládovics Péter wrote:
 I'm not sure it's working as well, but try free this bash script to
 convert GNUstep defaults (created by defaults write sogod) to
 /etc/sogo/sogo.conf format.

 This script only reads the XML file and displays the .conf format to the
 screen (can be redirect to file).
 wait wait wait

 do this:
   sudo -u sogo sogo-tool dump-defaults

I should read docs sometimes instead of writing scripts :)
Thx
-- 
users@sogo.nu
https://inverse.ca/sogo/lists