--- /dev/null
+#!/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