Typo in sogo-centos-6-mysql.html.

This commit is contained in:
Zhang Huangbin 2014-10-30 21:22:36 +08:00
parent 7df81d9212
commit 08a66da71c
4 changed files with 55 additions and 1084 deletions

1042
README.md

File diff suppressed because it is too large Load Diff

View File

@ -45,7 +45,8 @@ all_chapter_dirs="installation \
# Get chapter info # Get chapter info
# - title: _title.md # - title: _title.md
# - summary: _summary.md # - summary: _summary.md
echo "We're migrating [old wiki documents](http://www.iredmail.org/wiki) to Markdown format for easier maintenance, all documents are available [here](https://bitbucket.org/zhb/docs.iredmail.org/src)." >> ${INDEX_MD} echo "We're migrating [old wiki documents](http://www.iredmail.org/wiki) to Markdown format for easier maintenance, all documents are available [here](https://bitbucket.org/zhb/docs.iredmail.org/src)." > ${INDEX_MD}
echo "We're migrating [old wiki documents](http://www.iredmail.org/wiki) to Markdown format for easier maintenance." > ${README_MD}
for chapter_dir in ${all_chapter_dirs}; do for chapter_dir in ${all_chapter_dirs}; do
# Get articles # Get articles

View File

@ -35,7 +35,6 @@
</li> </li>
</ul> </ul>
</div> </div>
<p><strong>NOTE</strong>: this is still a draft and incomplete tutorial.</p>
<h2 id="requirements">Requirements</h2> <h2 id="requirements">Requirements</h2>
<ul> <ul>
<li>A working iRedMail server (MySQL backend) on CentOS 6.</li> <li>A working iRedMail server (MySQL backend) on CentOS 6.</li>
@ -73,7 +72,7 @@ mysql&gt; GRANT ALL ON sogo.* TO sogo@localhost IDENTIFIED BY 'password';
mysql&gt; GRANT SELECT ON vmail.mailbox TO sogo@localhost; mysql&gt; GRANT SELECT ON vmail.mailbox TO sogo@localhost;
mysql&gt; 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; mysql&gt; CREATE VIEW sogo.users (c_uid, c_name, c_password, c_cn, mail, home) AS SELECT username, username, password, name, username, maildir FROM vmail.mailbox;
</code></pre> </code></pre>
<h2 id="configure-sogo">Configure SOGo</h2> <h2 id="configure-sogo">Configure SOGo</h2>
@ -81,34 +80,37 @@ mysql&gt; CREATE VIEW sogo.sogo_users (c_uid, c_name, c_password, c_cn, mail, ho
<pre><code>{ <pre><code>{
WOPort = 127.0.0.1:20000; WOPort = 127.0.0.1:20000;
SOGoProfileURL = &quot;mysql://sogo:password@localhost:3306/sogo/sogo_user_profile&quot;; SOGoProfileURL = &quot;mysql://sogo:password@localhost:3306/sogo/user_profiles&quot;;
OCSFolderInfoURL = &quot;mysql://sogo:password@localhost:3306/sogo/sogo_folder_info&quot;; OCSFolderInfoURL = &quot;mysql://sogo:password@localhost:3306/sogo/folders&quot;;
OCSSessionsFolderURL = &quot;mysql://sogo:password@localhost:3306/sogo/sogo_sessions_folder&quot;; OCSSessionsFolderURL = &quot;mysql://sogo:password@localhost:3306/sogo/sessions&quot;;
// Enable email-based alarms on events and tasks. // Enable email-based alarms on events and tasks.
SOGoEnableEMailAlarms = YES; SOGoEnableEMailAlarms = YES;
OCSEMailAlarmsFolderURL = &quot;mysql://sogo:password@localhost:3306/sogo/sogo_alarms_folder&quot;; OCSEMailAlarmsFolderURL = &quot;mysql://sogo:password@localhost:3306/sogo/alarms&quot;;
// Use TLS // Use TLS
SOGoIMAPServer = &quot;imaps://127.0.0.1:143/?tls=YES&quot;; //SOGoIMAPServer = &quot;imaps://127.0.0.1:143/?tls=YES&quot;;
//SOGoDraftsFolderName = Drafts; // Local connection is considered as secure by Dovecot.
//SOGoSentFolderName = Sent; SOGoIMAPServer = &quot;imap://127.0.0.1:143/&quot;;
//SOGoTrashFolderName = Trash;
SOGoMailingMechanism = smtp; SOGoMailingMechanism = smtp;
SOGoSMTPServer = 127.0.0.1; SOGoSMTPServer = 127.0.0.1;
// Enable managesieve service // Enable managesieve service
SOGoSieveServer = sieve://127.0.0.1:4190; //
SOGoSieveScriptsEnabled = YES; // WARNING: Sieve scripts generated by SOGo is not compatible with Roundcube
SOGoVacationEnabled = YES; // webmail, don't use sieve service in both webmails, otherwise
// it will be messy.
//
//SOGoSieveServer = sieve://PH_MANAGESIEVE_BIND_HOST:PH_MANAGESIEVE_PORT;
//SOGoSieveScriptsEnabled = YES;
//SOGoVacationEnabled = YES;
//SOGoForwardEnabled = YES;
SOGoMemcachedHost = 127.0.0.1; SOGoMemcachedHost = 127.0.0.1;
SOGoTimeZone = &quot;Europe/Berlin&quot;; SOGoTimeZone = &quot;Europe/Berlin&quot;;
SOGoFirstDayOfWeek = 1; SOGoFirstDayOfWeek = 1;
SOGoMailMessageCheck = every_5_minutes; SOGoMailMessageCheck = every_5_minutes;
SOGoForceExternalLoginWithEmail = YES; SOGoForceExternalLoginWithEmail = YES;
SOGoAppointmentSendEMailNotifications = YES; SOGoAppointmentSendEMailNotifications = YES;
@ -117,24 +119,28 @@ mysql&gt; CREATE VIEW sogo.sogo_users (c_uid, c_name, c_password, c_cn, mail, ho
SOGoPasswordChangeEnabled = YES; SOGoPasswordChangeEnabled = YES;
// User authentication
SOGoUserSources = SOGoUserSources =
( (
{ {
type = sql; type = sql;
id = directory; id = directory;
viewURL = &quot;mysql://sogo:password@127.0.0.1:3306/sogo/sogo_users&quot;; viewURL = &quot;mysql://sogo:password@127.0.0.1:3306/sogo/users&quot;;
canAuthenticate = YES; canAuthenticate = YES;
isAddressBook = YES;
userPasswordAlgorithm = md5; userPasswordAlgorithm = md5;
prependPasswordScheme = YES; prependPasswordScheme = YES;
// SOGo can use SQL database as address book, but it's able to
// query ALL mail accounts. Enable it on your own.
isAddressBook = NO;
} }
); );
} }
</code></pre> </code></pre>
<p><strong>NOTE</strong>: SOGo will create required SQL tables automatically <p><strong>NOTE</strong>: SOGo will create required SQL tables automatically (<code>user_profiles</code>,
(<code>sogo_user_profile</code>, <code>sogo_folder_info</code>, <code>sogo_sessions_folder</code>, ...), we <code>folder</code>, <code>sessions</code>, ...), we don't need to create them manually.</p>
don't need to create them manually.</p>
<h2 id="enable-activesync-support">Enable ActiveSync support</h2> <h2 id="enable-activesync-support">Enable ActiveSync support</h2>
<h3 id="apache-web-server">Apache web server</h3> <h3 id="apache-web-server">Apache web server</h3>
<p>SOGo installs config file <code>/etc/httpd/conf.d/SOGo.conf</code> by default, please <p>SOGo installs config file <code>/etc/httpd/conf.d/SOGo.conf</code> by default, please

View File

@ -2,9 +2,6 @@
[TOC] [TOC]
__NOTE__: this is still a draft and incomplete tutorial.
## Requirements ## Requirements
* A working iRedMail server (MySQL backend) on CentOS 6. * A working iRedMail server (MySQL backend) on CentOS 6.
@ -45,7 +42,7 @@ mysql> GRANT ALL ON sogo.* TO sogo@localhost IDENTIFIED BY 'password';
mysql> GRANT SELECT ON vmail.mailbox TO sogo@localhost; mysql> GRANT SELECT ON vmail.mailbox TO sogo@localhost;
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; mysql> CREATE VIEW sogo.users (c_uid, c_name, c_password, c_cn, mail, home) AS SELECT username, username, password, name, username, maildir FROM vmail.mailbox;
``` ```
## Configure SOGo ## Configure SOGo
@ -56,34 +53,37 @@ Default SOGo config file is `/etc/sogo/sogo.conf`:
{ {
WOPort = 127.0.0.1:20000; WOPort = 127.0.0.1:20000;
SOGoProfileURL = "mysql://sogo:password@localhost:3306/sogo/sogo_user_profile"; SOGoProfileURL = "mysql://sogo:password@localhost:3306/sogo/user_profiles";
OCSFolderInfoURL = "mysql://sogo:password@localhost:3306/sogo/sogo_folder_info"; OCSFolderInfoURL = "mysql://sogo:password@localhost:3306/sogo/folders";
OCSSessionsFolderURL = "mysql://sogo:password@localhost:3306/sogo/sogo_sessions_folder"; OCSSessionsFolderURL = "mysql://sogo:password@localhost:3306/sogo/sessions";
// Enable email-based alarms on events and tasks. // Enable email-based alarms on events and tasks.
SOGoEnableEMailAlarms = YES; SOGoEnableEMailAlarms = YES;
OCSEMailAlarmsFolderURL = "mysql://sogo:password@localhost:3306/sogo/sogo_alarms_folder"; OCSEMailAlarmsFolderURL = "mysql://sogo:password@localhost:3306/sogo/alarms";
// Use TLS // Use TLS
SOGoIMAPServer = "imaps://127.0.0.1:143/?tls=YES"; //SOGoIMAPServer = "imaps://127.0.0.1:143/?tls=YES";
//SOGoDraftsFolderName = Drafts; // Local connection is considered as secure by Dovecot.
//SOGoSentFolderName = Sent; SOGoIMAPServer = "imap://127.0.0.1:143/";
//SOGoTrashFolderName = Trash;
SOGoMailingMechanism = smtp; SOGoMailingMechanism = smtp;
SOGoSMTPServer = 127.0.0.1; SOGoSMTPServer = 127.0.0.1;
// Enable managesieve service // Enable managesieve service
SOGoSieveServer = sieve://127.0.0.1:4190; //
SOGoSieveScriptsEnabled = YES; // WARNING: Sieve scripts generated by SOGo is not compatible with Roundcube
SOGoVacationEnabled = YES; // webmail, don't use sieve service in both webmails, otherwise
// it will be messy.
//
//SOGoSieveServer = sieve://PH_MANAGESIEVE_BIND_HOST:PH_MANAGESIEVE_PORT;
//SOGoSieveScriptsEnabled = YES;
//SOGoVacationEnabled = YES;
//SOGoForwardEnabled = YES;
SOGoMemcachedHost = 127.0.0.1; SOGoMemcachedHost = 127.0.0.1;
SOGoTimeZone = "Europe/Berlin"; SOGoTimeZone = "Europe/Berlin";
SOGoFirstDayOfWeek = 1; SOGoFirstDayOfWeek = 1;
SOGoMailMessageCheck = every_5_minutes; SOGoMailMessageCheck = every_5_minutes;
SOGoForceExternalLoginWithEmail = YES; SOGoForceExternalLoginWithEmail = YES;
SOGoAppointmentSendEMailNotifications = YES; SOGoAppointmentSendEMailNotifications = YES;
@ -92,24 +92,28 @@ Default SOGo config file is `/etc/sogo/sogo.conf`:
SOGoPasswordChangeEnabled = YES; SOGoPasswordChangeEnabled = YES;
// User authentication
SOGoUserSources = SOGoUserSources =
( (
{ {
type = sql; type = sql;
id = directory; id = directory;
viewURL = "mysql://sogo:password@127.0.0.1:3306/sogo/sogo_users"; viewURL = "mysql://sogo:password@127.0.0.1:3306/sogo/users";
canAuthenticate = YES; canAuthenticate = YES;
isAddressBook = YES;
userPasswordAlgorithm = md5; userPasswordAlgorithm = md5;
prependPasswordScheme = YES; prependPasswordScheme = YES;
// SOGo can use SQL database as address book, but it's able to
// query ALL mail accounts. Enable it on your own.
isAddressBook = NO;
} }
); );
} }
``` ```
__NOTE__: SOGo will create required SQL tables automatically __NOTE__: SOGo will create required SQL tables automatically (`user_profiles`,
(`sogo_user_profile`, `sogo_folder_info`, `sogo_sessions_folder`, ...), we `folder`, `sessions`, ...), we don't need to create them manually.
don't need to create them manually.
## Enable ActiveSync support ## Enable ActiveSync support