2016-05-19 06:51:20 -05:00
<!DOCTYPE html>
2015-08-19 08:19:13 -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-19 08:19:13 -05:00
< / head >
< body >
< div id = "navigation" >
2016-04-19 12:48:51 -05:00
< a href = "/index.html" target = "_blank" >
< 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" >
2016-11-11 02:56:08 -06:00
< p class = "admonition-title" > This tutorial is available in other languages. < a href = "https://bitbucket.org/zhb/iredmail-docs/src" > Help translate more< / a > < / p >
2016-05-18 20:17:26 -05:00
< 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 >
2016-04-21 23:33:25 -05:00
< / div >
< h1 id = "_1" > 对外发邮件禁用垃圾扫描、病毒扫描< / h1 >
2015-08-19 08:19:13 -05:00
< 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 >
2016-05-19 06:51:20 -05:00
< p > 更改设置后需要重启 Amavisd 服务以使更改生效。< / p > < div class = "footer" >
< 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. You can < a href = "https://bitbucket.org/zhb/iredmail-docs/get/tip.tar.bz2" > download the latest version< / a > for offline reading. If you found something wrong, please do < a href = "http://www.iredmail.org/contact.html" > contact us< / a > to fix it.< / p >
< / div >
< script type = "text/javascript" >
2015-08-19 08:19:13 -05:00
(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 >