2016-05-19 06:51:20 -05:00
<!DOCTYPE html>
2014-09-30 10:13:21 -05:00
< 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 >
2015-07-31 23:14:52 -05:00
< link rel = "stylesheet" type = "text/css" href = "./css/markdown.css" / >
2014-09-30 10:13:21 -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"
src="./images/logo-iredmail.png"
style="vertical-align: middle; height: 30px;"
/>
< span > iRedMail< / span >
< / a >
2016-05-18 20:17:26 -05:00
// < 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 >
2016-05-17 22:11:11 -05:00
< 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;
2014-09-30 10:13:21 -05:00
< / code > < / pre >
2015-08-19 08:11:02 -05:00
2016-05-17 22:11:11 -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 = "mailto:root@...mail.org" > r o o t @ . . . m a i l . o r g < / a > -> < a href = "mailto:bugs@...bsd.org" > b u g s @ . . . b s d . o r g < / a > , (), Message-ID: < a href = "mailto:20160518015301.B2A741344D@...mail.org" > 2 0 1 6 0 5 1 8 0 1 5 3 0 1 . B 2 A 7 4 1 3 4 4 D @ . . . m a i l . o r g < / 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" > z h b @ . . . m a i l . o r g < / 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:
2014-09-30 10:13:21 -05:00
< / code > < / pre >
2015-08-19 08:11:02 -05:00
2016-05-17 22:11:11 -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
2016-05-19 06:51:20 -05:00
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" >
2015-02-05 07:02:53 -06: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');
2014-10-13 19:28:43 -05:00
< / script >
< / body > < / html >