This commit is contained in:
Zhang Huangbin 2016-04-24 23:59:07 +08:00
parent 4178c29161
commit 263ecf3956
4 changed files with 18 additions and 26 deletions

View File

@ -1,5 +1,9 @@
# Amavisd + SpamAssassin not working? no mail header (X-Spam-*) inserted
> Amavisd config file is different on different Linux/BSD distributions, you can
> find the correct one for your server in this tutorial:
> [Locations of configuration and log files of major components](./file.locations.html#amavisd)
Amavisd has below setting in its config file `/etc/amavisd/amavisd.conf` by default:
```
@ -15,9 +19,3 @@ $sa_tag_level_deflt = -999;
```
Restarting Amavisd service is required after changed setting.
Amavisd's main config file is different on different Linux/BSD distributions:
* Red Hat, CentOS, OpenBSD: `/etc/amavisd/amavisd.conf`
* Debian, Ubuntu: `/etc/amavis/conf.d/50-user` (and other config files under `/etc/amavis/conf.d/`)
* FreeBSD: `/usr/local/etc/amavisd/amavisd.conf`

View File

@ -19,6 +19,10 @@
<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>
@ -29,13 +33,7 @@
<pre><code>$sa_tag_level_deflt = -999;
</code></pre>
<p>修改后需要重启 Amavisd 服务。</p>
<p>Amavisd 的主配置文件在不同的 Linux/BSD 系统上路径不同:</p>
<ul>
<li>Red Hat, CentOS, OpenBSD: <code>/etc/amavisd/amavisd.conf</code></li>
<li>Debian, Ubuntu: <code>/etc/amavis/conf.d/50-user</code> (其它配置文件均在 <code>/etc/amavs/conf.d/</code> 目录下)</li>
<li>FreeBSD: <code>/usr/local/etc/amavisd/amavisd.conf</code></li>
</ul><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>
<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)

View File

@ -19,6 +19,11 @@
<p><a href="./no.x-spam.headers-zh_CN.html">简体中文</a> /</p>
</div>
<h1 id="amavisd-spamassassin-not-working-no-mail-header-x-spam-inserted">Amavisd + SpamAssassin not working? no mail header (X-Spam-*) inserted</h1>
<blockquote>
<p>Amavisd config file is different on different Linux/BSD distributions, you can
find the correct one for your server in this tutorial:
<a href="./file.locations.html#amavisd">Locations of configuration and log files of major components</a></p>
</blockquote>
<p>Amavisd has below setting in its config file <code>/etc/amavisd/amavisd.conf</code> by default:</p>
<pre><code>$sa_tag_level_deflt = 2.0;
</code></pre>
@ -29,13 +34,7 @@ set it to a low score, for example:</p>
<pre><code>$sa_tag_level_deflt = -999;
</code></pre>
<p>Restarting Amavisd service is required after changed setting.</p>
<p>Amavisd's main config file is different on different Linux/BSD distributions:</p>
<ul>
<li>Red Hat, CentOS, OpenBSD: <code>/etc/amavisd/amavisd.conf</code></li>
<li>Debian, Ubuntu: <code>/etc/amavis/conf.d/50-user</code> (and other config files under <code>/etc/amavis/conf.d/</code>)</li>
<li>FreeBSD: <code>/usr/local/etc/amavisd/amavisd.conf</code></li>
</ul><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>
<p>Restarting Amavisd service is required after changed setting.</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)

View File

@ -1,5 +1,8 @@
# Amavisd + SpamAssassin 无效,邮件头无 X-Spam-* 信息插入
> Amavisd 的主配置文件在不同的 Linux/BSD 系统上路径不同,请参考以下文档找到正确的文件:
> [Locations of configuration and log files of major components](./file.locations.html#amavisd)
在 Amavisd 的配置文件 `/etc/amavisd/amavisd.conf` 中有如下默认设置:
```
@ -15,9 +18,3 @@ $sa_tag_level_deflt = -999;
```
修改后需要重启 Amavisd 服务。
Amavisd 的主配置文件在不同的 Linux/BSD 系统上路径不同:
* Red Hat, CentOS, OpenBSD: `/etc/amavisd/amavisd.conf`
* Debian, Ubuntu: `/etc/amavis/conf.d/50-user` (其它配置文件均在 `/etc/amavs/conf.d/` 目录下)
* FreeBSD: `/usr/local/etc/amavisd/amavisd.conf`