SOGo CentOS iRedMail HOWTO

SOGo is a great open source Group-Ware solution for nearly all clients and devices. It's fully LDAP, CardDAV, CalDAV and WebDAV compatible and the best solotion for an iPhone + iPad + Mac server based sync. if you don't trust cloud services and don't want to use Apple applications only, this is what you'll need.

iRedMail is easy to install mail server solution based on well known components like Postfix, Dovecot, SpamAssassin, Amavisd, ClamAV, MySQL and OpenLDAP. With that setup you have the best base to setup SOGo as your Web front-end and Group-Ware.

This HOWTO is based on a CentOS 5.4 vServer installation, iRedMail package 0.6.1 and SOGo 1.3.10.


There are a lot of HOWTOs to setup a secure CentOS webserver. I don't want to get into this deeper here.


Set your hostname in /etc/sysconfig/network

also in /etc/hosts mail localhost localhost.localdomain

get the install package


untar it

tar xjf iRedMail-0.6.1.tar.bz2 

get all dependencies

cd iRedMail-0.6.1/pkgs/

start your installation

cd ..

go through the setup dialogs

	openldap backend
	cn=Manager,dc=yourdomain,dc=net Password: secret
	MySQL admin root Password: secret
	virtual domain name: Password: secret
	first user webmail Password secret
	root user alias:
	Roundcube webmail http://your_server/mail/ (or /webmail, /roundcube) YES YES 
	SquirrelMail webmail http://your_server/squirrelmail/ (or /squirrel) YES YES 
	phpMyAdmin https://your_server/phpmyadmin/ (or /mysql) NO YES 
	phpLDAPAdmin https://your_server/ldap/ (or /phpldapadmin) NO YES 
	Awstats https://your_server/awstats/ NO YES
	iRedAdmin https://your_server/iredadmin NO YES

thats it. Go and test your new mail server, if all is running well go ahead and install SOGo.


Add the SOGo repository to yum

vi /etc/yum.repos.d/SOGo.repo

and add the following lines

	name=Inverse SOGo Repository

start the installation

yum clean all
yum list
yum install sogo
yum install sope49-gdl1-mysql

login into mysql

mysql -p

and create the SOGo mysql database

	create database sogo;
	grant all on sogo.* to sogo@localhost identified by "secret";
	flush privileges;

create the SOGO (GNUstep) config file

vi /home/sogo/GNUstep/Defaults/.GNUstepDefaults

and set it up with your needs

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//GNUstep//DTD plist 0.9//EN" "">
<plist version="0.9">
		<string>Shared Address Book</string>

start the deamons

service memcached start
service sogod start
service httpd restart

that's it. Check your log files and try to login

To setup your clients and tweak your install, have a look here.

Enter your comment. Wiki syntax is allowed:
   _  __   ___  __  __   ____   ___  ______   ___    ___    ____   ___ 
  | |/_/  / _ \ \ \/ /  / __/  / _ \/_  __/  / _ )  / _ |  / __/  / _ )
 _>  <   / // /  \  /  / _/   / // / / /    / _  | / __ | / _/   / _  |
/_/|_|  /____/   /_/  /_/    /____/ /_/    /____/ /_/ |_|/___/  /____/