iredmail-doc/html/no.x-spam.headers.html

56 lines
4.2 KiB
HTML
Raw Normal View History

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
2015-08-19 08:11:02 -05:00
<title>Amavisd + SpamAssassin not working? no mail header (X-Spam-*) inserted</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;"
/>&nbsp;
<span>iRedMail</span>
</a>
&nbsp;&nbsp;//&nbsp;&nbsp;<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-it_IT.html">Italiano</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>
2016-04-24 10:59:07 -05:00
<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>To understand whether Amavisd + SpamAssassin are working, you can add this
setting to Amavisd config file:</p>
<pre><code>$log_templ = $log_verbose_templ;
</code></pre>
2015-08-19 08:11:02 -05:00
<p>Then restart Amavisd service, it will log verbose message in log file. For
example:</p>
<blockquote>
<p>May 18 09:54:15 ob amavis[24548]: (24548-01) Passed CLEAN {RelayedInbound}, [127.0.0.1] /ESMTP <a href="&#109;&#97;&#105;&#108;&#116;&#111;&#58;&#114;&#111;&#111;&#116;&#64;&#46;&#46;&#46;&#109;&#97;&#105;&#108;&#46;&#111;&#114;&#103;">&#114;&#111;&#111;&#116;&#64;&#46;&#46;&#46;&#109;&#97;&#105;&#108;&#46;&#111;&#114;&#103;</a> -&gt; <a href="&#109;&#97;&#105;&#108;&#116;&#111;&#58;&#98;&#117;&#103;&#115;&#64;&#46;&#46;&#46;&#98;&#115;&#100;&#46;&#111;&#114;&#103;">&#98;&#117;&#103;&#115;&#64;&#46;&#46;&#46;&#98;&#115;&#100;&#46;&#111;&#114;&#103;</a>, (), Message-ID: <a href="&#109;&#97;&#105;&#108;&#116;&#111;&#58;&#50;&#48;&#49;&#54;&#48;&#53;&#49;&#56;&#48;&#49;&#53;&#51;&#48;&#49;&#46;&#66;&#50;&#65;&#55;&#52;&#49;&#51;&#52;&#52;&#68;&#64;&#46;&#46;&#46;&#109;&#97;&#105;&#108;&#46;&#111;&#114;&#103;">&#50;&#48;&#49;&#54;&#48;&#53;&#49;&#56;&#48;&#49;&#53;&#51;&#48;&#49;&#46;&#66;&#50;&#65;&#55;&#52;&#49;&#51;&#52;&#52;&#68;&#64;&#46;&#46;&#46;&#109;&#97;&#105;&#108;&#46;&#111;&#114;&#103;</a>, mail_id: JcfAanaWAP-2, b: efIM2W-Q-, Hits: -, size: 161634, queued_as: 4756B13453, Subject: "ldapd(8) doesn't correctly handle MOD_DELETE operation", From: <a href="&#109;&#97;&#105;&#108;&#116;&#111;&#58;&#122;&#104;&#98;&#64;&#46;&#46;&#46;&#109;&#97;&#105;&#108;&#46;&#111;&#114;&#103;">&#122;&#104;&#98;&#64;&#46;&#46;&#46;&#109;&#97;&#105;&#108;&#46;&#111;&#114;&#103;</a>, helo=...mail.org, 160 ms</p>
</blockquote>
<pre><code>
If you really want `X-Spam-*` headers in email, please decrease Amavisd setting
`$sa_tag_level_deflt` to a very low score, e.g. `-999`, then restart Amavisd
service. it will always insert `X-Spam-*` headers in email:
</code></pre>
2015-08-19 08:11:02 -05:00
<p>$sa_tag_level_deflt = -999;
```</p>
<p>That means Amavisd will insert <code>X-Spam-Flag</code> and other <code>X-Spam-*</code> headers when
email score &gt;= <code>-999</code>.</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. 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.<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');
2014-10-13 19:28:43 -05:00
</script>
</body></html>