Add new column for SQL backends: mailbox.enablepop3tls.
This commit is contained in:
parent
869e4470c2
commit
e27e2a7495
|
@ -85,6 +85,8 @@ for this change.
|
|||
USE vmail;
|
||||
ALTER TABLE mailbox ADD COLUMN enableimaptls TINYINT(1) NOT NULL DEFAULT 1;
|
||||
ALTER TABLE mailbox ADD INDEX (enableimaptls);
|
||||
ALTER TABLE mailbox ADD COLUMN enablepop3tls TINYINT(1) NOT NULL DEFAULT 1;
|
||||
ALTER TABLE mailbox ADD INDEX (enablepop3tls);
|
||||
```
|
||||
|
||||
* For PostgreSQL backend, please switch to PostgreSQL daemon user with `su`
|
||||
|
@ -94,4 +96,6 @@ ALTER TABLE mailbox ADD INDEX (enableimaptls);
|
|||
\c vmail;
|
||||
ALTER TABLE mailbox ADD COLUMN enableimaptls INT2 NOT NULL DEFAULT 1;
|
||||
CREATE INDEX idx_mailbox_enableimaptls ON mailbox (enableimaptls);
|
||||
ALTER TABLE mailbox ADD COLUMN enablepop3tls INT2 NOT NULL DEFAULT 1;
|
||||
CREATE INDEX idx_mailbox_enablepop3tls ON mailbox (enablepop3tls);
|
||||
```
|
||||
|
|
|
@ -496,18 +496,12 @@ user. To avoid this issue, we create a SQL trigger to store email address
|
|||
without address extension in a new column `maddr.email_raw`. Please follow
|
||||
steps below to apply the SQL structure change.
|
||||
|
||||
* Download SQL template file used to update SQL database:
|
||||
* Download and import SQL template file used to update SQL database:
|
||||
|
||||
```
|
||||
cd /tmp/
|
||||
wget https://bitbucket.org/zhb/iredmail/raw/default/extra/update/0.9.8/amavisd.mysql
|
||||
```
|
||||
|
||||
* Connect to MySQL server as MySQL root user, and execute SQL commands:
|
||||
|
||||
```
|
||||
$ mysql amavisd
|
||||
mysql> SOURCE /tmp/amavisd.mysql;
|
||||
mysql amavisd < amavisd.mysql
|
||||
```
|
||||
|
||||
### Update SOGo config file for per-domain global address book
|
||||
|
@ -629,18 +623,12 @@ senders/recipients from Amavisd SQL database, because address
|
|||
user, but it's not. To avoid this issue, we create a SQL trigger to store email
|
||||
address without address extension in a new column `maddr.email_raw`. Steps:
|
||||
|
||||
* Download SQL template file used to update SQL database:
|
||||
* Download and import SQL template file used to update SQL database:
|
||||
|
||||
```
|
||||
cd /tmp/
|
||||
wget https://bitbucket.org/zhb/iredmail/raw/default/extra/update/0.9.8/amavisd.mysql
|
||||
```
|
||||
|
||||
* Connect to MySQL server as MySQL root user, and execute SQL commands:
|
||||
|
||||
```
|
||||
# mysql amavisd
|
||||
sql> SOURCE /tmp/amavisd.mysql;
|
||||
mysql amavisd < amavisd.mysql
|
||||
```
|
||||
|
||||
## PostgreSQL backend
|
||||
|
|
|
@ -98,6 +98,8 @@ for this change.</p>
|
|||
<pre><code>USE vmail;
|
||||
ALTER TABLE mailbox ADD COLUMN enableimaptls TINYINT(1) NOT NULL DEFAULT 1;
|
||||
ALTER TABLE mailbox ADD INDEX (enableimaptls);
|
||||
ALTER TABLE mailbox ADD COLUMN enablepop3tls TINYINT(1) NOT NULL DEFAULT 1;
|
||||
ALTER TABLE mailbox ADD INDEX (enablepop3tls);
|
||||
</code></pre>
|
||||
|
||||
<ul>
|
||||
|
@ -107,6 +109,8 @@ ALTER TABLE mailbox ADD INDEX (enableimaptls);
|
|||
<pre><code>\c vmail;
|
||||
ALTER TABLE mailbox ADD COLUMN enableimaptls INT2 NOT NULL DEFAULT 1;
|
||||
CREATE INDEX idx_mailbox_enableimaptls ON mailbox (enableimaptls);
|
||||
ALTER TABLE mailbox ADD COLUMN enablepop3tls INT2 NOT NULL DEFAULT 1;
|
||||
CREATE INDEX idx_mailbox_enablepop3tls ON mailbox (enablepop3tls);
|
||||
</code></pre><div class="footer">
|
||||
<p style="text-align: center; color: grey;">All documents are available in <a href="https://bitbucket.org/zhb/iredmail-docs/src">BitBucket repository</a>, and published under <a href="http://creativecommons.org/licenses/by-nd/3.0/us/" target="_blank">Creative Commons</a> license. You can <a href="https://bitbucket.org/zhb/iredmail-docs/get/tip.tar.bz2">download the latest version</a> for offline reading. If you found something wrong, please do <a href="https://www.iredmail.org/contact.html">contact us</a> to fix it.</p>
|
||||
</div>
|
||||
|
|
|
@ -508,17 +508,11 @@ user. To avoid this issue, we create a SQL trigger to store email address
|
|||
without address extension in a new column <code>maddr.email_raw</code>. Please follow
|
||||
steps below to apply the SQL structure change.</p>
|
||||
<ul>
|
||||
<li>Download SQL template file used to update SQL database:</li>
|
||||
<li>Download and import SQL template file used to update SQL database:</li>
|
||||
</ul>
|
||||
<pre><code>cd /tmp/
|
||||
wget https://bitbucket.org/zhb/iredmail/raw/default/extra/update/0.9.8/amavisd.mysql
|
||||
</code></pre>
|
||||
|
||||
<ul>
|
||||
<li>Connect to MySQL server as MySQL root user, and execute SQL commands:</li>
|
||||
</ul>
|
||||
<pre><code>$ mysql amavisd
|
||||
mysql> SOURCE /tmp/amavisd.mysql;
|
||||
mysql amavisd < amavisd.mysql
|
||||
</code></pre>
|
||||
|
||||
<h3 id="update-sogo-config-file-for-per-domain-global-address-book">Update SOGo config file for per-domain global address book</h3>
|
||||
|
@ -629,17 +623,11 @@ senders/recipients from Amavisd SQL database, because address
|
|||
user, but it's not. To avoid this issue, we create a SQL trigger to store email
|
||||
address without address extension in a new column <code>maddr.email_raw</code>. Steps:</p>
|
||||
<ul>
|
||||
<li>Download SQL template file used to update SQL database:</li>
|
||||
<li>Download and import SQL template file used to update SQL database:</li>
|
||||
</ul>
|
||||
<pre><code>cd /tmp/
|
||||
wget https://bitbucket.org/zhb/iredmail/raw/default/extra/update/0.9.8/amavisd.mysql
|
||||
</code></pre>
|
||||
|
||||
<ul>
|
||||
<li>Connect to MySQL server as MySQL root user, and execute SQL commands:</li>
|
||||
</ul>
|
||||
<pre><code># mysql amavisd
|
||||
sql> SOURCE /tmp/amavisd.mysql;
|
||||
mysql amavisd < amavisd.mysql
|
||||
</code></pre>
|
||||
|
||||
<h2 id="postgresql-backend">PostgreSQL backend</h2>
|
||||
|
|
Loading…
Reference in New Issue