New: howto/0-performance.tuning.md, 3 tips added.

This commit is contained in:
Zhang Huangbin 2015-07-07 21:09:17 +08:00
parent c5b33b70da
commit c339d7a3b5
20 changed files with 198 additions and 17 deletions

View File

@ -36,7 +36,6 @@ all_chapter_dirs="overview \
upgrade \
migrations \
howto \
performance.tunning \
integrations \
cluster \
troubleshooting \

View File

@ -0,0 +1,24 @@
# Performance tuning
[TOC]
If you're running a busy mail server (many inbound/outbound emails every day),
you can follow below suggestions for better performance.
### Setup a DNS server in LAN or localhost to cache DNS queries
Mail services heavily rely on DNS service and perform many many DNS queries,
a cache DNS server in LAN or localhost helps a lot.
### Enable postscreen service to help reduce spam
* [Enable postscreen service](./enable.postscreen.html)
If you don't want to use postscreen service, you can [enable DNSBL service](./enable.dnsbl.html)
instead, it helps a lot too, but less effective than postscreen service.
postscreen and DNSBL service help catch a lot spam, save much system resource.
### Update Amavisd + Postfix config files to process more emails concurrently
* [Process more emails concurrently](./concurrent.processing.html)

View File

@ -1,4 +1,6 @@
# Amavisd: process more emails concurrently
# Process more emails concurrently
__WARNING__: Processing more concurrent emails require more RAM.
Amavisd-new is content filter, it invokes SpamAssassin and ClamAV for
spam/virus scanning, it also offers additional features like DKIM signing and

View File

