<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:Helvetica;
        panose-1:2 11 6 4 2 2 2 2 2 4;}
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman",serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
code
        {mso-style-priority:99;
        font-family:"Courier New";}
pre
        {mso-style-priority:99;
        mso-style-link:"HTML Preformatted Char";
        margin:0in;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New";}
span.EmailStyle17
        {mso-style-type:personal-reply;
        font-family:"Calibri",sans-serif;
        color:#1F497D;}
span.HTMLPreformattedChar
        {mso-style-name:"HTML Preformatted Char";
        mso-style-priority:99;
        mso-style-link:"HTML Preformatted";
        font-family:"Courier New";}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D">I suggest that all your customization be done on /etc/amavis/conf.d/50-user for simplicity sake instead of jumping around all those config files. Up to you.
<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D">On your particular issue, try this:<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D"><o:p> </o:p></span></p>
<pre><code>$mydomain = "mydomain.tld";</code><o:p></o:p></pre>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D"><o:p> </o:p></span></p>
<pre><code>@local_domains_acl = ( "mydomain.tld", "localhost" );</code><o:p></o:p></pre>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D">The way you had it set “</span><span style="font-size:10.0pt;font-family:"Courier New";color:black">.$mydomain” I’m pretty sure it means all subdomains of mydomain.tld
 but not the actual domain. Someone correct me if I’m wrong here.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Courier New";color:black"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D"><o:p> </o:p></span></p>
<div>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b><span style="font-size:11.0pt;font-family:"Calibri",sans-serif">From:</span></b><span style="font-size:11.0pt;font-family:"Calibri",sans-serif"> amavis-users [mailto:amavis-users-bounces+dino.edwards=mydirectmail.net@amavis.org]
<b>On Behalf Of </b>chaouche yacine<br>
<b>Sent:</b> Friday, December 1, 2017 2:24 PM<br>
<b>To:</b> amavis-users@amavis.org<br>
<b>Subject:</b> Re: Amavis doesn't mark mail as spam, and doesn't set spam headers<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<div id="yui_3_16_0_ym19_1_1511730072776_152974">
<p class="MsoNormal" style="background:white"><span style="font-size:10.0pt;font-family:"Courier New";color:black">Hello Alexander,<o:p></o:p></span></p>
</div>
<div id="yui_3_16_0_ym19_1_1511730072776_153015">
<p class="MsoNormal" style="background:white"><span style="font-size:10.0pt;font-family:"Courier New";color:black"><o:p> </o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="background:white"><span style="font-size:10.0pt;font-family:"Courier New";color:black">I don't know how to check for that. Here's 05-domain_id<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="background:white"><span style="font-size:10.0pt;font-family:"Courier New";color:black"><o:p> </o:p></span></p>
</div>
<div id="yui_3_16_0_ym19_1_1511730072776_159930">
<p class="MsoNormal" style="background:white"><span style="font-size:10.0pt;font-family:"Courier New";color:black"><a href="mailto:root@messagerie[10.10.10.19">root@messagerie[10.10.10.19</a>] /etc/amavis/conf.d # removeblanks 05-domain_id<br id="yui_3_16_0_ym19_1_1511730072776_156473">
use strict;<br id="yui_3_16_0_ym19_1_1511730072776_156474">
chomp($mydomain = `head -n 1 /etc/mailname`);<br id="yui_3_16_0_ym19_1_1511730072776_156475">
@local_domains_acl = ( ".$mydomain" );<br id="yui_3_16_0_ym19_1_1511730072776_156476">
1;  # ensure a defined return<br id="yui_3_16_0_ym19_1_1511730072776_156477">
<a href="mailto:root@messagerie[10.10.10.19">root@messagerie[10.10.10.19</a>] /etc/amavis/conf.d #<o:p></o:p></span></p>
</div>
<div id="yui_3_16_0_ym19_1_1511730072776_159925">
<p class="MsoNormal" style="background:white"><span style="font-size:10.0pt;font-family:"Courier New";color:black"><o:p> </o:p></span></p>
</div>
<div id="yui_3_16_0_ym19_1_1511730072776_159924">
<p class="MsoNormal" style="background:white"><span style="font-size:10.0pt;font-family:"Courier New";color:black">my /etc/mailname contains the hostname of the mail server, which is "<b>messagerie.</b>mydomain.tld", whereas I accept mail for "mydomain.tld"<o:p></o:p></span></p>
</div>
<div id="yui_3_16_0_ym19_1_1511730072776_159968">
<p class="MsoNormal" style="background:white"><span style="font-size:10.0pt;font-family:"Courier New";color:black"><br>
<br>
<o:p></o:p></span></p>
</div>
<div id="yui_3_16_0_ym19_1_1511730072776_160024">
<p class="MsoNormal" style="background:white"><span style="font-size:10.0pt;font-family:"Courier New";color:black"><br>
Yassine.<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt;background:white"><span style="font-size:10.0pt;font-family:"Courier New";color:black"><o:p> </o:p></span></p>
</div>
<div>
<div>
<div>
<div>
<p class="MsoNormal" style="background:white"><span style="font-size:10.0pt;font-family:"Arial",sans-serif;color:black">On Friday, December 1, 2017 1:20 PM, Alexander Wirt <<a href="mailto:formorer@formorer.de">formorer@formorer.de</a>> wrote:</span><span style="font-family:"Helvetica",sans-serif;color:black"><o:p></o:p></span></p>
</div>
<p class="MsoNormal" style="margin-bottom:12.0pt;background:white"><span style="font-family:"Helvetica",sans-serif;color:black"><o:p> </o:p></span></p>
<div>
<p class="MsoNormal" style="background:white"><span style="font-family:"Helvetica",sans-serif;color:black">On Fri, 01 Dec 2017, chaouche yacine wrote:<br>
<br>
> Hello Alxander,<br>
> This log entry seems to show that spam checking was done : <br>
> Nov 28 16:33:16 messagerie amavis[46130]: (46130-07) Passed SPAMMY {RelayedOpenRelay}, [101.55.71.90]:53783 [101.55.71.90] <<a href="mailto:bounce-3308-19491836-3512-248@frdww.com">bounce-3308-19491836-3512-248@frdww.com</a>> -> <<a href="mailto:a.chaouche@mydomain.tld">a.chaouche@mydomain.tld</a>>,
 Queue-ID: 738D73A80088, Message-ID: <<a href="mailto:bf680addabf683575f7cc153be8a9094@101.55.71.3">bf680addabf683575f7cc153be8a9094@101.55.71.3</a>>, mail_id: lBrIu_4QeHCa, Hits: 11.386, size: 46197, queued_as: 6609E3A8008E, 736 ms<br>
> And here is 15-content_filter_mode<br>
> <a href="mailto:root@messagerie">root@messagerie</a>[10.10.10.19] /etc/amavis/conf.d # removeblanks 15-content_filter_mode<br>
> use strict;<br>
> @bypass_virus_checks_maps = (<br>
>    \%bypass_virus_checks, \@bypass_virus_checks_acl, \$bypass_virus_checks_re);<br>
> @bypass_spam_checks_maps = (<br>
>    \%bypass_spam_checks, \@bypass_spam_checks_acl, \$bypass_spam_checks_re);<br>
> 1;  # ensure a defined return<br>
> <a href="mailto:root@messagerie">root@messagerie</a>[10.10.10.19] /etc/amavis/conf.d #<br>
> <br>
> Should they be commented out ? <br>
no, they are fine that way. <br>
> <br>
> <br>
> Also, both spamd and amavis are running : <br>
Amavis doesn't use spamd. Is "mydomain.tld" in localdomains? <o:p></o:p></span></p>
<div id="yqtfd84597">
<p class="MsoNormal" style="background:white"><span style="font-family:"Helvetica",sans-serif;color:black"><br>
<br>
Alex<o:p></o:p></span></p>
</div>
<p class="MsoNormal" style="margin-bottom:12.0pt;background:white"><span style="font-family:"Helvetica",sans-serif;color:black"><o:p> </o:p></span></p>
</div>
</div>
</div>
</div>
</div>
</div>
</body>
</html>