2014-09-22 21:59:34 -05:00
|
|
|
# SOGo: How to install SOGo on CentOS 6 with iRedMail (MySQL backend)
|
2014-09-18 20:17:10 -05:00
|
|
|
|
2014-09-20 18:19:12 -05:00
|
|
|
[TOC]
|
|
|
|
|
2014-09-18 20:17:10 -05:00
|
|
|
## Requirements
|
|
|
|
|
2014-09-20 05:42:28 -05:00
|
|
|
* A working iRedMail server (MySQL backend) on CentOS 6.
|
2014-09-18 20:17:10 -05:00
|
|
|
|
|
|
|
## Install SOGo
|
|
|
|
|
|
|
|
* Make sure you have EPEL repo enabled, if not, please follow [this wiki
|
|
|
|
tutorial](https://fedoraproject.org/wiki/EPEL#How_can_I_use_these_extra_packages.3F)
|
|
|
|
to enable it.
|
|
|
|
|
2014-09-18 20:21:59 -05:00
|
|
|
```
|
2014-09-18 20:17:10 -05:00
|
|
|
# yum repolist | grep -i 'epel'
|
|
|
|
epel Extra Packages for Enterprise Linux 6 - x86_64 11,109
|
2014-09-18 20:21:59 -05:00
|
|
|
```
|
2014-09-18 20:17:10 -05:00
|
|
|
|
|
|
|
* Add yum repo file `/etc/yum.repos.d/sogo.repo`:
|
|
|
|
|
2014-09-18 20:21:59 -05:00
|
|
|
```
|
2014-09-18 20:17:10 -05:00
|
|
|
[SOGo]
|
|
|
|
name=Inverse SOGo Repository
|
|
|
|
baseurl=http://inverse.ca/downloads/SOGo/RHEL6/$basearch
|
|
|
|
gpgcheck=0
|
2014-09-18 20:21:59 -05:00
|
|
|
```
|
2014-09-18 20:17:10 -05:00
|
|
|
|
|
|
|
* Install SOGo and dependences:
|
|
|
|
|
2014-09-18 20:21:59 -05:00
|
|
|
```
|
2014-09-20 05:42:28 -05:00
|
|
|
# yum install sogo sope49-gdl1-mysql sogo-activesync libwbxml
|
2014-09-18 20:21:59 -05:00
|
|
|
```
|
2014-09-18 20:17:10 -05:00
|
|
|
|
|
|
|
## Create SQL database to store SOGo data
|
|
|
|
|
2014-09-18 20:21:59 -05:00
|
|
|
```
|
2014-09-18 20:17:10 -05:00
|
|
|
$ mysql -u root -p
|
|
|
|
|
|
|
|
mysql> CREATE DATABASE sogo CHARSET='UTF8';
|
|
|
|
mysql> GRANT ALL ON sogo.* TO sogo@localhost IDENTIFIED BY 'password';
|
|
|
|
|
|
|
|
-- TODO
|
|
|
|
mysql> GRANT SELECT ON vmail.mailbox TO sogo@localhost;
|
|
|
|
|
2014-09-20 18:06:37 -05:00
|
|
|
mysql> CREATE VIEW sogo.sogo_users (c_uid, c_name, c_password, c_cn, mail, home) AS SELECT username, username, password, name, username, maildir FROM vmail.mailbox;
|
2014-09-18 20:21:59 -05:00
|
|
|
```
|
2014-09-18 20:17:10 -05:00
|
|
|
|
|
|
|
## Configure SOGo
|
|
|
|
|
|
|
|
Default SOGo config file is `/etc/sogo/sogo.conf`:
|
|
|
|
|
2014-09-18 20:21:59 -05:00
|
|
|
```
|
|
|
|
(
|
2014-09-20 18:19:12 -05:00
|
|
|
WOPort = 127.0.0.1:20000;
|
|
|
|
|
2014-09-18 20:17:10 -05:00
|
|
|
SOGoProfileURL = "mysql://sogo:password@localhost:3306/sogo/sogo_user_profile";
|
|
|
|
OCSFolderInfoURL = "mysql://sogo:password@localhost:3306/sogo/sogo_folder_info";
|
|
|
|
OCSSessionsFolderURL = "mysql://sogo:password@localhost:3306/sogo/sogo_sessions_folder";
|
|
|
|
|
|
|
|
SOGoIMAPServer = "127.0.0.1";
|
2014-09-20 05:42:28 -05:00
|
|
|
SOGoDraftsFolderName Drafts
|
|
|
|
SOGoSentFolderName Sent
|
|
|
|
SOGoTrashFolderName Trash
|
2014-09-18 20:17:10 -05:00
|
|
|
|
|
|
|
SOGoMailingMechanism = smtp;
|
|
|
|
SOGoSMTPServer = 127.0.0.1;
|
|
|
|
|
|
|
|
// Enable managesieve service
|
|
|
|
SOGoSieveServer = sieve://127.0.0.1:4190;
|
|
|
|
SOGoSieveScriptsEnabled = YES;
|
2014-09-20 17:42:51 -05:00
|
|
|
SOGoVacationEnabled = YES;
|
2014-09-18 20:17:10 -05:00
|
|
|
|
2014-09-20 18:19:12 -05:00
|
|
|
SOGoMemcachedHost = 127.0.0.1;
|
|
|
|
|
|
|
|
SOGoTimeZone = "Europe/Berlin";
|
|
|
|
|
2014-09-20 17:42:51 -05:00
|
|
|
SOGoFirstDayOfWeek = 1;
|
|
|
|
|
|
|
|
SOGoMailMessageCheck = every_5_minutes;
|
2014-09-18 20:17:10 -05:00
|
|
|
SOGoForceExternalLoginWithEmail = YES;
|
|
|
|
SOGoAppointmentSendEMailNotifications = YES;
|
2014-09-20 18:19:12 -05:00
|
|
|
SOGoFoldersSendEMailNotifications = YES;
|
|
|
|
SOGoACLsSendEMailNotifications = YES;
|
|
|
|
|
|
|
|
// OCSEMailAlarmsFolderURL = "mysql://sogo:password@localhost:3306/sogo/sogo_alarms_folder";
|
|
|
|
|
|
|
|
SOGoPasswordChangeEnabled = YES;
|
2014-09-18 20:17:10 -05:00
|
|
|
|
2014-09-20 05:42:28 -05:00
|
|
|
SOGoUserSources =
|
2014-09-18 20:17:10 -05:00
|
|
|
(
|
2014-09-20 05:42:28 -05:00
|
|
|
{
|
|
|
|
type = sql;
|
|
|
|
id = directory;
|
2014-09-20 18:06:37 -05:00
|
|
|
viewURL = "mysql://sogo:password@127.0.0.1:3306/sogo/sogo_users";
|
2014-09-20 05:42:28 -05:00
|
|
|
canAuthenticate = YES;
|
|
|
|
isAddressBook = YES;
|
|
|
|
userPasswordAlgorithm = md5;
|
|
|
|
prependPasswordScheme = YES;
|
|
|
|
}
|
2014-09-18 20:17:10 -05:00
|
|
|
);
|
2014-09-18 20:21:59 -05:00
|
|
|
```
|
2014-09-18 20:17:10 -05:00
|
|
|
|
2014-09-20 18:06:37 -05:00
|
|
|
__NOTE__: SOGo will create required SQL tables automatically
|
|
|
|
(`sogo_user_profile`, `sogo_folder_info`, `sogo_sessions_folder`, ...), we
|
|
|
|
don't need to create them manually.
|
|
|
|
|
2014-09-20 05:42:28 -05:00
|
|
|
## Start SOGo and dependent services
|
|
|
|
|
|
|
|
```
|
|
|
|
service sogod start
|
|
|
|
service httpd restart
|
|
|
|
service memcached start
|
|
|
|
```
|
2014-09-18 20:17:10 -05:00
|
|
|
|
|
|
|
## How to configure client applications
|
|
|
|
|
2014-09-20 05:42:28 -05:00
|
|
|
### Apple Devices
|
2014-09-18 20:17:10 -05:00
|
|
|
|
2014-09-20 05:42:28 -05:00
|
|
|
URL for calendar service: `http://[host]/SOGo/dav/[user]/`
|
2014-09-18 20:17:10 -05:00
|
|
|
|
|
|
|
## TODO
|
|
|
|
|
2014-09-20 18:19:12 -05:00
|
|
|
## References
|
2014-09-18 20:17:10 -05:00
|
|
|
|