2014-09-18 20:17:10 -05:00
< html >
< head >
< meta http-equiv = "Content-Type" content = "text/html; charset=utf-8" / >
2014-09-22 21:59:34 -05:00
< title > SOGo: How to install SOGo on CentOS 6 with iRedMail (MySQL backend)< / title >
2014-09-22 22:17:52 -05:00
< link href = "./css/markdown.css" rel = "stylesheet" > < / head >
2014-09-18 20:17:10 -05:00
< / head >
< body >
2014-09-20 09:32:14 -05:00
< div id = "navigation" >
< a href = "http://www.iredmail.org" target = "_blank" > iRedMail web site< / a >
2014-09-22 22:20:46 -05:00
// < a href = "./index.html" > Document Index< / a >
2014-09-22 21:59:34 -05:00
< / div > < h1 id = "sogo-how-to-install-sogo-on-centos-6-with-iredmail-mysql-backend" > SOGo: How to install SOGo on CentOS 6 with iRedMail (MySQL backend)< / h1 >
2014-09-20 18:19:12 -05:00
< div class = "toc" >
< ul >
2014-09-22 21:59:34 -05:00
< li > < a href = "#sogo-how-to-install-sogo-on-centos-6-with-iredmail-mysql-backend" > SOGo: How to install SOGo on CentOS 6 with iRedMail (MySQL backend)< / a > < ul >
2014-09-20 18:19:12 -05:00
< li > < a href = "#requirements" > Requirements< / a > < / li >
< li > < a href = "#install-sogo" > Install SOGo< / a > < / li >
< li > < a href = "#create-sql-database-to-store-sogo-data" > Create SQL database to store SOGo data< / a > < / li >
< li > < a href = "#configure-sogo" > Configure SOGo< / a > < / li >
< li > < a href = "#start-sogo-and-dependent-services" > Start SOGo and dependent services< / a > < / li >
< li > < a href = "#how-to-configure-client-applications" > How to configure client applications< / a > < ul >
< li > < a href = "#apple-devices" > Apple Devices< / a > < / li >
< / ul >
< / li >
< li > < a href = "#todo" > TODO< / a > < / li >
< li > < a href = "#references" > References< / a > < / li >
< / ul >
< / li >
< / ul >
< / div >
2014-09-18 20:17:10 -05:00
< h2 id = "requirements" > Requirements< / h2 >
< ul >
2014-09-20 05:42:28 -05:00
< li > A working iRedMail server (MySQL backend) on CentOS 6.< / li >
2014-09-18 20:17:10 -05:00
< / ul >
< h2 id = "install-sogo" > Install SOGo< / h2 >
< ul >
< li > Make sure you have EPEL repo enabled, if not, please follow < a href = "https://fedoraproject.org/wiki/EPEL#How_can_I_use_these_extra_packages.3F" > this wiki
tutorial< / a >
to enable it.< / li >
< / ul >
2014-09-18 20:21:59 -05:00
< pre > < code > # yum repolist | grep -i 'epel'
2014-09-18 20:17:10 -05:00
epel Extra Packages for Enterprise Linux 6 - x86_64 11,109
2014-09-18 20:21:59 -05:00
< / code > < / pre >
2014-09-18 20:17:10 -05:00
< ul >
< li > Add yum repo file < code > /etc/yum.repos.d/sogo.repo< / code > :< / li >
< / ul >
2014-09-18 20:21:59 -05:00
< pre > < code > [SOGo]
2014-09-18 20:17:10 -05:00
name=Inverse SOGo Repository
baseurl=http://inverse.ca/downloads/SOGo/RHEL6/$basearch
gpgcheck=0
2014-09-18 20:21:59 -05:00
< / code > < / pre >
2014-09-18 20:17:10 -05:00
< ul >
< li > Install SOGo and dependences:< / li >
< / ul >
2014-09-20 05:42:28 -05:00
< pre > < code > # yum install sogo sope49-gdl1-mysql sogo-activesync libwbxml
2014-09-18 20:21:59 -05:00
< / code > < / pre >
2014-09-18 20:17:10 -05:00
< h2 id = "create-sql-database-to-store-sogo-data" > Create SQL database to store SOGo data< / h2 >
2014-09-18 20:21:59 -05:00
< pre > < code > $ mysql -u root -p
2014-09-18 20:17:10 -05:00
2014-09-18 20:21:59 -05:00
mysql> CREATE DATABASE sogo CHARSET='UTF8';
mysql> GRANT ALL ON sogo.* TO sogo@localhost IDENTIFIED BY 'password';
2014-09-18 20:17:10 -05:00
-- TODO
2014-09-18 20:21:59 -05:00
mysql> GRANT SELECT ON vmail.mailbox TO sogo@localhost;
2014-09-18 20:17:10 -05:00
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
< / code > < / pre >
2014-09-18 20:17:10 -05:00
< h2 id = "configure-sogo" > Configure SOGo< / h2 >
< p > Default SOGo config file is < code > /etc/sogo/sogo.conf< / code > :< / p >
2014-09-18 20:21:59 -05:00
< pre > < code > (
2014-09-20 18:19:12 -05:00
WOPort = 127.0.0.1:20000;
2014-09-18 20:21:59 -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" ;
2014-09-18 20:17:10 -05:00
2014-09-18 20:21:59 -05:00
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 18:06:37 -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 18:06:37 -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
< / code > < / pre >
2014-09-18 20:17:10 -05:00
2014-09-20 18:06:37 -05:00
< p > < strong > NOTE< / strong > : SOGo will create required SQL tables automatically
(< code > sogo_user_profile< / code > , < code > sogo_folder_info< / code > , < code > sogo_sessions_folder< / code > , ...), we
don't need to create them manually.< / p >
2014-09-20 05:42:28 -05:00
< h2 id = "start-sogo-and-dependent-services" > Start SOGo and dependent services< / h2 >
< pre > < code > service sogod start
service httpd restart
service memcached start
< / code > < / pre >
2014-09-18 20:17:10 -05:00
< h2 id = "how-to-configure-client-applications" > How to configure client applications< / h2 >
2014-09-20 05:42:28 -05:00
< h3 id = "apple-devices" > Apple Devices< / h3 >
< p > URL for calendar service: < code > http://[host]/SOGo/dav/[user]/< / code > < / p >
2014-09-18 20:17:10 -05:00
< h2 id = "todo" > TODO< / h2 >
2014-09-30 10:04:28 -05:00
< h2 id = "references" > References< / h2 > < br / > < p > If you found something wrong in this document, please do < a href = "http://www.iredmail.org/contact.html" > contact us< / a > to fix it.< / p > < / body > < / html >