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
# - title: _title.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
# Get articles

View File

@ -35,7 +35,6 @@
</li>
</ul>
</div>
<p><strong>NOTE</strong>: this is still a draft and incomplete tutorial.</p>
<h2 id="requirements">Requirements</h2>
<ul>
<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; 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>
<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>{
WOPort = 127.0.0.1:20000;
SOGoProfileURL = &quot;mysql://sogo:password@localhost:3306/sogo/sogo_user_profile&quot;;
OCSFolderInfoURL = &quot;mysql://sogo:password@localhost:3306/sogo/sogo_folder_info&quot;;
OCSSessionsFolderURL = &quot;mysql://sogo:password@localhost:3306/sogo/sogo_sessions_folder&quot;;
SOGoProfileURL = &quot;mysql://sogo:password@localhost:3306/sogo/user_profiles&quot;;
OCSFolderInfoURL = &quot;mysql://sogo:password@localhost:3306/sogo/folders&quot;;
OCSSessionsFolderURL = &quot;mysql://sogo:password@localhost:3306/sogo/sessions&quot;;
// Enable email-based alarms on events and tasks.
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
SOGoIMAPServer = &quot;imaps://127.0.0.1:143/?tls=YES&quot;;
//SOGoDraftsFolderName = Drafts;
//SOGoSentFolderName = Sent;
//SOGoTrashFolderName = Trash;
//SOGoIMAPServer = &quot;imaps://127.0.0.1:143/?tls=YES&quot;;
// Local connection is considered as secure by Dovecot.
SOGoIMAPServer = &quot;imap://127.0.0.1:143/&quot;;
SOGoMailingMechanism = smtp;
SOGoSMTPServer = 127.0.0.1;
// Enable managesieve service
SOGoSieveServer = sieve://127.0.0.1:4190;
SOGoSieveScriptsEnabled = YES;
SOGoVacationEnabled = YES;
//
// WARNING: Sieve scripts generated by SOGo is not compatible with Roundcube
// 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;
SOGoTimeZone = &quot;Europe/Berlin&quot;;
SOGoFirstDayOfWeek = 1;
SOGoMailMessageCheck = every_5_minutes;
SOGoForceExternalLoginWithEmail = 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;
// User authentication
SOGoUserSources =
(
{
type = sql;
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;
isAddressBook = YES;
userPasswordAlgorithm = md5;
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>
<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>
<p><strong>NOTE</strong>: SOGo will create required SQL tables automatically (<code>user_profiles</code>,
<code>folder</code>, <code>sessions</code>, ...), we don't need to create them manually.</p>
<h2 id="enable-activesync-support">Enable ActiveSync support</h2>
<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

View File

@ -2,9 +2,6 @@
[TOC]
__NOTE__: this is still a draft and incomplete tutorial.
## Requirements
* 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> 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
@ -56,34 +53,37 @@ Default SOGo config file is `/etc/sogo/sogo.conf`:
{
WOPort = 127.0.0.1:20000;
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";
SOGoProfileURL = "mysql://sogo:password@localhost:3306/sogo/user_profiles";
OCSFolderInfoURL = "mysql://sogo:password@localhost:3306/sogo/folders";
OCSSessionsFolderURL = "mysql://sogo:password@localhost:3306/sogo/sessions";
// Enable email-based alarms on events and tasks.
SOGoEnableEMailAlarms = YES;
OCSEMailAlarmsFolderURL = "mysql://sogo:password@localhost:3306/sogo/sogo_alarms_folder";
OCSEMailAlarmsFolderURL = "mysql://sogo:password@localhost:3306/sogo/alarms";
// Use TLS
SOGoIMAPServer = "imaps://127.0.0.1:143/?tls=YES";
//SOGoDraftsFolderName = Drafts;
//SOGoSentFolderName = Sent;
//SOGoTrashFolderName = Trash;
//SOGoIMAPServer = "imaps://127.0.0.1:143/?tls=YES";
// Local connection is considered as secure by Dovecot.
SOGoIMAPServer = "imap://127.0.0.1:143/";
SOGoMailingMechanism = smtp;
SOGoSMTPServer = 127.0.0.1;
// Enable managesieve service
SOGoSieveServer = sieve://127.0.0.1:4190;
SOGoSieveScriptsEnabled = YES;
SOGoVacationEnabled = YES;
//
// WARNING: Sieve scripts generated by SOGo is not compatible with Roundcube
// 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;
SOGoTimeZone = "Europe/Berlin";
SOGoFirstDayOfWeek = 1;
SOGoMailMessageCheck = every_5_minutes;
SOGoForceExternalLoginWithEmail = YES;
SOGoAppointmentSendEMailNotifications = YES;
@ -92,24 +92,28 @@ Default SOGo config file is `/etc/sogo/sogo.conf`:
SOGoPasswordChangeEnabled = YES;
// User authentication
SOGoUserSources =
(
{
type = sql;
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;
isAddressBook = YES;
userPasswordAlgorithm = md5;
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
(`sogo_user_profile`, `sogo_folder_info`, `sogo_sessions_folder`, ...), we
don't need to create them manually.
__NOTE__: SOGo will create required SQL tables automatically (`user_profiles`,
`folder`, `sessions`, ...), we don't need to create them manually.
## Enable ActiveSync support