<html><head></head><body><div style="color:#000; background-color:#fff; font-family:Courier New, courier, monaco, monospace, sans-serif;font-size:13px"><div id="yui_3_16_0_ym19_1_1512400301531_9527" dir="ltr"><span id="yui_3_16_0_ym19_1_1512400301531_14904">Indeed, changing those two variables was effective, I now have my mail correctly marked as junk.</span></div><div dir="ltr" id="yui_3_16_0_ym19_1_1512400301531_14906"><span id="yui_3_16_0_ym19_1_1512400301531_14905">So maybe this is a debian-specific problem ?</span></div><div dir="ltr" id="yui_3_16_0_ym19_1_1512400301531_16678"><span><br></span></div><div dir="ltr" id="yui_3_16_0_ym19_1_1512400301531_16676"><span id="yui_3_16_0_ym19_1_1512400301531_16675">This is how the variables are shipped by debian in conf.d/05-default_id <br></span></div><div><br></div><div><span id="yui_3_16_0_ym19_1_1512400301531_16675"> </span></div><span id="yui_3_16_0_ym19_1_1512400301531_16675"></span><div dir="ltr" id="yui_3_16_0_ym19_1_1512400301531_21750"><span id="yui_3_16_0_ym19_1_1512400301531_16675"> <br id="yui_3_16_0_ym19_1_1512400301531_21793">root@messagerie[10.10.10.19] /etc/amavis/conf.d # cat 05-domain_id<br id="yui_3_16_0_ym19_1_1512400301531_28751">use strict;<br id="yui_3_16_0_ym19_1_1512400301531_28752"># $mydomain is used just for convenience in the config files and it is not<br id="yui_3_16_0_ym19_1_1512400301531_28753"># used internally by amavisd-new except in the default X_HEADER_LINE (which<br id="yui_3_16_0_ym19_1_1512400301531_28754"># Debian overrides by default anyway).<br id="yui_3_16_0_ym19_1_1512400301531_28755">chomp($mydomain = `head -n 1 /etc/mailname`);<br id="yui_3_16_0_ym19_1_1512400301531_28756"># amavisd-new needs to know which email domains are to be considered local<br id="yui_3_16_0_ym19_1_1512400301531_28757"># to the administrative domain. Only emails to "local" domains are subject<br id="yui_3_16_0_ym19_1_1512400301531_28758"># to certain functionality, such as the addition of spam tags.<br id="yui_3_16_0_ym19_1_1512400301531_28759">#<br id="yui_3_16_0_ym19_1_1512400301531_28760"># Default local domains to $mydomain and all subdomains. Remember to<br id="yui_3_16_0_ym19_1_1512400301531_28761"># override or redefine this if $mydomain is changed later in the config<br id="yui_3_16_0_ym19_1_1512400301531_28762"># sequence.<br id="yui_3_16_0_ym19_1_1512400301531_28763">@local_domains_acl = ( ".$mydomain" );<br id="yui_3_16_0_ym19_1_1512400301531_28764">1; # ensure a defined return<br id="yui_3_16_0_ym19_1_1512400301531_28765">root@messagerie[10.10.10.19] /etc/amavis/conf.d # <br></span></div><div dir="ltr" id="yui_3_16_0_ym19_1_1512400301531_28800"><span id="yui_3_16_0_ym19_1_1512400301531_16675"><br></span></div><div dir="ltr" id="yui_3_16_0_ym19_1_1512400301531_30443"><span id="yui_3_16_0_ym19_1_1512400301531_16675">I don't know how that translates in real strings when /etc/mailname is of the form host.domain.tld ?<br></span></div><div dir="ltr" id="yui_3_16_0_ym19_1_1512400301531_33834"><span id="yui_3_16_0_ym19_1_1512400301531_16675"><br></span></div><div dir="ltr" id="yui_3_16_0_ym19_1_1512400301531_33835"><span id="yui_3_16_0_ym19_1_1512400301531_16675">Yassine.<br></span></div><div dir="ltr" id="yui_3_16_0_ym19_1_1512400301531_30444"><span id="yui_3_16_0_ym19_1_1512400301531_16675"><br></span></div><div dir="ltr" id="yui_3_16_0_ym19_1_1512400301531_30450"><span id="yui_3_16_0_ym19_1_1512400301531_16675"><br></span></div><div dir="ltr" id="yui_3_16_0_ym19_1_1512400301531_16674"><span><br></span></div><div dir="ltr" id="yui_3_16_0_ym19_1_1512400301531_16673"><span id="yui_3_16_0_ym19_1_1512400301531_16672"><br></span></div> <div class="qtdSeparateBR"><br><br></div><div class="yahoo_quoted" style="display: block;"> <div style="font-family: Courier New, courier, monaco, monospace, sans-serif; font-size: 13px;"> <div style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 16px;"> <div dir="ltr"><font size="2" face="Arial"> On Friday, December 1, 2017 9:52 PM, Dino Edwards <dino.edwards@mydirectmail.net> wrote:<br></font></div> <br><br> <div class="y_msg_container"><div id="yiv4226890353"><style>#yiv4226890353 #yiv4226890353 --
_filtered #yiv4226890353 {font-family:Helvetica;panose-1:2 11 6 4 2 2 2 2 2 4;}
_filtered #yiv4226890353 {panose-1:2 4 5 3 5 4 6 3 2 4;}
_filtered #yiv4226890353 {font-family:Calibri;panose-1:2 15 5 2 2 2 4 3 2 4;}
#yiv4226890353
#yiv4226890353 p.yiv4226890353MsoNormal, #yiv4226890353 li.yiv4226890353MsoNormal, #yiv4226890353 div.yiv4226890353MsoNormal
{margin:0in;margin-bottom:.0001pt;font-size:12.0pt;}
#yiv4226890353 a:link, #yiv4226890353 span.yiv4226890353MsoHyperlink
{color:blue;text-decoration:underline;}
#yiv4226890353 a:visited, #yiv4226890353 span.yiv4226890353MsoHyperlinkFollowed
{color:purple;text-decoration:underline;}
#yiv4226890353 code
{}
#yiv4226890353 pre
{margin:0in;margin-bottom:.0001pt;font-size:10.0pt;}
#yiv4226890353 span.yiv4226890353EmailStyle17
{color:#1F497D;}
#yiv4226890353 span.yiv4226890353HTMLPreformattedChar
{}
#yiv4226890353 .yiv4226890353MsoChpDefault
{font-size:10.0pt;}
_filtered #yiv4226890353 {margin:1.0in 1.0in 1.0in 1.0in;}
#yiv4226890353 div.yiv4226890353WordSection1
{}
#yiv4226890353 </style><div>
<div class="yiv4226890353WordSection1">
<div class="yiv4226890353MsoNormal"><span style="font-size:11.0pt;">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.
</span></div>
<div class="yiv4226890353MsoNormal"><span style="font-size:11.0pt;"> </span></div>
<div class="yiv4226890353MsoNormal"><span style="font-size:11.0pt;">On your particular issue, try this:</span></div>
<div class="yiv4226890353MsoNormal"><span style="font-size:11.0pt;"> </span></div>
<pre><code>$mydomain = "mydomain.tld";</code></pre>
<div class="yiv4226890353MsoNormal"><span style="font-size:11.0pt;"> </span></div>
<pre><code>@local_domains_acl = ( "mydomain.tld", "localhost" );</code></pre>
<div class="yiv4226890353MsoNormal"><span style="font-size:11.0pt;"> </span></div>
<div class="yiv4226890353MsoNormal"><span style="font-size:11.0pt;">The way you had it set “</span><span style="font-size:10.0pt;">.$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.</span></div>
<div class="yiv4226890353MsoNormal"><span style="font-size:10.0pt;"> </span></div>
<div class="yiv4226890353MsoNormal"><span style="font-size:11.0pt;"> </span></div>
<div class="yiv4226890353MsoNormal"><span style="font-size:11.0pt;"> </span></div>
<div class="yiv4226890353MsoNormal"><span style="font-size:11.0pt;"> </span></div>
<div class="yiv4226890353MsoNormal"><span style="font-size:11.0pt;"> </span></div>
<div class="yiv4226890353yqt5484615752" id="yiv4226890353yqt86870"><div>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0in 0in 0in;">
<div class="yiv4226890353MsoNormal"><b><span style="font-size:11.0pt;">From:</span></b><span style="font-size:11.0pt;"> amavis-users [mailto:amavis-users-bounces+dino.edwards=mydirectmail.net@amavis.org]
<b>On Behalf Of </b>chaouche yacine<br clear="none">
<b>Sent:</b> Friday, December 1, 2017 2:24 PM<br clear="none">
<b>To:</b> amavis-users@amavis.org<br clear="none">
<b>Subject:</b> Re: Amavis doesn't mark mail as spam, and doesn't set spam headers</span></div>
</div>
</div>
<div class="yiv4226890353MsoNormal"> </div>
<div>
<div id="yiv4226890353yui_3_16_0_ym19_1_1511730072776_152974">
<div class="yiv4226890353MsoNormal" style="background:white;"><span style="font-size:10.0pt;">Hello Alexander,</span></div>
</div>
<div id="yiv4226890353yui_3_16_0_ym19_1_1511730072776_153015">
<div class="yiv4226890353MsoNormal" style="background:white;"><span style="font-size:10.0pt;"> </span></div>
</div>
<div>
<div class="yiv4226890353MsoNormal" style="background:white;"><span style="font-size:10.0pt;">I don't know how to check for that. Here's 05-domain_id</span></div>
</div>
<div>
<div class="yiv4226890353MsoNormal" style="background:white;"><span style="font-size:10.0pt;"> </span></div>
</div>
<div id="yiv4226890353yui_3_16_0_ym19_1_1511730072776_159930">
<div class="yiv4226890353MsoNormal" style="background:white;"><span style="font-size:10.0pt;"><a rel="nofollow" shape="rect" ymailto="mailto:root@messagerie[10.10.10.19" target="_blank" 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="yiv4226890353yui_3_16_0_ym19_1_1511730072776_156473" clear="none">
use strict;<br id="yiv4226890353yui_3_16_0_ym19_1_1511730072776_156474" clear="none">
chomp($mydomain = `head -n 1 /etc/mailname`);<br id="yiv4226890353yui_3_16_0_ym19_1_1511730072776_156475" clear="none">
@local_domains_acl = ( ".$mydomain" );<br id="yiv4226890353yui_3_16_0_ym19_1_1511730072776_156476" clear="none">
1; # ensure a defined return<br id="yiv4226890353yui_3_16_0_ym19_1_1511730072776_156477" clear="none">
<a rel="nofollow" shape="rect" ymailto="mailto:root@messagerie[10.10.10.19" target="_blank" href="mailto:root@messagerie[10.10.10.19">root@messagerie[10.10.10.19</a>] /etc/amavis/conf.d #</span></div>
</div>
<div id="yiv4226890353yui_3_16_0_ym19_1_1511730072776_159925">
<div class="yiv4226890353MsoNormal" style="background:white;"><span style="font-size:10.0pt;"> </span></div>
</div>
<div id="yiv4226890353yui_3_16_0_ym19_1_1511730072776_159924">
<div class="yiv4226890353MsoNormal" style="background:white;"><span style="font-size:10.0pt;">my /etc/mailname contains the hostname of the mail server, which is "<b>messagerie.</b>mydomain.tld", whereas I accept mail for "mydomain.tld"</span></div>
</div>
<div id="yiv4226890353yui_3_16_0_ym19_1_1511730072776_159968">
<div class="yiv4226890353MsoNormal" style="background:white;"><span style="font-size:10.0pt;"><br clear="none">
<br clear="none">
</span></div>
</div>
<div id="yiv4226890353yui_3_16_0_ym19_1_1511730072776_160024">
<div class="yiv4226890353MsoNormal" style="background:white;"><span style="font-size:10.0pt;"><br clear="none">
Yassine.</span></div>
</div>
<div>
<div class="yiv4226890353MsoNormal" style="margin-bottom:12.0pt;background:white;"><span style="font-size:10.0pt;"> </span></div>
</div>
<div>
<div>
<div>
<div>
<div class="yiv4226890353MsoNormal" style="background:white;"><span style="font-size:10.0pt;">On Friday, December 1, 2017 1:20 PM, Alexander Wirt <<a rel="nofollow" shape="rect" ymailto="mailto:formorer@formorer.de" target="_blank" href="mailto:formorer@formorer.de">formorer@formorer.de</a>> wrote:</span><span style=""></span></div>
</div>
<div class="yiv4226890353MsoNormal" style="margin-bottom:12.0pt;background:white;"><span style=""> </span></div>
<div>
<div class="yiv4226890353MsoNormal" style="background:white;"><span style="">On Fri, 01 Dec 2017, chaouche yacine wrote:<br clear="none">
<br clear="none">
> Hello Alxander,<br clear="none">
> This log entry seems to show that spam checking was done : <br clear="none">
> Nov 28 16:33:16 messagerie amavis[46130]: (46130-07) Passed SPAMMY {RelayedOpenRelay}, [101.55.71.90]:53783 [101.55.71.90] <<a rel="nofollow" shape="rect" ymailto="mailto:bounce-3308-19491836-3512-248@frdww.com" target="_blank" href="mailto:bounce-3308-19491836-3512-248@frdww.com">bounce-3308-19491836-3512-248@frdww.com</a>> -> <<a rel="nofollow" shape="rect" ymailto="mailto:a.chaouche@mydomain.tld" target="_blank" href="mailto:a.chaouche@mydomain.tld">a.chaouche@mydomain.tld</a>>,
Queue-ID: 738D73A80088, Message-ID: <<a rel="nofollow" shape="rect" ymailto="mailto:bf680addabf683575f7cc153be8a9094@101.55.71.3" target="_blank" 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 clear="none">
> And here is 15-content_filter_mode<br clear="none">
> <a rel="nofollow" shape="rect" ymailto="mailto:root@messagerie" target="_blank" href="mailto:root@messagerie">root@messagerie</a>[10.10.10.19] /etc/amavis/conf.d # removeblanks 15-content_filter_mode<br clear="none">
> use strict;<br clear="none">
> @bypass_virus_checks_maps = (<br clear="none">
> \%bypass_virus_checks, \@bypass_virus_checks_acl, \$bypass_virus_checks_re);<br clear="none">
> @bypass_spam_checks_maps = (<br clear="none">
> \%bypass_spam_checks, \@bypass_spam_checks_acl, \$bypass_spam_checks_re);<br clear="none">
> 1; # ensure a defined return<br clear="none">
> <a rel="nofollow" shape="rect" ymailto="mailto:root@messagerie" target="_blank" href="mailto:root@messagerie">root@messagerie</a>[10.10.10.19] /etc/amavis/conf.d #<br clear="none">
> <br clear="none">
> Should they be commented out ? <br clear="none">
no, they are fine that way. <br clear="none">
> <br clear="none">
> <br clear="none">
> Also, both spamd and amavis are running : <br clear="none">
Amavis doesn't use spamd. Is "mydomain.tld" in localdomains? </span></div>
<div id="yiv4226890353yqtfd84597">
<div class="yiv4226890353MsoNormal" style="background:white;"><span style=""><br clear="none">
<br clear="none">
Alex</span></div>
</div>
<div class="yiv4226890353MsoNormal" style="margin-bottom:12.0pt;background:white;"><span style=""> </span></div>
</div>
</div>
</div>
</div>
</div></div>
</div>
</div></div><br><br></div> </div> </div> </div></div></body></html>