2016-05-19 06:51:20 -05:00
<!DOCTYPE html>
2015-08-14 08:25:15 -05:00
< html >
< head >
< meta http-equiv = "Content-Type" content = "text/html; charset=utf-8" / >
< title > 性能优化< / title >
2016-04-21 23:33:25 -05:00
< link rel = "stylesheet" type = "text/css" href = "./css/markdown.css" / >
2015-08-14 08:25:15 -05:00
< / head >
< body >
2019-07-13 06:21:55 -05:00
2015-08-14 08:25:15 -05:00
< div id = "navigation" >
2017-11-16 21:48:44 -06:00
< a href = "https://www.iredmail.org" target = "_blank" >
2016-04-19 12:48:51 -05:00
< img alt = "iRedMail web site"
2016-04-21 23:33:25 -05:00
src="./images/logo-iredmail.png"
2016-04-19 12:48:51 -05:00
style="vertical-align: middle; height: 30px;"
/>
< span > iRedMail< / span >
< / a >
2016-04-21 23:33:25 -05:00
// < a href = "./index.html" > Document Index< / a > < / div > < div class = "admonition note" >
2019-09-05 22:38:58 -05:00
< p class = "admonition-title" > This tutorial is available in other languages. < a href = "https://github.com/iredmail/docs" > Help translate more< / a > < / p >
2016-05-11 08:45:55 -05:00
< 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 >
2016-04-21 23:33:25 -05:00
< / div >
< h1 id = "_1" > 性能优化< / h1 >
2015-08-14 08:25:15 -05:00
< 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 >
2016-05-19 06:51:20 -05:00
< / ul > < div class = "footer" >
2019-09-06 00:54:43 -05:00
< p style = "text-align: center; color: grey;" > All documents are available in < a href = "https://github.com/iredmail/docs/" > 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://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 >
2016-05-19 06:51:20 -05:00
< / div >
2017-11-05 02:33:58 -06:00
<!-- 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());
2015-08-14 08:25:15 -05:00
2017-11-05 02:33:58 -06:00
gtag('config', 'UA-3293801-21');
2015-08-14 08:25:15 -05:00
< / script >
< / body > < / html >