54 lines
2.6 KiB
HTML
54 lines
2.6 KiB
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="/index.html" 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</p>
|
|
<p><a href="./disable.spam.virus.scanning.for.outgoing.mails.html">English</a> /</p>
|
|
</div>
|
|
<h1 id="_1">对外发邮件禁用垃圾扫描、病毒扫描</h1>
|
|
<p>要对外发邮件禁用垃圾扫描、病毒扫描功能,可以在 Amavisd 配置文件
|
|
<code>/etc/amavisd/amavisd.conf</code> (RHEL/CentOS) 或 <code>/etc/amavis/conf.d/50-user</code>
|
|
(Debian/Ubuntu) 或 <code>/usr/local/etc/amavisd.conf</code> (FreeBSD) 中增加 bypass 设置。</p>
|
|
<ul>
|
|
<li>bypass_spam_checks_maps</li>
|
|
<li>bypass_virus_checks_maps</li>
|
|
<li>bypass_header_checks_maps</li>
|
|
<li>bypass_banned_checks_maps</li>
|
|
</ul>
|
|
<p>这些设置可以添加到 <code>$policy_bank{'MYUSERS'}</code> 配置里。例如:</p>
|
|
<pre><code class="perl">$policy_bank{'MYUSERS'} = {
|
|
[...此处省略其它配置参数...]
|
|
|
|
# 不执行垃圾扫描、病毒扫描、邮件头检测
|
|
bypass_spam_checks_maps => [1],
|
|
bypass_virus_checks_maps => [1],
|
|
bypass_header_checks_maps => [1],
|
|
|
|
# 不检查被禁止的文件名和文件类型
|
|
bypass_banned_checks_maps => [1],
|
|
}
|
|
</code></pre>
|
|
|
|
<p>更改设置后需要重启 Amavisd 服务以使更改生效。</p><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. 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> |