From: Vincent Le Gallic Date: Sat, 26 Jul 2014 13:02:38 +0000 (+0200) Subject: Script pour créer la conf de Sogo X-Git-Url: http://gitweb.pimeys.fr/?a=commitdiff_plain;h=5cdbd8576ac5255a27ba8f8d6f39b957b9d5bcc8;p=scripts-20-100.git Script pour créer la conf de Sogo --- 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