58 lines
2.9 KiB
HTML
58 lines
2.9 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="./disable.spam.virus.scanning.for.outgoing.mails.html">English</a> / <a href="./disable.spam.virus.scanning.for.outgoing.mails-it_IT.html">Italiano</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{'ORIGINATING'}</code> 配置里。例如:</p>
|
|
<pre><code class="perl">$policy_bank{'ORIGINATING'} = {
|
|
[...此处省略其它配置参数...]
|
|
|
|
# 不执行垃圾扫描、病毒扫描、邮件头检测
|
|
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><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> |