Sogo: Difference between revisions

From miki
Jump to navigation Jump to search
(Created page with "== Installation == Reference: http://sogo.nu/ * Install repositories: <source lang=bash> echo "deb http://inverse.ca/ubuntu-v3 trusty trusty" | sudo tee /etc/apt/sources.list...")
 
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
== References ==
More installation guides:
* [http://majentis.com/?p=344 Installing Samba4 / SOGo / OpenChange on Ubuntu 14.04]
* [https://github.com/DigitalOcean-User-Projects/Articles-and-Tutorials/blob/master/sogo_an_MS_exchange_alt.md Install & Configure SOGo – an Open-Source Alternative to Microsoft Exchange – on Ubuntu 12.04]
* [http://www.openchange.org/cookbook/backends/sogo/ OpenChange &mdash; SOGo Backend Setup]

== Installation ==
== Installation ==
Reference: http://sogo.nu/
Reference: http://sogo.nu/
Line 17: Line 23:
<source lang=bash>
<source lang=bash>
mysql -u root -p mysql
mysql -u root -p mysql
</source>
mysql> CREATE DATABASE `sogo` CHARACTER SET='utf8';
<source lang=mysql>
mysql> CREATE USER 'sogo'@'localhost' IDENTIFIED BY 'sogopasswd';
CREATE DATABASE `sogo` CHARACTER SET='utf8';
mysql> GRANT ALL PRIVILEGES ON `sogo`.* TO 'sogo'@'localhost' WITH GRANT OPTION;
CREATE USER 'sogo'@'localhost' IDENTIFIED BY 'sogopasswd';
mysql> FLUSH PRIVILEGES;
GRANT ALL PRIVILEGES ON `sogo`.* TO 'sogo'@'localhost' WITH GRANT OPTION;
FLUSH PRIVILEGES;
</source>
</source>



Latest revision as of 07:34, 10 June 2016

References

More installation guides:

Installation

Reference: http://sogo.nu/

  • Install repositories:
echo "deb http://inverse.ca/ubuntu-v3 trusty trusty" | sudo tee /etc/apt/sources.list.d/sogo.list
sudo apt-key adv --keyserver keys.gnupg.net --recv-key 0x810273C4
sudo apt-get update
  • Install sogo package:
sudo apt-get install sogo
  • Create SOGo MySQL database [1]:
mysql -u root -p mysql
CREATE DATABASE `sogo` CHARACTER SET='utf8';
CREATE USER 'sogo'@'localhost' IDENTIFIED BY 'sogopasswd';
GRANT ALL PRIVILEGES ON `sogo`.* TO 'sogo'@'localhost' WITH GRANT OPTION;
FLUSH PRIVILEGES;
  • Edit /etc/sogo/sogo.conf as follows:
-  //SOGoProfileURL = "postgresql://sogo:sogo@localhost:5432/sogo/sogo_user_profile";
-  //OCSFolderInfoURL = "postgresql://sogo:sogo@localhost:5432/sogo/sogo_folder_info";
-  //OCSSessionsFolderURL = "postgresql://sogo:sogo@localhost:5432/sogo/sogo_sessions_folder";
+  SOGoProfileURL = "mysql://sogo:sogopasswd@localhost:3306/sogo/sogo_user_profile";
+  OCSFolderInfoURL = "mysql://sogo:sogopasswd@localhost:3306/sogo/sogo_folder_info";
+  OCSSessionsFolderURL = "mysql://sogo:sogopasswd@localhost:3306/sogo/sogo_sessions_folder";
  • Edit as follows:
-  RequestHeader set "x-webobjects-server-port" "443"
-#  RequestHeader set "x-webobjects-server-name" "yourhostname"
-#  RequestHeader set "x-webobjects-server-url" "https://yourhostname"
+  RequestHeader set "x-webobjects-server-port" "80"
+  RequestHeader set "x-webobjects-server-name" "zavcxl0005"
+  RequestHeader set "x-webobjects-server-url" "http://zavcxl0005.zav.st.com"
  • Restart sogo service:
sudo service sogo restart
  • Enable some apache modules and restart apache:
sudo a2enmod proxy
sudo a2enmod proxy_http
sudo a2enmod headers
sudo service apache2 restart
  • Check that neither sogo or apache2 raised an error:
cat /var/log/sogo/sogo.log
cat /var/log/apache2/error.log