@ -0,0 +1,30 @@
# Enable postscreen service
__WARNING__: With postscreen service enabled, your users must use port 587 to
send email, port 25 will be used by postscreen service instead of normal smtp
service.
iRedMail ships a script to enable postscreen. You can enable it with steps below:
* Download script `enable_postscreen.sh` from [iRedMail source code repository](https://bitbucket.org/zhb/iredmail/src/default/iRedMail/tools/?at=default)
* Upload this script to your iRedMail server, then below command to enable
postscreen:
```
# bash enable_postscreen.sh
```
It uses several DNSBL servers by default, you'd better open
`/etc/postfix/main.cf` (Linux/OpenBSD) or `/usr/local/etc/postfix/main.cf`
(FreeBSD) to check the DNSBL servers it enabled, you're free to remove some
DNSBL servers if you want.
## See Also
If you don't want to use postscreen service, you can [enable DNSBL service](./enable.dnsbl.html)
instead, it helps a lot too, but less effective than postscreen service.
## References
* [Postfix Postscreen Howto](http://www.postfix.org/POSTSCREEN_README.html)
* [Postfix manual page: postscreen(8)](http://www.postfix.org/postscreen.8.html)

View File

@ -1,7 +1,7 @@
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Amavisd: process more emails concurrently</title>
<title>Process more emails concurrently</title>
<link href="./css/markdown.css" rel="stylesheet"></head>
</head>
<body>
@ -10,7 +10,8 @@
<a href="http://www.iredmail.org" target="_blank">iRedMail web site</a>
// <a href="./index.html">Document Index</a>
</div><h1 id="amavisd-process-more-emails-concurrently">Amavisd: process more emails concurrently</h1>
</div><h1 id="process-more-emails-concurrently">Process more emails concurrently</h1>
<p><strong>WARNING</strong>: Processing more concurrent emails require more RAM.</p>
<p>Amavisd-new is content filter, it invokes SpamAssassin and ClamAV for
spam/virus scanning, it also offers additional features like DKIM signing and
verification.</p>

View File

@ -0,0 +1,46 @@
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Enable postscreen service</title>
<link href="./css/markdown.css" rel="stylesheet"></head>
</head>
<body>
<div id="navigation">
<a href="http://www.iredmail.org" target="_blank">iRedMail web site</a>
// <a href="./index.html">Document Index</a>
</div><h1 id="enable-postscreen-service">Enable postscreen service</h1>
<p><strong>WARNING</strong>: With postscreen service enabled, your users must use port 587 to
send email, port 25 will be used by postscreen service instead of normal smtp
service.</p>
<p>iRedMail ships a script to enable postscreen. You can enable it with steps below:</p>
<ul>
<li>Download script <code>enable_postscreen.sh</code> from <a href="https://bitbucket.org/zhb/iredmail/src/default/iRedMail/tools/?at=default">iRedMail source code repository</a></li>
<li>Upload this script to your iRedMail server, then below command to enable
postscreen:</li>
</ul>
<pre><code># bash enable_postscreen.sh
</code></pre>
<p>It uses several DNSBL servers by default, you'd better open
<code>/etc/postfix/main.cf</code> (Linux/OpenBSD) or <code>/usr/local/etc/postfix/main.cf</code>
(FreeBSD) to check the DNSBL servers it enabled, you're free to remove some
DNSBL servers if you want.</p>
<h2 id="see-also">See Also</h2>
<p>If you don't want to use postscreen service, you can <a href="./enable.dnsbl.html">enable DNSBL service</a>
instead, it helps a lot too, but less effective than postscreen service.</p>
<h2 id="references">References</h2>
<ul>
<li><a href="http://www.postfix.org/POSTSCREEN_README.html">Postfix Postscreen Howto</a></li>
<li><a href="http://www.postfix.org/postscreen.8.html">Postfix manual page: postscreen(8)</a></li>
</ul><p style="text-align: center; color: grey;">Document published under a <a href="http://creativecommons.org/licenses/by-nd/3.0/us/" target="_blank">CC BY-ND 3.0</a> license. If you found something wrong, please do <a href="http://www.iredmail.org/contact.html">contact us</a> to fix it.<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-3293801-21', 'auto');
ga('send', 'pageview');
</script>
</body></html>

View File

@ -27,11 +27,22 @@
</ul>
</li>
<li>
<p><a href="./setup.dns.html">Setup DNS records for your iRedMail server</a></p>
<p>After installtion:</p>
<ul>
<li><a href="./setup.dns.html">Setup DNS records for your iRedMail server</a></li>
</ul>
</li>
<li>
<p>Additional installation tips</p>
<ul>
<li><a href="./install.iredmail.with.remote.mysql.server.html">Install iRedMail with a remote MySQL server</a></li>
<li><a href="./unattended.iredmail.installation.html">Perform silent/unattended iRedMail installation</a></li>
</ul>
</li>
<li>
<p><a href="./performance.tuning.html">Performance tuning for a busy server</a></p>
</li>
</ul>
<h3 id="configure-mail-client-applications">Configure mail client applications</h3>
<p>If you're using different mail clients, please help write documents to guide other users to setup the mail clients.</p>
<ul>
@ -69,8 +80,10 @@
<li><a href="allow.user.to.send.email.without.authentication.html">Allow user to send email without authentication</a></li>
<li><a href="amavisd.per-recipient.policy.lookup.html">Amavisd: Enable per-recipient policy lookup</a></li>
<li><a href="change.server.hostname.html">Change server hostname</a></li>
<li><a href="concurrent.processing.html">Process more emails concurrently</a></li>
<li><a href="dovecot.master.user.html">Dovecot Master User</a></li>
<li><a href="enable.dnsbl.html">Enable DNSBL service in Postfix to reduce spam</a></li>
<li><a href="enable.postscreen.html">Enable postscreen service</a></li>
<li><a href="force.user.to.change.password.html">Force mail user to change password in 90 days</a></li>
<li><a href="ignore.trash.folder.in.quota.html">Ignore Trash folder in mailbox quota</a></li>
<li><a href="ldap.add.alias.domain.html">LDAP: Add an alias domain</a></li>
@ -98,10 +111,6 @@
<ul>
<li><a href="http://www.iredmail.org/forum/topic8169-iredmail-support-antispam-via-dovecot-and-spamassassin.html">Anti-spam with Dovecot antispam plugin and SpamAssassin</a>, contributed by Dexus.</li>
</ul>
<h3 id="performance-tunning">Performance tunning</h3>
<ul>
<li><a href="concurrent.processing.html">Amavisd: process more emails concurrently</a></li>
</ul>
<h3 id="third-party-integrations">Third-party integrations</h3>
<p>Below tutorials are maintained by iRedMail project.</p>
<ul>

View File

@ -204,6 +204,8 @@ automatically. Type <code>y</code> or <code>Y</code> and press <code>Enter</code
HTTPS/IMAPS/POP3/SMTPS. Or, you can use
<a href="http://www.startssl.com/?app=1">free SSL cert offerred by StartSSL.com</a>.
We have a document for you to <a href="http://www.iredmail.org/docs/use.a.bought.ssl.certificate.html">use a bought SSL certificate</a>.</li>
<li>If you're running a busy mail server, we have <a href="./performance.tuning.html">some suggestions for better
performance</a>.</li>
</ul>
<h2 id="access-webmail-and-other-web-applications">Access webmail and other web applications</h2>
<p>After installation successfully completed, you can access web-based programs

View File

@ -207,6 +207,8 @@ automatically. Type <code>y</code> or <code>Y</code> and press <code>Enter</code
HTTPS/IMAPS/POP3/SMTPS. Or, you can use
<a href="http://www.startssl.com/?app=1">free SSL cert offerred by StartSSL.com</a>.
We have a document for you to <a href="http://www.iredmail.org/docs/use.a.bought.ssl.certificate.html">use a bought SSL certificate</a>.</li>
<li>If you're running a busy mail server, we have <a href="./performance.tuning.html">some suggestions for better
performance</a>.</li>
</ul>
<h2 id="access-webmail-and-other-web-applications">Access webmail and other web applications</h2>
<p>After installation successfully completed, you can access web-based programs

View File

@ -269,6 +269,8 @@ automatically. Type <code>y</code> or <code>Y</code> and press <code>Enter</code
HTTPS/IMAPS/POP3/SMTPS. Or, you can use
<a href="http://www.startssl.com/?app=1">free SSL cert offerred by StartSSL.com</a>.
We have a document for you to <a href="http://www.iredmail.org/docs/use.a.bought.ssl.certificate.html">use a bought SSL certificate</a>.</li>
<li>If you're running a busy mail server, we have <a href="./performance.tuning.html">some suggestions for better
performance</a>.</li>
</ul>
<h2 id="access-webmail-and-other-web-applications">Access webmail and other web applications</h2>
<p>After installation successfully completed, you can access web-based programs

View File

@ -240,6 +240,8 @@ automatically. Type <code>y</code> or <code>Y</code> and press <code>Enter</code
<a href="http://www.startssl.com/?app=1">free SSL cert offerred by StartSSL.com</a>.
We have a document for you to <a href="http://www.iredmail.org/docs/use.a.bought.ssl.certificate.html">use a bought SSL certificate</a>.</p>
</li>
<li>If you're running a busy mail server, we have <a href="./performance.tuning.html">some suggestions for better
performance</a>.</li>
</ul>
<h2 id="access-webmail-and-other-web-applications">Access webmail and other web applications</h2>
<p>After installation successfully completed, you can access web-based programs

View File

@ -223,6 +223,8 @@ automatically. Type <code>y</code> or <code>Y</code> and press <code>Enter</code
HTTPS/IMAPS/POP3/SMTPS. Or, you can use
<a href="http://www.startssl.com/?app=1">free SSL cert offerred by StartSSL.com</a>.
We have a document for you to <a href="http://www.iredmail.org/docs/use.a.bought.ssl.certificate.html">use a bought SSL certificate</a>.</li>
<li>If you're running a busy mail server, we have <a href="./performance.tuning.html">some suggestions for better
performance</a>.</li>
</ul>
<h2 id="access-webmail-and-other-web-applications">Access webmail and other web applications</h2>
<p>After installation successfully completed, you can access web-based programs

View File

@ -0,0 +1,48 @@
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Performance tuning</title>
<link href="./css/markdown.css" rel="stylesheet"></head>
</head>
<body>
<div id="navigation">
<a href="http://www.iredmail.org" target="_blank">iRedMail web site</a>
// <a href="./index.html">Document Index</a>
</div><h1 id="performance-tuning">Performance tuning</h1>
<div class="toc">
<ul>
<li><a href="#performance-tuning">Performance tuning</a><ul>
<li><a href="#setup-a-dns-server-in-lan-or-localhost-to-cache-dns-queries">Setup a DNS server in LAN or localhost to cache DNS queries</a></li>
<li><a href="#enable-postscreen-service-to-help-reduce-spam">Enable postscreen service to help reduce spam</a></li>
<li><a href="#update-amavisd-postfix-config-files-to-process-more-emails-concurrently">Update Amavisd + Postfix config files to process more emails concurrently</a></li>
</ul>
</li>
</ul>
</div>
<p>If you're running a busy mail server (many inbound/outbound emails every day),
you can follow below suggestions for better performance.</p>
<h3 id="setup-a-dns-server-in-lan-or-localhost-to-cache-dns-queries">Setup a DNS server in LAN or localhost to cache DNS queries</h3>
<p>Mail services heavily rely on DNS service and perform many many DNS queries,
a cache DNS server in LAN or localhost helps a lot.</p>
<h3 id="enable-postscreen-service-to-help-reduce-spam">Enable postscreen service to help reduce spam</h3>
<ul>
<li><a href="./enable.postscreen.html">Enable postscreen service</a></li>
</ul>
<p>If you don't want to use postscreen service, you can <a href="./enable.dnsbl.html">enable DNSBL service</a>
instead, it helps a lot too, but less effective than postscreen service.</p>
<p>postscreen and DNSBL service help catch a lot spam, save much system resource.</p>
<h3 id="update-amavisd-postfix-config-files-to-process-more-emails-concurrently">Update Amavisd + Postfix config files to process more emails concurrently</h3>
<ul>
<li><a href="./concurrent.processing.html">Process more emails concurrently</a></li>
</ul><p style="text-align: center; color: grey;">Document published under a <a href="http://creativecommons.org/licenses/by-nd/3.0/us/" target="_blank">CC BY-ND 3.0</a> license. If you found something wrong, please do <a href="http://www.iredmail.org/contact.html">contact us</a> to fix it.<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-3293801-21', 'auto');
ga('send', 'pageview');
</script>
</body></html>

View File

@ -192,7 +192,8 @@ Configuration completed.
HTTPS/IMAPS/POP3/SMTPS. Or, you can use
[free SSL cert offerred by StartSSL.com](http://www.startssl.com/?app=1).
We have a document for you to [use a bought SSL certificate](http://www.iredmail.org/docs/use.a.bought.ssl.certificate.html).
* If you're running a busy mail server, we have [some suggestions for better
performance](./performance.tuning.html).
## Access webmail and other web applications

View File

@ -197,7 +197,8 @@ Configuration completed.
HTTPS/IMAPS/POP3/SMTPS. Or, you can use
[free SSL cert offerred by StartSSL.com](http://www.startssl.com/?app=1).
We have a document for you to [use a bought SSL certificate](http://www.iredmail.org/docs/use.a.bought.ssl.certificate.html).
* If you're running a busy mail server, we have [some suggestions for better
performance](./performance.tuning.html).
## Access webmail and other web applications

View File

@ -255,7 +255,8 @@ Configuration completed.
HTTPS/IMAPS/POP3/SMTPS. Or, you can use
[free SSL cert offerred by StartSSL.com](http://www.startssl.com/?app=1).
We have a document for you to [use a bought SSL certificate](http://www.iredmail.org/docs/use.a.bought.ssl.certificate.html).
* If you're running a busy mail server, we have [some suggestions for better
performance](./performance.tuning.html).
## Access webmail and other web applications

View File

@ -224,6 +224,8 @@ Configuration completed.
HTTPS/IMAPS/POP3/SMTPS. Or, you can use
[free SSL cert offerred by StartSSL.com](http://www.startssl.com/?app=1).
We have a document for you to [use a bought SSL certificate](http://www.iredmail.org/docs/use.a.bought.ssl.certificate.html).
* If you're running a busy mail server, we have [some suggestions for better
performance](./performance.tuning.html).
## Access webmail and other web applications

View File

@ -210,7 +210,8 @@ Configuration completed.
HTTPS/IMAPS/POP3/SMTPS. Or, you can use
[free SSL cert offerred by StartSSL.com](http://www.startssl.com/?app=1).
We have a document for you to [use a bought SSL certificate](http://www.iredmail.org/docs/use.a.bought.ssl.certificate.html).
* If you're running a busy mail server, we have [some suggestions for better
performance](./performance.tuning.html).
## Access webmail and other web applications

View File

@ -5,6 +5,13 @@
* [FreeBSD (without Jail)](./install.iredmail.on.freebsd.html), [FreeBSD with Jail (ezjail)](./install.iredmail.on.freebsd.with.jail.html)
* [OpenBSD](./install.iredmail.on.openbsd.html)
* [Setup DNS records for your iRedMail server](./setup.dns.html)
* [Install iRedMail with a remote MySQL server](./install.iredmail.with.remote.mysql.server.html)
* [Perform silent/unattended iRedMail installation](./unattended.iredmail.installation.html)
* After installtion:
* [Setup DNS records for your iRedMail server](./setup.dns.html)
* Additional installation tips
* [Install iRedMail with a remote MySQL server](./install.iredmail.with.remote.mysql.server.html)
* [Perform silent/unattended iRedMail installation](./unattended.iredmail.installation.html)
* [Performance tuning for a busy server](./performance.tuning.html)

View File

@ -1 +0,0 @@
Performance tunning