45 lines
2.5 KiB
HTML
45 lines
2.5 KiB
HTML
<html>
|
||
<head>
|
||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||
<title>Amavisd + SpamAssassin 无效,邮件头无 X-Spam-* 信息插入</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="./no.x-spam.headers.html">English</a> /</p>
|
||
</div>
|
||
<h1 id="amavisd-spamassassin-x-spam-">Amavisd + SpamAssassin 无效,邮件头无 X-Spam-* 信息插入</h1>
|
||
<blockquote>
|
||
<p>Amavisd 的主配置文件在不同的 Linux/BSD 系统上路径不同,请参考以下文档找到正确的文件:
|
||
<a href="./file.locations.html#amavisd">Locations of configuration and log files of major components</a></p>
|
||
</blockquote>
|
||
<p>在 Amavisd 的配置文件 <code>/etc/amavisd/amavisd.conf</code> 中有如下默认设置:</p>
|
||
<pre><code>$sa_tag_level_deflt = 2.0;
|
||
</code></pre>
|
||
|
||
<p>该设置表示 Amavisd 在邮件评分 >= 2.0 时会在邮件头(mail header)里插入
|
||
<code>X-Spam-Flag</code> 及其它的 <code>X-Spam-*</code> 信息。要让 Amavisd 总是插入 <code>X-Spam-*</code> 邮件头,
|
||
将上面的参数设成一个更低的值即可。例如:</p>
|
||
<pre><code>$sa_tag_level_deflt = -999;
|
||
</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> |