From 5cdbd8576ac5255a27ba8f8d6f39b957b9d5bcc8 Mon Sep 17 00:00:00 2001 From: Vincent Le Gallic Date: Sat, 26 Jul 2014 15:02:38 +0200 Subject: [PATCH] =?utf8?q?Script=20pour=20cr=C3=A9er=20la=20conf=20de=20So?= =?utf8?q?go?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- regenconf_sogo.sh.example | 46 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100755 regenconf_sogo.sh.example diff --git a/regenconf_sogo.sh.example b/regenconf_sogo.sh.example new file mode 100755 index 0000000..96fbf44 --- /dev/null +++ b/regenconf_sogo.sh.example @@ -0,0 +1,46 @@ +#!/bin/bash + +# Général +defaults write sogod SOGoTimeZone "France/Paris" +defaults write sogod SOGoMailDomain "crans.org" +defaults write sogod SOGoLanguage French +defaults write sogod SOGoAppointmentSendEMailNotifications YES +defaults write sogod SOGoFoldersSendEMailNotifications YES +defaults write sogod SOGoACLsSendEMailNotifications YES + +echo "T'as pensé à changer le mot de passe de la base LDAP ?" +# LDAP +defaults write sogod SOGoUserSources '({CNFieldName = cn; + IDFieldName = aid; UIDFieldName = uid; + baseDN = "ou=data,dc=crans,dc=org"; + bindDN = "cn=readonly,dc=crans,dc=org"; + bindFields= (uid); + bindPassword = prout; canAuthenticate = YES; displayName = + "Shared Addresses"; hostname = "ldap.adm.crans.org"; id = public; + isAddressBook = YES; port=389})' +defaults write sogod SOGoAuthenticationType "ldap" + + +# PgSQL +defaults write sogod SOGoProfileURL 'postgresql://sogo:sogo@localhost:5432/sogo/sogo_user_profile' +defaults write sogod OCSFolderInfoURL 'postgresql://sogo:sogo@localhost:5432/sogo/sogo_folder_info' +defaults write sogod OCSSessionsFolderURL 'postgresql://sogo:sogo@localhost:5432/sogo/sogo_sessions_folder' + +# SMTP +defaults write sogod SOGoMailingMechanism smtp +defaults write sogod SOGoSMTPServer smtp.crans.org + +# IMAP +defaults write sogod SOGoDraftsFolderName Drafts +defaults write sogod SOGoSentFolderName Sent +defaults write sogod SOGoTrashFolderName Trash +defaults write sogod SOGoIMAPServer imaps://imap.crans.org + + +# Facultatif +defaults write sogod SOGOLoginModule Mail +defaults write sogod SOGoPageTitle "SOGo Cr@ns" +# si les américains veulent commencer leur semaine le Dimanche, grand bien leur fasse +defaults write sogod SOGoFirstDayOfWeek 1 + +defaults write sogod SOGoFaviconRelativeURL /SOGo/WebServerResources/favicon_crans.ico -- 2.39.2