68 lines
3.7 KiB
HTML
68 lines
3.7 KiB
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
|
<title>性能优化</title>
|
|
<link rel="stylesheet" type="text/css" href="./css/markdown.css" />
|
|
</head>
|
|
<body>
|
|
|
|
<div id="navigation">
|
|
<a href="https://www.iredmail.org" target="_blank">
|
|
<img alt="iRedMail web site"
|
|
src="./images/logo-iredmail.png"
|
|
style="vertical-align: middle; height: 30px;"
|
|
/>
|
|
<span>iRedMail</span>
|
|
</a>
|
|
// <a href="./index.html">Document Index</a></div><div class="admonition note">
|
|
<p class="admonition-title">This tutorial is available in other languages. <a href="https://github.com/iredmail/docs">Help translate more</a></p>
|
|
<p><a href="./performance.tuning.html">English</a> / <a href="./performance.tuning-it_IT.html">Italiano</a> / <a href="./performance.tuning-lv_LV.html">Latvian</a> /</p>
|
|
</div>
|
|
<h1 id="_1">性能优化</h1>
|
|
<div class="toc">
|
|
<ul>
|
|
<li><a href="#_1">性能优化</a><ul>
|
|
<li><a href="#dns">在局域网或本机上搭建一个 DNS 缓存服务器</a></li>
|
|
<li><a href="#postscreen">启用 postscreen 服务以帮助减少垃圾邮件</a></li>
|
|
<li><a href="#amavisd-postfix">更改 Amavisd + Postfix 的配置文件以便同时处理更多的邮件</a></li>
|
|
</ul>
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
<p>如果你运行的是一台高负载的邮件服务器(每天都需要处理大量的收发件请求),可以
|
|
参考下面建议调整服务器以达到更好的性能。</p>
|
|
<h3 id="dns">在局域网或本机上搭建一个 DNS 缓存服务器</h3>
|
|
<p>邮件服务需要频繁、大量地执行 DNS 查询,所以非常依赖 DNS 服务。因此在局域网或
|
|
本机搭建 DNS 缓存服务器将有以下好处:</p>
|
|
<ul>
|
|
<li>加快 DNS 查询,这对邮件的流转起到极大加速作用。</li>
|
|
<li>极大地减少了对 DNSBL 服务器的查询请求。这可以确保在不超出服务商的查询
|
|
次数限制的前提下,稳定地使用 DNSBL 服务。</li>
|
|
</ul>
|
|
<h3 id="postscreen">启用 postscreen 服务以帮助减少垃圾邮件</h3>
|
|
<ul>
|
|
<li><a href="./enable.postscreen.html">启用 postscreen 服务</a></li>
|
|
</ul>
|
|
<p>如果你不想启用 postscreen 服务,可以尝试 <a href="./enable.dnsbl.html">启用 DNSBL 服务</a>
|
|
作为替代,它同样能极大地减少垃圾邮件。虽然 postscreen 和单纯的 DNSBL 服务都
|
|
使用相同的 DNSBL 服务商,但 postscreen 有额外的机制来帮助阻挡垃圾邮件,因此
|
|
postscreen 有更好的反垃圾效果。</p>
|
|
<p>postscreen 和 DNSBL 服务都在 smtp 会话阶段就拦下垃圾邮件,因此可以极大地节省
|
|
系统资源。</p>
|
|
<h3 id="amavisd-postfix">更改 Amavisd + Postfix 的配置文件以便同时处理更多的邮件</h3>
|
|
<ul>
|
|
<li><a href="./concurrent.processing.html">同时处理更多邮件</a></li>
|
|
</ul><div class="footer">
|
|
<p style="text-align: center; color: grey;">All documents are available in <a href="https://github.com/iredmail/docs/">GitHub 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://github.com/iredmail/docs/archive/master.zip">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>
|
|
<!-- Global site tag (gtag.js) - Google Analytics -->
|
|
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-3293801-21"></script>
|
|
<script>
|
|
window.dataLayer = window.dataLayer || [];
|
|
function gtag(){dataLayer.push(arguments);}
|
|
gtag('js', new Date());
|
|
|
|
gtag('config', 'UA-3293801-21');
|
|
</script>
|
|
</body></html> |