Hi,

I'm following the document :
http://www.sogo.nu/files/docs/SOGo%20Installation%20Guide.pdf

But I'm at the LDAP setup right now and there seem to be lacking instruction to
create the basic LDAP structure / domain to get up and running quickly.

I'm sure I could get to slam something together to get it working, but I prefer
to get the supported setup that is known to work well.  Also the IMAP server
setup seem to be missing some information.

I appreciate any help you guys can give me.

Thanks

Marc O.

Here my install script based on what I followed in the document (Some stuff I
did figure out that missing in the document) :
cat << EOF > /etc/yum.repos.d/inverse.repo
[SOGo]
name=Inverse SOGo Repository
baseurl=http://inverse.ca/downloads/SOGo/RHEL6/\$basearch
gpgcheck=0
EOF

yum install -y sogo openldap-clients openldap-servers
yum install -y sope49-gdl1-postgresql postgresql-server

service postgresql initdb
service postgresql start
chkconfig --level 3 postgresql on

su - sogo
defaults write sogod SOGoTimeZone "America/Montreal"
defaults write sogod SOGoMailDomain "acmedomain.net"
defaults write sogod SOGoLanguage English
defaults write sogod SOGoAppointmentSendEMailNotifications YES
defaults write sogod SOGoFoldersSendEMailNotifications YES
defaults write sogod SOGoACLsSendEMailNotifications YES

defaults write sogod SOGoUserSources '({CNFieldName = cn;IDFieldName = uid;
UIDFieldName = uid; IMAPHostFieldName = mailHost;baseDN =
"ou=users,dc=acmedomain,dc=net";bindDN =
"uid=sogo,ou=users,dc=acmedomain,dc=net";bindPassword = qwerty; canAuthenticate
= YES; displayName = "Shared Addresses";hostname = "localhost"; id =
public;isAddressBook = YES; port=389;})'

exit

su - postgres
createuser --no-superuser --no-createdb --no-createrole \
--encrypted --pwprompt sogo
#Use sogo as password
createdb -O sogo sogo

cat << EOF >> /var/lib/pgsql/data/pg_hba.conf
host    sogo    sogo    127.0.0.1/32    md5
EOF

exit
service postgresql restart

su - sogo
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'

defaults write sogod SOGoMailingMechanism smtp
defaults write sogod SOGoSMTPServer localhost

defaults write sogod SOGoDraftsFolderName Drafts
defaults write sogod SOGoSentFolderName Sent
defaults write sogod SOGoTrashFolderName Trash
defaults write sogod SOGoIMAPServer localhost

exit
sed -i "s/yourhostname/mail01.acmedomain.net/g"  /etc/httpd/conf.d/SOGo.conf
service sogod start
service httpd start
chkconfig --level 3 sogod on
chkconfig --level 3 httpd on

cat << EOF > ~/admin.ldif
dn: uid=admin,ou=users,dc=acmedomain,dc=net
objectClass: top
objectClass: inetOrgPerson
objectClass: person
objectClass: organizationalPerson
uid: admin
cn: Marc Olivier Chouinard
mail: [email protected]
sn: Chouinard
givenName: Marc Olivier
EOF

service slapd start
# This is where thing doesn't work... I guessing I need to inatialize the
domain first, but I couldn't find the basic schema recommended .
ldapadd -f ~/admin.ldif -x -w qwerty -D cn=Manager,dc=acmedomain,dc=net
-- 
[email protected]
https://inverse.ca/sogo/lists

Reply via email to