60 lines
4.3 KiB
HTML
60 lines
4.3 KiB
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
|
<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;"
|
|
/>
|
|
<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-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>
|
|
<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>
|
|
|
|
<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="mailto:root@...mail.org">root@...mail.org</a> -> <a href="mailto:bugs@...bsd.org">bugs@...bsd.org</a>, (), Message-ID: <a href="mailto:20160518015301.B2A741344D@...mail.org">20160518015301.B2A741344D@...mail.org</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="mailto:zhb@...mail.org">zhb@...mail.org</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>
|
|
|
|
<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 >= <code>-999</code>.</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">
|
|
(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> |